From 348cdee48e5b5fcf0f448596750b14cab874ad18 Mon Sep 17 00:00:00 2001 From: Valentine Sinitsyn Date: Sun, 1 Feb 2015 17:18:40 +0500 Subject: [PATCH] configs: Prepare f2a8xm-hd3 cell to multi-IOAPIC 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 Signed-off-by: Jan Kiszka --- configs/f2a88xm-hd3.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configs/f2a88xm-hd3.c b/configs/f2a88xm-hd3.c index 5849e2b..b570c58 100644 --- a/configs/f2a88xm-hd3.c +++ b/configs/f2a88xm-hd3.c @@ -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 = { -- 2.39.2