diff options
author | Paolo Bonzini | 2019-12-12 17:28:01 +0100 |
---|---|---|
committer | Paolo Bonzini | 2019-12-17 19:33:50 +0100 |
commit | ed9e923c3c9a2c50c4e82ba178b3fb1feba56867 (patch) | |
tree | c540f1bd96362502dfd29af0ac15ca20473f622c /hw/i386/pc_piix.c | |
parent | pci-stub: add more MSI functions (diff) | |
download | qemu-ed9e923c3c9a2c50c4e82ba178b3fb1feba56867.tar.gz qemu-ed9e923c3c9a2c50c4e82ba178b3fb1feba56867.tar.xz qemu-ed9e923c3c9a2c50c4e82ba178b3fb1feba56867.zip |
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 'hw/i386/pc_piix.c')
-rw-r--r-- | hw/i386/pc_piix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index ffb30c32ce..b3f0304ca3 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -281,7 +281,7 @@ else { /* TODO: Populate SPD eeprom data. */ pcms->smbus = piix4_pm_init(pci_bus, piix3_devfn + 3, 0xb100, x86ms->gsi[9], smi_irq, - pc_machine_is_smm_enabled(pcms), + x86_machine_is_smm_enabled(x86ms), &piix4_pm); smbus_eeprom_init(pcms->smbus, 8, NULL, 0); @@ -309,9 +309,9 @@ else { static void pc_compat_2_3_fn(MachineState *machine) { - PCMachineState *pcms = PC_MACHINE(machine); + X86MachineState *x86ms = X86_MACHINE(machine); if (kvm_enabled()) { - pcms->smm = ON_OFF_AUTO_OFF; + x86ms->smm = ON_OFF_AUTO_OFF; } } |