]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move "entering SMM" tracepoint into kvm_smm_changed()
authorSean Christopherson <seanjc@google.com>
Wed, 9 Jun 2021 18:56:16 +0000 (11:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:34 +0000 (13:09 -0400)
commit4c493c734d98f564bfd276ab13b42022df61c4d2
tree787be65611c668663be985ea2c25c7d5f1806561
parent90788f48a3a652f355bd72d7efaf7ae4d334b100
KVM: x86: Move "entering SMM" tracepoint into kvm_smm_changed()

Invoke the "entering SMM" tracepoint from kvm_smm_changed() instead of
enter_smm(), effectively moving it from before reading vCPU state to
after reading state (but still before writing it to SMRAM!).  The primary
motivation is to consolidate code, but calling the tracepoint from
kvm_smm_changed() also makes its invocation consistent with respect to
SMI and RSM, and with respect to KVM_SET_VCPU_EVENTS (which previously
only invoked the tracepoint when forcing the vCPU out of SMM).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210609185619.992058-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c