]> 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)
commit4eb72a36f58357d29e6d34ebe461b281bfdd5601
tree1e2df955dced8828f1088344a2f6011d9b672137
parent2a5eab56656a99085173a3fa8e28e50ab3936639
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