summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorSean Christopherson2019-04-02 17:03:10 +0200
committerPaolo Bonzini2019-04-16 15:37:36 +0200
commitc5833c7a43a66bfe2f36439cb2f1281a588668af (patch)
tree0b6e5e3898b4763ee73209a8dd4eeb38fe503f35 /arch/x86/include/asm
parentKVM: x86: Load SMRAM in a single shot when leaving SMM (diff)
downloadkernel-qcow2-linux-c5833c7a43a66bfe2f36439cb2f1281a588668af.tar.gz
kernel-qcow2-linux-c5833c7a43a66bfe2f36439cb2f1281a588668af.tar.xz
kernel-qcow2-linux-c5833c7a43a66bfe2f36439cb2f1281a588668af.zip
KVM: x86: Open code kvm_set_hflags
Prepare for clearing HF_SMM_MASK prior to loading state from the SMRAM save state map, i.e. kvm_smm_changed() needs to be called after state has been loaded and so cannot be done automatically when setting hflags from RSM. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index ec489c432850..feab24cac610 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -228,6 +228,7 @@ struct x86_emulate_ops {
void (*set_hflags)(struct x86_emulate_ctxt *ctxt, unsigned hflags);
int (*pre_leave_smm)(struct x86_emulate_ctxt *ctxt,
const char *smstate);
+ void (*post_leave_smm)(struct x86_emulate_ctxt *ctxt);
};