xen/passthrough: iommu: Basic support of device tree assignment
authorJulien Grall <julien.grall@linaro.org>
Tue, 13 May 2014 15:50:24 +0000 (16:50 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 14 May 2014 13:45:42 +0000 (14:45 +0100)
commitdf6d39cbeba73ba7e1c27b9496c38169b5ec05f8
treee61373e4084f30f3ad6a18d892b0fcf998451708
parentdfd60b0750c2ca79e27145622c412642b0bc8d90
xen/passthrough: iommu: Basic support of device tree assignment

Add IOMMU helpers to support device tree assignment/deassignment. This patch
introduces 2 new fields in the dt_device_node:
    - is_protected: Does the device is protected by an IOMMU
    - domain_list: Pointer to the next device assigned to the same
    domain

This commit contains only support to protected a device with DOM0.
Device passthrough to another guest won't work out-of-box.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Xiantao Zhang <xiantao.zhang@intel.com>
xen/common/device_tree.c
xen/drivers/passthrough/Makefile
xen/drivers/passthrough/device_tree.c [new file with mode: 0644]
xen/include/xen/device_tree.h
xen/include/xen/hvm/iommu.h
xen/include/xen/iommu.h