diff options
author | Sean Christopherson <seanjc@google.com> | 2021-06-09 11:56:16 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-17 13:09:34 -0400 |
commit | 0d7ee6f4b58dc6aca54df285cec027727c976892 (patch) | |
tree | 787be65611c668663be985ea2c25c7d5f1806561 /arch/x86/kvm/trace.h | |
parent | dc87275f47332be922d4eb299595523cc3a97479 (diff) | |
download | lwn-0d7ee6f4b58dc6aca54df285cec027727c976892.tar.gz lwn-0d7ee6f4b58dc6aca54df285cec027727c976892.zip |
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>
Diffstat (limited to 'arch/x86/kvm/trace.h')
0 files changed, 0 insertions, 0 deletions