]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - hypervisor/arch/x86/ioapic.c
core/configs/tools: Report IOMMU association of devices via config file
[jailhouse.git] / hypervisor / arch / x86 / ioapic.c
index acd179cfa59f3f208f65b904bff9f2e5b87a0233..a0b77dd0808e54e2354fe6ba92258f3caebc90d1 100644 (file)
@@ -212,7 +212,8 @@ void ioapic_cell_init(struct cell *cell)
                ioapic_find_config(cell->config);
 
        if (irqchip) {
-               cell->ioapic_id = irqchip->id;
+               cell->ioapic_id = (u16)irqchip->id;
+               cell->ioapic_iommu = (u8)(irqchip->id >> 16);
                cell->ioapic_pin_bitmap = irqchip->pin_bitmap;
 
                if (cell != &root_cell) {