KVM: pass kvm_memory_slot to gfn_to_page_many_atomic
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2015 14:01:50 +0000 (16:01 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 May 2015 08:43:33 +0000 (10:43 +0200)
commitd9ef13c2b3983de8dd1373ef670799dbb6498122
tree8fa5aedbdb534029ca8a69d1b4608720fd90e817
parentf36f3f2846b5578d62910ee0b6dbef59fdd1cfa4
KVM: pass kvm_memory_slot to gfn_to_page_many_atomic

The memory slot is already available from gfn_to_memslot_dirty_bitmap.
Isn't it a shame to look it up again?  Plus, it makes gfn_to_page_many_atomic
agnostic of multiple VCPU address spaces.

Reviewed-by: Radim Krcmar <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c