KVM: only retrieve memslots once when initializing cache
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 4 Feb 2017 04:32:28 +0000 (20:32 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Feb 2017 17:42:33 +0000 (18:42 +0100)
commit5a2d4365d2c39e8a3ff3cbee3af123a23aebdb9c
tree651094be5f369772587d8778dc7b44a08d76cc5d
parent47c0152e0f8bd325869417e0aaff032e62bcf6f2
KVM: only retrieve memslots once when initializing cache

This will make it a bit simpler to handle multiple address spaces
in gfn_to_hva_cache.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c