diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-12-01 20:58:05 -0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-12-22 17:45:12 +0200 |
commit | cd4040ec1870f8ec49ec995d89d4862e0b6021b3 (patch) | |
tree | 9a6837008c608653d38bf10876ec6897d8f99a66 /hw/i386/pc_q35.c | |
parent | 2b0ddf6612fe270a6db0394da6cf4d44ff48b3f5 (diff) |
pc: Move acpi_data_size global to PCMachineClass
This way we don't need code in pc_compat_*() functions to set the legacy
acpi_data_size value.
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>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Diffstat (limited to 'hw/i386/pc_q35.c')
-rw-r--r-- | hw/i386/pc_q35.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index c028748785..cc85d3a475 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -302,7 +302,6 @@ static void pc_compat_2_1(MachineState *machine) static void pc_compat_2_0(MachineState *machine) { pc_compat_2_1(machine); - pc_set_legacy_acpi_data_size(); } static void pc_compat_1_7(MachineState *machine) @@ -424,6 +423,7 @@ static void pc_q35_2_0_machine_options(MachineClass *m) SET_MACHINE_COMPAT(m, PC_COMPAT_2_0); pcmc->has_reserved_memory = false; pcmc->smbios_legacy_mode = true; + pcmc->acpi_data_size = 0x10000; } DEFINE_Q35_MACHINE(v2_0, "pc-q35-2.0", pc_compat_2_0, |