diff options
| author | Maxim Levitsky <[email protected]> | 2022-11-29 19:37:07 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2023-01-31 20:56:26 +0000 |
| commit | 8957cbcfed0a7e423695d90600b2643dda31fc7b (patch) | |
| tree | 06dca0e938fc0c4d71ce055c0f038abb9aa9ad62 /arch/x86/kvm/svm/nested.c | |
| parent | KVM: SVM: Account scratch allocations used to decrypt SEV guest memory (diff) | |
| download | kernel-8957cbcfed0a7e423695d90600b2643dda31fc7b.tar.gz kernel-8957cbcfed0a7e423695d90600b2643dda31fc7b.zip | |
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 <[email protected]>
Tested-by: Santosh Shukla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[sean: massage changelog]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
| -rw-r--r-- | arch/x86/kvm/svm/nested.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 700df66d23c7..05d38944a6c0 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -1008,7 +1008,6 @@ int nested_svm_vmexit(struct vcpu_svm *svm) vmcb12->control.next_rip = vmcb02->control.next_rip; vmcb12->control.int_ctl = svm->nested.ctl.int_ctl; - vmcb12->control.tlb_ctl = svm->nested.ctl.tlb_ctl; vmcb12->control.event_inj = svm->nested.ctl.event_inj; vmcb12->control.event_inj_err = svm->nested.ctl.event_inj_err; |
