Skip to content

Commit 32de2b5

Browse files
committed
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 6986982 commit 32de2b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/cpuid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ static void kvm_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu)
148148
kvm_pmu_refresh(vcpu);
149149
vcpu->arch.cr4_guest_rsvd_bits =
150150
__cr4_reserved_bits(guest_cpuid_has, vcpu);
151+
kvm_x86_ops.update_exception_bitmap(vcpu);
151152
}
152153

153154
static int is_efer_nx(void)

0 commit comments

Comments
 (0)