mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
acpi: Move setters/getters of oem fields to X86MachineState
The code that sets/gets oem fields is duplicated in both PC and MICROVM variants. This commit moves it to X86MachineState so that all x86 variants can use it and duplication is removed. Signed-off-by: Marian Postevca <posteuca@mutex.one> Message-Id: <20210221001737.24499-2-posteuca@mutex.one> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
50337286b7
commit
d07b22863b
8 changed files with 100 additions and 169 deletions
|
@ -46,8 +46,6 @@ typedef struct PCMachineState {
|
|||
bool pit_enabled;
|
||||
bool hpet_enabled;
|
||||
uint64_t max_fw_size;
|
||||
char *oem_id;
|
||||
char *oem_table_id;
|
||||
|
||||
/* NUMA information: */
|
||||
uint64_t numa_nodes;
|
||||
|
@ -65,8 +63,6 @@ typedef struct PCMachineState {
|
|||
#define PC_MACHINE_SATA "sata"
|
||||
#define PC_MACHINE_PIT "pit"
|
||||
#define PC_MACHINE_MAX_FW_SIZE "max-fw-size"
|
||||
#define PC_MACHINE_OEM_ID "oem-id"
|
||||
#define PC_MACHINE_OEM_TABLE_ID "oem-table-id"
|
||||
/**
|
||||
* PCMachineClass:
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue