diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-10 18:48:07 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-11 00:01:29 +0300 |
commit | 32de2b5ee378ae590c90135e4d7f5c9149a04990 (patch) | |
tree | 34002c8c515ff5d095d122dcc2ec5a2021ad4ac0 /arch/x86/kvm/cpuid.c | |
parent | 6986982fef86ae71a27d6309739a0c38b562a5c0 (diff) | |
download | linux-32de2b5ee378ae590c90135e4d7f5c9149a04990.tar.xz |
KVM: x86: update exception bitmap on CPUID changes
Allow vendor code to observe changes to MAXPHYADDR and start/stop
intercepting page faults.
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r-- | arch/x86/kvm/cpuid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index edbed4f522f2..7d92854082a1 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -148,6 +148,7 @@ static void kvm_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) kvm_pmu_refresh(vcpu); vcpu->arch.cr4_guest_rsvd_bits = __cr4_reserved_bits(guest_cpuid_has, vcpu); + kvm_x86_ops.update_exception_bitmap(vcpu); } static int is_efer_nx(void) |