mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
ec5ce147a6
commit
ed9e923c3c
7 changed files with 59 additions and 59 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue