diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-03-01 15:55:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-02 05:41:12 -0400 |
commit | 249f32493304e2ab04ed53cc634909629b8dc4c6 (patch) | |
tree | b340bcdcec34946c95f09c1fe875e838c0461435 /arch/x86/kvm/x86.c | |
parent | edf721238576544ed8daf9943ab398bb27da8e6b (diff) | |
download | linux-249f32493304e2ab04ed53cc634909629b8dc4c6.tar.gz linux-249f32493304e2ab04ed53cc634909629b8dc4c6.tar.bz2 linux-249f32493304e2ab04ed53cc634909629b8dc4c6.zip |
KVM: x86: mark synthetic SMM vmexit as SVM_EXIT_SW
Use a dummy unused vmexit reason to mark the 'VM exit' that is happening
when kvm exits to handle SMM, which is not a real VM exit.
This makes it a bit easier to read the KVM trace, and avoids
other potential problems due to a stale vmexit reason in the vmcb.
If SVM_EXIT_SW somehow reaches svm_invoke_exit_handler(), instead,
svm_check_exit_valid() will return false and a WARN will be logged.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220301135526.136554-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions