]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Change parameter of kvm_mmu_slot_remove_write_access
authorKai Huang <kai.huang@linux.intel.com>
Wed, 28 Jan 2015 02:54:26 +0000 (10:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jan 2015 14:31:37 +0000 (15:31 +0100)
commit36a6c58af10742bbe2d140b3c3da3f3eb89e66a7
treeb5b6d96d85fbec4f2678470f7439c24e5d05eba6
parentefe7b535021e656cfc5b929c4a42e880e4729414
KVM: x86: Change parameter of kvm_mmu_slot_remove_write_access

This patch changes the second parameter of kvm_mmu_slot_remove_write_access from
'slot id' to 'struct kvm_memory_slot *' to align with kvm_x86_ops dirty logging
hooks, which will be introduced in further patch.

Better way is to change second parameter of kvm_arch_commit_memory_region from
'struct kvm_userspace_memory_region *' to 'struct kvm_memory_slot * new', but it
requires changes on other non-x86 ARCH too, so avoid it now.

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