From: Jan Kiszka <[email protected]>

Available at least in recent QEMU versions by default. Not allowing
access breaks lspci, even without devices attached.

Signed-off-by: Jan Kiszka <[email protected]>
---
 configs/arm64/qemu-arm64.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configs/arm64/qemu-arm64.c b/configs/arm64/qemu-arm64.c
index 6eff7403..79e7cda6 100644
--- a/configs/arm64/qemu-arm64.c
+++ b/configs/arm64/qemu-arm64.c
@@ -20,7 +20,7 @@
 struct {
        struct jailhouse_system header;
        __u64 cpus[1];
-       struct jailhouse_memory mem_regions[3];
+       struct jailhouse_memory mem_regions[4];
        struct jailhouse_irqchip irqchips[1];
        struct jailhouse_pci_device pci_devices[1];
 } __attribute__((packed)) config = {
@@ -88,6 +88,13 @@ struct {
                        .size = 0x100000,
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
                },
+               /* "physical" PCI ECAM */ {
+                       .phys_start = 0x4010000000,
+                       .virt_start = 0x4010000000,
+                       .size = 0x10000000,
+                       .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
+                               JAILHOUSE_MEM_IO,
+               },
        },
 
        .irqchips = {
-- 
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/a17c46ce809e256ff674fc981b0dcc26eb971b5b.1562179456.git.jan.kiszka%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to