aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-07-13 09:33:05 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-08-02 11:01:55 -0400
commit32437c2aea428f9c3479904e342b02f5eee3a7f6 (patch)
tree1ca275ef09566232864107634cdc2491196cb3f7 /arch/x86/kernel
parent908b7d43c02c5f1f95beff66ce4ca30dfc3b134c (diff)
KVM: VMX: Process CR0.PG side effects after setting CR0 assets
Move the long mode and EPT w/o unrestricted guest side effect processing down in vmx_set_cr0() so that the EPT && !URG case doesn't have to stuff vcpu->arch.cr0 early. This also fixes an oddity where CR0 might not be marked available, i.e. the early vcpu->arch.cr0 write would appear to be in danger of being overwritten, though that can't actually happen in the current code since CR0.TS is the only guest-owned bit, and CR0.TS is not read by vmx_set_cr4(). Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210713163324.627647-28-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kernel')
0 files changed, 0 insertions, 0 deletions