diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-12-01 20:58:06 -0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-12-22 17:45:12 +0200 |
commit | 16a9e8a5bcc1fb0796828eb654a4f926734e59af (patch) | |
tree | b52fff7076734f50ecfb95e2651c481562d66e25 /include | |
parent | cd4040ec1870f8ec49ec995d89d4862e0b6021b3 (diff) |
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')
-rw-r--r-- | include/hw/i386/pc.h | 6 |
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" |