diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2021-11-15 17:50:26 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-18 08:03:43 +0100 |
commit | cee66664dcd6241a943380ef9dcd2f8a0a7dc47d (patch) | |
tree | ce25442f5f4792b18e89722e59faa300f292e781 /arch/x86/kvm/vmx/vmx.h | |
parent | KVM: nVMX: Use kvm_read_guest_offset_cached() for nested VMCS check (diff) | |
download | linux-cee66664dcd6241a943380ef9dcd2f8a0a7dc47d.tar.xz linux-cee66664dcd6241a943380ef9dcd2f8a0a7dc47d.zip |
KVM: nVMX: Use a gfn_to_hva_cache for vmptrld
And thus another call to kvm_vcpu_map() can die.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Message-Id: <20211115165030.7422-7-dwmw2@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kvm/vmx/vmx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx/vmx.h b/arch/x86/kvm/vmx/vmx.h index cdadbd5dc0ca..4df2ac24ffc1 100644 --- a/arch/x86/kvm/vmx/vmx.h +++ b/arch/x86/kvm/vmx/vmx.h @@ -147,6 +147,11 @@ struct nested_vmx { struct gfn_to_hva_cache shadow_vmcs12_cache; /* + * GPA to HVA cache for VMCS12 + */ + struct gfn_to_hva_cache vmcs12_cache; + + /* * Indicates if the shadow vmcs or enlightened vmcs must be updated * with the data held by struct vmcs12. */ |