KVM: x86: Replace .set_hflags() with dedicated .exiting_smm() helper
authorSean Christopherson <seanjc@google.com>
Wed, 9 Jun 2021 18:56:13 +0000 (11:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:34 +0000 (13:09 -0400)
commitedce46548b70b8637694d96122447662ff35af0c
tree461c1c6a8e26fb43fcbb9d99d113792551a470a6
parent25b17226cd9a77982fc8c915d4118d7238a0f079
KVM: x86: Replace .set_hflags() with dedicated .exiting_smm() helper

Replace the .set_hflags() emulator hook with a dedicated .exiting_smm(),
moving the SMM and SMM_INSIDE_NMI flag handling out of the emulator in
the process.  This is a step towards consolidating much of the logic in
kvm_smm_changed(), including the SMM hflags updates.

No functional change intended.

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