]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM/nVMX: Use kvm_vcpu_map for accessing the enlightened VMCS
authorKarimAllah Ahmed <karahmed@amazon.de>
Thu, 31 Jan 2019 20:24:42 +0000 (21:24 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Apr 2019 19:49:40 +0000 (21:49 +0200)
commitdee9c0493108b36e89d289c8fd6f4c90321d0d5e
treea0639d33580e55c4e31a4289f49bbc2c53c81b18
parent8892530598dd6333c2ca6316e486708824d587ea
KVM/nVMX: Use kvm_vcpu_map for accessing the enlightened VMCS

Use kvm_vcpu_map for accessing the enlightened VMCS 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>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.h