diff options
author | Junaid Shahid | 2018-06-27 23:59:16 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-08-06 17:58:58 +0200 |
commit | 7eb77e9f5fcf652a21b2d12bff1cd509b6b14f21 (patch) | |
tree | 558cfec9d0dfc6d769543393e6eda10081007d18 /arch/x86/include/asm/kvm_host.h | |
parent | kvm: x86: Skip TLB flush on fast CR3 switch when indicated by guest (diff) | |
download | kernel-qcow2-linux-7eb77e9f5fcf652a21b2d12bff1cd509b6b14f21.tar.gz kernel-qcow2-linux-7eb77e9f5fcf652a21b2d12bff1cd509b6b14f21.tar.xz kernel-qcow2-linux-7eb77e9f5fcf652a21b2d12bff1cd509b6b14f21.zip |
kvm: x86: Add a root_hpa parameter to kvm_mmu->invlpg()
This allows invlpg() to be called using either the active root_hpa
or the prev_root_hpa.
Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 8b4aa5e7ff92..0b77c233e441 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -354,7 +354,7 @@ struct kvm_mmu { struct x86_exception *exception); int (*sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp); - void (*invlpg)(struct kvm_vcpu *vcpu, gva_t gva); + void (*invlpg)(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root_hpa); void (*update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, u64 *spte, const void *pte); hpa_t root_hpa; |