From: Philippe Mathieu-Daudé Date: Mon, 9 Mar 2026 18:35:35 +0000 (+0100) Subject: system/memory: Have memory_region_type() correctly describe containers X-Git-Tag: v11.0.0-rc0~22^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=40aa899d030e957f815beab33e997a1970914580;p=thirdparty%2Fqemu.git system/memory: Have memory_region_type() correctly describe containers MemoryRegion containers are not I/O regions, describe them as 'container'. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Peter Xu Link: https://lore.kernel.org/r/20260309183536.88976-5-philmd@linaro.org Signed-off-by: Peter Xu --- diff --git a/system/memory.c b/system/memory.c index fca74ee62b4..17a7bcd9af7 100644 --- a/system/memory.c +++ b/system/memory.c @@ -3234,6 +3234,8 @@ static const char *memory_region_type(const MemoryRegion *mr) return "rom"; } else if (memory_region_is_ram(mr)) { return "ram"; + } else if (!mr->container) { + return "container"; } else { return "i/o"; }