diff options
author | Eduardo Habkost | 2015-12-01 23:58:06 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2015-12-22 16:45:12 +0100 |
commit | 16a9e8a5bcc1fb0796828eb654a4f926734e59af (patch) | |
tree | b52fff7076734f50ecfb95e2651c481562d66e25 /hw/i386/pc_piix.c | |
parent | pc: Move acpi_data_size global to PCMachineClass (diff) | |
download | qemu-16a9e8a5bcc1fb0796828eb654a4f926734e59af.tar.gz qemu-16a9e8a5bcc1fb0796828eb654a4f926734e59af.tar.xz qemu-16a9e8a5bcc1fb0796828eb654a4f926734e59af.zip |
pc: Move enforce_aligned_dimm to PCMachineClass
enforce_aligned_dimm never changes after the machine is
initialized, so it can be simply set in PCMachineClass like all
the other compat fields.
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/pc_piix.c')
-rw-r--r-- | hw/i386/pc_piix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 82b8a5e74f..f058b3cb00 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -308,11 +308,8 @@ static void pc_compat_2_2(MachineState *machine) static void pc_compat_2_1(MachineState *machine) { - PCMachineState *pcms = PC_MACHINE(machine); - pc_compat_2_2(machine); x86_cpu_change_kvm_default("svm", NULL); - pcms->enforce_aligned_dimm = false; } static void pc_compat_2_0(MachineState *machine) @@ -484,6 +481,7 @@ static void pc_i440fx_2_1_machine_options(MachineClass *m) m->default_display = NULL; SET_MACHINE_COMPAT(m, PC_COMPAT_2_1); pcmc->smbios_uuid_encoded = false; + pcmc->enforce_aligned_dimm = false; } DEFINE_I440FX_MACHINE(v2_1, "pc-i440fx-2.1", pc_compat_2_1, |