]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88277272044ced0f94e74115406f41be38aba746
tree461c1c6a8e26fb43fcbb9d99d113792551a470a6
parent96eeddc7e29c069970f30045f39e0478f6cd71c1
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