diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-06-02 15:25:09 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 16:41:48 +0300 |
commit | a0cc8856e8722188583901665c7d9e5ddc752fc0 (patch) | |
tree | 7d701e81e165ae71171b3085a877a03d09e38c30 /include/hw/acpi | |
parent | 619d11e4631000f20318dec90b87f314272bfa4a (diff) | |
download | hqemu-a0cc8856e8722188583901665c7d9e5ddc752fc0.zip hqemu-a0cc8856e8722188583901665c7d9e5ddc752fc0.tar.gz |
pc: exit QEMU if number of slots more than supported 256
... which is imposed by current naming scheme of ACPI memory devices.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r-- | include/hw/acpi/acpi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h index a9fae9d..e93de6c 100644 --- a/include/hw/acpi/acpi.h +++ b/include/hw/acpi/acpi.h @@ -26,6 +26,12 @@ #include "exec/memory.h" #include "hw/irq.h" +/* + * current device naming scheme supports + * only upto 256 memory devices + */ +#define ACPI_MAX_RAM_SLOTS 256 + /* from linux include/acpi/actype.h */ /* Default ACPI register widths */ |