mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
6986982fef
commit
32de2b5ee3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue