diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-12-12 17:28:01 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-12-17 19:33:50 +0100 |
commit | ed9e923c3c9a2c50c4e82ba178b3fb1feba56867 (patch) | |
tree | c540f1bd96362502dfd29af0ac15ca20473f622c /target | |
parent | ec5ce147a63273bbc55ed1c52c1db41b0c5a7775 (diff) |
x86: move SMM property to X86MachineState
Add it to microvm as well, it is a generic property of the x86
architecture.
Suggested-by: Sergio Lopez <slp@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/i386/kvm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/i386/kvm.c b/target/i386/kvm.c index ef63f3a5a6..c7ff67a28b 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -2173,8 +2173,7 @@ int kvm_arch_init(MachineState *ms, KVMState *s) } if (kvm_check_extension(s, KVM_CAP_X86_SMM) && - object_dynamic_cast(OBJECT(ms), TYPE_PC_MACHINE) && - pc_machine_is_smm_enabled(PC_MACHINE(ms))) { + x86_machine_is_smm_enabled(X86_MACHINE(ms))) { smram_machine_done.notify = register_smram_listener; qemu_add_machine_init_done_notifier(&smram_machine_done); } |