summaryrefslogtreecommitdiffstats
path: root/include/hw/i386/pc.h
diff options
context:
space:
mode:
authorEduardo Habkost2015-12-01 23:58:06 +0100
committerMichael S. Tsirkin2015-12-22 16:45:12 +0100
commit16a9e8a5bcc1fb0796828eb654a4f926734e59af (patch)
treeb52fff7076734f50ecfb95e2651c481562d66e25 /include/hw/i386/pc.h
parentpc: Move acpi_data_size global to PCMachineClass (diff)
downloadqemu-16a9e8a5bcc1fb0796828eb654a4f926734e59af.tar.gz
qemu-16a9e8a5bcc1fb0796828eb654a4f926734e59af.tar.xz
qemu-16a9e8a5bcc1fb0796828eb654a4f926734e59af.zip
pc: Move enforce_aligned_dimm to PCMachineClass
enforce_aligned_dimm never changes after the machine is initialized, so it can be simply set in PCMachineClass like all the other compat fields. Cc: Igor Mammedov <imammedo@redhat.com> 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>
Diffstat (limited to 'include/hw/i386/pc.h')
-rw-r--r--include/hw/i386/pc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 3edae2bfa8..d1dc63ceb8 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -36,8 +36,6 @@
/**
* PCMachineState:
* @acpi_dev: link to ACPI PM device that performs ACPI hotplug handling
- * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
- * backend's alignment value if provided
*/
struct PCMachineState {
/*< private >*/
@@ -52,7 +50,6 @@ struct PCMachineState {
uint64_t max_ram_below_4g;
OnOffAuto vmport;
OnOffAuto smm;
- bool enforce_aligned_dimm;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
};
@@ -66,6 +63,8 @@ struct PCMachineState {
/**
* PCMachineClass:
* @get_hotplug_handler: pointer to parent class callback @get_hotplug_handler
+ * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
+ * backend's alignment value if provided
*/
struct PCMachineClass {
/*< private >*/
@@ -94,6 +93,7 @@ struct PCMachineClass {
* and other BIOS datastructures.
*/
unsigned acpi_data_size;
+ bool enforce_aligned_dimm;
};
#define TYPE_PC_MACHINE "generic-pc-machine"