qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH-for-10.2] hw/pci-host/dino: Correct PCI memory access to PA I/O range
@ 2025-11-23 18:55 Philippe Mathieu-Daudé
  0 siblings, 0 replies; only message in thread
From: Philippe Mathieu-Daudé @ 2025-11-23 18:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Helge Deller, Richard Henderson, Philippe Mathieu-Daudé

PCI memory transactions above 0xf000_0000 can access
to the whole PA space. Fix the one missing byte.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/pci-host/dino.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/pci-host/dino.c b/hw/pci-host/dino.c
index 924053499c1..34aca429c98 100644
--- a/hw/pci-host/dino.c
+++ b/hw/pci-host/dino.c
@@ -466,7 +466,7 @@ static void dino_pcihost_realize(DeviceState *dev, Error **errp)
                              30 * DINO_MEM_CHUNK_SIZE);
     memory_region_init_alias(&s->bm_cpu_alias, OBJECT(s),
                              "bm-cpu", s->memory_as, 0xfff00000,
-                             0xfffff);
+                             1 * MiB);
     memory_region_add_subregion(&s->bm, 0,
                                 &s->bm_ram_alias);
     memory_region_add_subregion(&s->bm,
-- 
2.51.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-23 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-23 18:55 [PATCH-for-10.2] hw/pci-host/dino: Correct PCI memory access to PA I/O range Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).