OSDN Git Service

vfio: Add host side DMA window capabilities
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 4 Jul 2016 03:33:05 +0000 (13:33 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 5 Jul 2016 04:31:08 +0000 (14:31 +1000)
commitf4ec5e26edbd4c7509623ec882c344dc334bc1b2
treeb9e2a8b113d0aa3cc9783b6772119c821f48d121
parent318f67ce13710a09c6dcf34da7b6b0ebc845c5c9
vfio: Add host side DMA window capabilities

There are going to be multiple IOMMUs per a container. This moves
the single host IOMMU parameter set to a list of VFIOHostDMAWindow.

This should cause no behavioral change and will be used later by
the SPAPR TCE IOMMU v2 which will also add a vfio_host_win_del() helper.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/vfio/common.c
include/hw/vfio/vfio-common.h