[PATCH v2 05/11] KVM: x86: update exception bitmap on CPUID changes

From: Mohammed Gamal
Date: Fri Jun 19 2020 - 11:41:10 EST


From: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Allow vendor code to observe changes to MAXPHYADDR and start/stop
intercepting page faults.

Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
arch/x86/kvm/cpuid.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 8a294f9747aa..ea5bbf2153bb 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -128,6 +128,8 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu)
kvm_mmu_reset_context(vcpu);

kvm_pmu_refresh(vcpu);
+ kvm_x86_ops.update_exception_bitmap(vcpu);
+
return 0;
}

--
2.26.2