[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/16] pc: Move PcGuestInfo declaration to top of fi
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 01/16] pc: Move PcGuestInfo declaration to top of file |
Date: |
Tue, 1 Dec 2015 23:46:56 -0200 |
The struct will be used inside PCMachineState.
Signed-off-by: Eduardo Habkost <address@hidden>
---
include/hw/i386/pc.h | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 9811229..a74bded 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -20,6 +20,22 @@
#define HPET_INTCAP "hpet-intcap"
+/* Machine info for ACPI build: */
+struct PcGuestInfo {
+ bool isapc_ram_fw;
+ hwaddr ram_size, ram_size_below_4g;
+ unsigned apic_id_limit;
+ bool apic_xrupt_override;
+ uint64_t numa_nodes;
+ uint64_t *node_mem;
+ uint64_t *node_cpu;
+ FWCfgState *fw_cfg;
+ int legacy_acpi_table_size;
+ bool has_acpi_build;
+ bool has_reserved_memory;
+ bool rsdp_in_ram;
+};
+
/**
* PCMachineState:
* @acpi_dev: link to ACPI PM device that performs ACPI hotplug handling
@@ -109,21 +125,6 @@ typedef struct PcPciInfo {
#define ACPI_PM_PROP_GPE0_BLK_LEN "gpe0_blk_len"
#define ACPI_PM_PROP_TCO_ENABLED "enable_tco"
-struct PcGuestInfo {
- bool isapc_ram_fw;
- hwaddr ram_size, ram_size_below_4g;
- unsigned apic_id_limit;
- bool apic_xrupt_override;
- uint64_t numa_nodes;
- uint64_t *node_mem;
- uint64_t *node_cpu;
- FWCfgState *fw_cfg;
- int legacy_acpi_table_size;
- bool has_acpi_build;
- bool has_reserved_memory;
- bool rsdp_in_ram;
-};
-
/* parallel.c */
void parallel_hds_isa_init(ISABus *bus, int n);
--
2.1.0
- [Qemu-devel] [PATCH 00/16] pc: Eliminate struct PcGuestInfo, Eduardo Habkost, 2015/12/01
- [Qemu-devel] [PATCH 01/16] pc: Move PcGuestInfo declaration to top of file,
Eduardo Habkost <=
- [Qemu-devel] [PATCH 02/16] pc: Eliminate struct PcGuestInfoState, Eduardo Habkost, 2015/12/01
- [Qemu-devel] [PATCH 03/16] pc: Remove guest_info parameter from pc_memory_init(), Eduardo Habkost, 2015/12/01
- [Qemu-devel] [PATCH 05/16] acpi: Remove unused build_facs() PcGuestInfo paramter, Eduardo Habkost, 2015/12/01
- [Qemu-devel] [PATCH 04/16] acpi: Make acpi_setup() get PCMachineState as argument, Eduardo Habkost, 2015/12/01
- [Qemu-devel] [PATCH 06/16] acpi: Save PCMachineState on AcpiBuildState, Eduardo Habkost, 2015/12/01