diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-12-01 20:58:03 -0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-12-22 17:45:12 +0200 |
commit | 7102fa7073b2cefb33ab4012a11f15fbf297a74b (patch) | |
tree | c9f9061294e1dde0a82219c425531f17b358dec2 /hw/i386/pc.c | |
parent | 097a50d0d861680da24897b6003f8eea2333577f (diff) | |
download | qemu-7102fa7073b2cefb33ab4012a11f15fbf297a74b.zip qemu-7102fa7073b2cefb33ab4012a11f15fbf297a74b.tar.gz qemu-7102fa7073b2cefb33ab4012a11f15fbf297a74b.tar.bz2 |
pc: Move compat boolean globals to PCMachineClass
This way the compat flags can be initialized in the machine_options()
function. This will help us to eventually eliminate the pc_compat_*()
functions.
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.c')
-rw-r--r-- | hw/i386/pc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 426424a..c2e1a7e 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1953,6 +1953,14 @@ static void pc_machine_class_init(ObjectClass *oc, void *data) HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); pcmc->get_hotplug_handler = mc->get_hotplug_handler; + pcmc->pci_enabled = true; + pcmc->has_acpi_build = true; + pcmc->rsdp_in_ram = true; + pcmc->smbios_defaults = true; + pcmc->smbios_uuid_encoded = true; + pcmc->gigabyte_align = true; + pcmc->has_reserved_memory = true; + pcmc->kvmclock_enabled = true; mc->get_hotplug_handler = pc_get_hotpug_handler; mc->cpu_index_to_socket_id = pc_cpu_index_to_socket_id; mc->default_boot_order = "cad"; |