]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Zero out GDTR.base and IDTR.base on INIT
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:32:41 +0000 (09:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:49 +0000 (11:01 -0400)
commitc2f4d9e99adc409f26440f5f0dbcfaf6a461d03f
tree710618f752ea032d8c234813fe7ce52c9722a590
parent36544232e8f86d90fd5b2130ec08ba3f2c271cdc
KVM: SVM: Zero out GDTR.base and IDTR.base on INIT

Explicitly set GDTR.base and IDTR.base to zero when intializing the VMCB.
Functionally this only affects INIT, as the bases are implicitly set to
zero on RESET by virtue of the VMCB being zero allocated.

Per AMD's APM, GDTR.base and IDTR.base are zeroed after RESET and INIT.

Fixes: d021231bb8e8 ("KVM: Move main vcpu loop into subarch independent code")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c