KVM: nSVM: Don't sync tlb_ctl back to vmcb12 on nested VM-Exit
authorMaxim Levitsky <mlevitsk@redhat.com>
Tue, 29 Nov 2022 19:37:07 +0000 (21:37 +0200)
committerSean Christopherson <seanjc@google.com>
Tue, 31 Jan 2023 20:56:26 +0000 (12:56 -0800)
commit8957cbcfed0a7e423695d90600b2643dda31fc7b
tree06dca0e938fc0c4d71ce055c0f038abb9aa9ad62
parenta31b531cd2fa2e6b2a736833a94b990d5cf56b40
KVM: nSVM: Don't sync tlb_ctl back to vmcb12 on nested VM-Exit

Don't sync the TLB control field from vmcb02 to vmcs12 on nested VM-Exit.
Per AMD's APM, the field is not modified by hardware:

  The VMRUN instruction reads, but does not change, the value of the
  TLB_CONTROL field

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Tested-by: Santosh Shukla <Santosh.Shukla@amd.com>
Link: https://lore.kernel.org/r/20221129193717.513824-2-mlevitsk@redhat.com
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c