]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core/configs/tools: Report IOMMU association of devices via config file
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 20 Aug 2014 07:08:01 +0000 (09:08 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 28 Aug 2014 06:33:07 +0000 (08:33 +0200)
commit49e40428789966cd1142aba40d7f2bbce2f6ed66
tree72a864c29daf734672dab26793384956606f25e1
parent7faf0f8f72ea884de291a6ebeed8fea4ed25b7c0
core/configs/tools: Report IOMMU association of devices via config file

We will need this information for emulating VT-d for the root cell:

Add an iommu field to the PCI device config structure and encode the
unit number in the id field of the IOAPIC's irqchip structure.
The config generator fills the fields according to the DMAR ACPI table.
However, we do not yet understand all exotic forms of Device Scope
structures.

If it turns out that there are PCI devices without any IOMMU
association, refuse to generate a config file - such systems are
unsupported (with the temporary exception of AMD platforms).

Update the h87i config accordingly. QEMU currently only exposes a single
DMAR unit, thus the implicit zero-initialization is fine. As the IOMMU
number is only used in the context of the root cell, ioapic-demo and
pci-demo require no updates as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
configs/h87i.c
configs/ioapic-demo.c
hypervisor/arch/x86/include/asm/cell.h
hypervisor/arch/x86/ioapic.c
hypervisor/include/jailhouse/cell-config.h
tools/jailhouse-config-create
tools/root-cell-config.c.tmpl