]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit482041539de9d546d86237e6b4b3b99bc3e0c831
tree997b40341e4dccca84af8a570e33a493120f402d
parent104ae5724ada32df6281b9c067b6c29d5ca9fb97
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