xen/passthrough: Extend XEN_DOMCTL_*assign_device to support DT device
authorJulien Grall <julien.grall@linaro.org>
Tue, 28 Apr 2015 14:32:36 +0000 (15:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 8 May 2015 14:41:59 +0000 (15:41 +0100)
commitfe36cccc483cee4233c9d01d7cea46c7666db96d
treec490feb762827c8ae1f3a90dfe4a725708ed3e64
parent5fb6f0a4db26292bcf5c1d421181e62ef9fcdb39
xen/passthrough: Extend XEN_DOMCTL_*assign_device to support DT device

A device node is described by a path. It will be used to retrieve the
node in the device tree and assign the related device to the domain.

Only non-PCI devices protected by an IOMMU can be assigned to a guest.

Also document the behavior of XEN_DOMCTL_deassign_device in the public
headers which differ between non-PCI and PCI.

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: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_domain.c
xen/drivers/passthrough/device_tree.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/include/public/domctl.h
xen/include/xen/iommu.h