diff options
author | KarimAllah Ahmed <karahmed@amazon.de> | 2019-01-31 21:24:37 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-04-30 21:36:43 +0200 |
commit | 96c66e87deeeb3cc78a3b82a1de8e365eec206c1 (patch) | |
tree | 901eefcf5fd2318de93005d4e0c6eb9b5112ab72 /arch/x86/kvm/vmx/vmx.h | |
parent | 31f0b6c4ba7da19192492b988f06f27bbe259082 (diff) | |
download | linux-96c66e87deeeb3cc78a3b82a1de8e365eec206c1.tar.gz linux-96c66e87deeeb3cc78a3b82a1de8e365eec206c1.tar.bz2 linux-96c66e87deeeb3cc78a3b82a1de8e365eec206c1.zip |
KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page
Use kvm_vcpu_map when mapping the virtual APIC page since using
kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has
a "struct page".
One additional semantic change is that the virtual host mapping lifecycle
has changed a bit. It now has the same lifetime of the pinning of the
virtual APIC page on the host side.
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>
Diffstat (limited to 'arch/x86/kvm/vmx/vmx.h')
-rw-r--r-- | arch/x86/kvm/vmx/vmx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/vmx.h b/arch/x86/kvm/vmx/vmx.h index b07d4b1d63cf..b03b18cf9b6b 100644 --- a/arch/x86/kvm/vmx/vmx.h +++ b/arch/x86/kvm/vmx/vmx.h @@ -142,7 +142,7 @@ struct nested_vmx { * pointers, so we must keep them pinned while L2 runs. */ struct page *apic_access_page; - struct page *virtual_apic_page; + struct kvm_host_map virtual_apic_map; struct page *pi_desc_page; struct kvm_host_map msr_bitmap_map; |