]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
configs: Prepare f2a8xm-hd3 cell to multi-IOAPIC
authorValentine Sinitsyn <valentine.sinitsyn@gmail.com>
Sun, 1 Feb 2015 12:18:40 +0000 (17:18 +0500)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 2 Feb 2015 15:57:00 +0000 (16:57 +0100)
The board has two IOAPICs, and now as Jailhouse supports more than
one of these chips, they can be safely added to the config.

Signed-off-by: Valentine Sinitsyn <valentine.sinitsyn@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
configs/f2a88xm-hd3.c

index 5849e2bf96dbd0f31d4fce7f1650da84ba5e1960..b570c583e902560eae829fb366e5f4c4e0f5df94 100644 (file)
@@ -26,7 +26,7 @@ struct {
        struct jailhouse_system header;
        __u64 cpus[1];
        struct jailhouse_memory mem_regions[33];
-       struct jailhouse_irqchip irqchips[1];
+       struct jailhouse_irqchip irqchips[2];
        __u8 pio_bitmap[0x2000];
        struct jailhouse_pci_device pci_devices[24];
        struct jailhouse_pci_capability pci_caps[26];
@@ -299,11 +299,18 @@ struct {
        },
 
        .irqchips = {
-               /* IOAPIC */ {
+               /* IOAPIC 0, GSI base 0 */
+               {
                        .address = 0xfec00000,
                        .id = 0x0,
                        .pin_bitmap = 0xffffff,
                },
+               /* IOAPIC 1, GSI base 24 */
+               {
+                       .address = 0xfec01000,
+                       .id = 0x0,
+                       .pin_bitmap = 0xffffff,
+               },
        },
 
        .pio_bitmap = {