mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
097a50d0d8
commit
7102fa7073
4 changed files with 86 additions and 74 deletions
|
@ -75,6 +75,20 @@ struct PCMachineClass {
|
|||
bool broken_reserved_end;
|
||||
HotplugHandler *(*get_hotplug_handler)(MachineState *machine,
|
||||
DeviceState *dev);
|
||||
|
||||
bool pci_enabled;
|
||||
bool has_acpi_build;
|
||||
bool rsdp_in_ram;
|
||||
bool smbios_defaults;
|
||||
bool smbios_legacy_mode;
|
||||
bool smbios_uuid_encoded;
|
||||
/* Make sure that guest addresses aligned at 1Gbyte boundaries get
|
||||
* mapped to host addresses aligned at 1Gbyte boundaries. This way
|
||||
* we can use 1GByte pages in the host.
|
||||
*/
|
||||
bool gigabyte_align;
|
||||
bool has_reserved_memory;
|
||||
bool kvmclock_enabled;
|
||||
};
|
||||
|
||||
#define TYPE_PC_MACHINE "generic-pc-machine"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue