aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/kvm_emulate.h
diff options
context:
space:
mode:
authorGravatar Sean Christopherson <seanjc@google.com> 2021-06-09 11:56:13 -0700
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-06-17 13:09:34 -0400
commitedce46548b70b8637694d96122447662ff35af0c (patch)
tree461c1c6a8e26fb43fcbb9d99d113792551a470a6 /arch/x86/kvm/kvm_emulate.h
parentKVM: x86: Emulate triple fault shutdown if RSM emulation fails (diff)
downloadlinux-edce46548b70b8637694d96122447662ff35af0c.tar.gz
linux-edce46548b70b8637694d96122447662ff35af0c.tar.bz2
linux-edce46548b70b8637694d96122447662ff35af0c.zip
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>
Diffstat (limited to 'arch/x86/kvm/kvm_emulate.h')
-rw-r--r--arch/x86/kvm/kvm_emulate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
index 357cfd1ccafd..298bb0da7b97 100644
--- a/arch/x86/kvm/kvm_emulate.h
+++ b/arch/x86/kvm/kvm_emulate.h
@@ -230,7 +230,7 @@ struct x86_emulate_ops {
void (*set_nmi_mask)(struct x86_emulate_ctxt *ctxt, bool masked);
unsigned (*get_hflags)(struct x86_emulate_ctxt *ctxt);
- void (*set_hflags)(struct x86_emulate_ctxt *ctxt, unsigned hflags);
+ void (*exiting_smm)(struct x86_emulate_ctxt *ctxt);
int (*pre_leave_smm)(struct x86_emulate_ctxt *ctxt,
const char *smstate);
void (*post_leave_smm)(struct x86_emulate_ctxt *ctxt);