KVM/nVMX: Use kvm_vcpu_map when mapping the L1 MSR bitmap
authorKarimAllah Ahmed <karahmed@amazon.de>
Thu, 31 Jan 2019 20:24:36 +0000 (21:24 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Apr 2019 19:34:34 +0000 (21:34 +0200)
commit31f0b6c4ba7da19192492b988f06f27bbe259082
tree1e2df955dced8828f1088344a2f6011d9b672137
parentb146b839282ca98927a109d6bb0351c7380b70e4
KVM/nVMX: Use kvm_vcpu_map when mapping the L1 MSR bitmap

Use kvm_vcpu_map when mapping the L1 MSR bitmap since using
kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has
a "struct page".

Signed-off-by: KarimAllah Ahmed <karahmed@amazon.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.h