summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/svm/svm.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-05-20 08:37:37 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-05-28 11:46:18 -0400
commitdf7e0681dd8acfa8d07816eaef232ded816d8a8c (patch)
treea7cb8b16adbb4bac6adc80693933df18fbc57bbb /arch/x86/kvm/svm/svm.c
parent978ce5837c7ed50e4ea30cc0fa20f2f820edf8ea (diff)
downloadlwn-df7e0681dd8acfa8d07816eaef232ded816d8a8c.tar.gz
lwn-df7e0681dd8acfa8d07816eaef232ded816d8a8c.zip
KVM: nVMX: always update CR3 in VMCS
vmx_load_mmu_pgd is delaying the write of GUEST_CR3 to prepare_vmcs02 as an optimization, but this is only correct before the nested vmentry. If userspace is modifying CR3 with KVM_SET_SREGS after the VM has already been put in guest mode, the value of CR3 will not be updated. Remove the optimization, which almost never triggers anyway. Fixes: 04f11ef45810 ("KVM: nVMX: Always write vmcs02.GUEST_CR3 during nested VM-Enter") Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
0 files changed, 0 insertions, 0 deletions