Revert "KVM: VMX: Save HOST_CR3 in vmx_set_host_fs_gs()"
authorSean Christopherson <seanjc@google.com>
Thu, 24 Feb 2022 19:19:16 +0000 (19:19 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Feb 2022 09:02:18 +0000 (04:02 -0500)
commitbca06b85fcaf866602e328b3bcd86f74180eca14
tree0b78bce4722e199812a29eae588367cada68ff4c
parente910a53fb4f20aa012e46371ffb4c32c8da259b4
Revert "KVM: VMX: Save HOST_CR3 in vmx_set_host_fs_gs()"

Undo a nested VMX fix as a step toward reverting the commit it fixed,
15ad9762d69f ("KVM: VMX: Save HOST_CR3 in vmx_prepare_switch_to_guest()"),
as the underlying premise that "host CR3 in the vcpu thread can only be
changed when scheduling" is wrong.

This reverts commit a9f2705ec84449e3b8d70c804766f8e97e23080d.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220224191917.3508476-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h