]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33cfa3d91e4109b2d39464945090d00421bb9dd9
tree1e2df955dced8828f1088344a2f6011d9b672137
parent5f2acf2f19b94d4ffd22738c36563b9d3c6f5995
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