Skip to content
Commit dc924b06 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: SVM: check CR4 changes against vcpu->arch



Similarly to what vmx/vmx.c does, use vcpu->arch.cr4 to check if CR4
bits PGE, PKE and OSXSAVE have changed.  When switching between VMCB01
and VMCB02, CPUID has to be adjusted every time if CR4.PKE or CR4.OSXSAVE
change; without this patch, instead, CR4 would be checked against the
previous value for L2 on vmentry, and against the previous value for
L1 on vmexit, and CPUID would not be updated.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 7e8e6eed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment