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>
This commit is contained in:
Igor Mammedov 2014-06-02 15:25:09 +02:00 committed by Michael S. Tsirkin
parent 619d11e463
commit a0cc8856e8
2 changed files with 12 additions and 0 deletions

View file

@ -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 */