]> 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)
commited833efebc2be360669b4e5926477625bc1e2164
tree997b40341e4dccca84af8a570e33a493120f402d
parent36a6c58af10742bbe2d140b3c3da3f3eb89e66a7
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