OSDN Git Service

tests/avocado: add test to exercise processor address space memory bound checks
authorAni Sinha <anisinha@redhat.com>
Thu, 9 Nov 2023 04:56:01 +0000 (10:26 +0530)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Nov 2023 15:56:24 +0000 (16:56 +0100)
commit0034d0395e4e92c722a7044d291b2bab42f705bd
treeedbfa2ec53f11468525ef62f3a10b6c202f350c5
parent4c7ae73caf7e794a7bf909906e21381f5f01b369
tests/avocado: add test to exercise processor address space memory bound checks

QEMU has validations to make sure that a VM is not started with more memory
(static and hotpluggable memory) than what the guest processor can address
directly with its addressing bits. This change adds a test to make sure QEMU
fails to start with a specific error message when an attempt is made to
start a VM with more memory than what the processor can directly address.
The test also checks for passing cases when the address space of the processor
is capable of addressing all memory. Boundary cases are tested.

CC: imammedo@redhat.com
CC: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Ani Sinha <anisinha@redhat.com>
Message-ID: <20231109045601.33349-1-anisinha@redhat.com>
Message-ID: <D5D8D419-76BA-4FB0-9BAC-4F7470A052FC@redhat.com>
[PMD: Use SPDX tag]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
tests/avocado/mem-addr-space-check.py [new file with mode: 0644]