KVM: x86: Add new dirty logging kvm_x86_ops for PML
authorKai Huang <kai.huang@linux.intel.com>
Wed, 28 Jan 2015 02:54:27 +0000 (10:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jan 2015 14:31:41 +0000 (15:31 +0100)
commit88178fd4f7187bbe290c5d373fd44aabec891934
tree997b40341e4dccca84af8a570e33a493120f402d
parent1c91cad42366ce0799ca17e7ad6995418741d012
KVM: x86: Add new dirty logging kvm_x86_ops for PML

This patch adds new kvm_x86_ops dirty logging hooks to enable/disable dirty
logging for particular memory slot, and to flush potentially logged dirty GPAs
before reporting slot->dirty_bitmap to userspace.

kvm x86 common code calls these hooks when they are available so PML logic can
be hidden to VMX specific. SVM won't be impacted as these hooks remain NULL
there.

Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
This page took 0.02652 seconds and 5 git commands to generate.