diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2018-02-06 11:08:24 -0700 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2018-02-06 11:08:24 -0700 |
commit | 07bc681a331311e9c51d1cd8933739a80cd57af8 (patch) | |
tree | 48923618cdcf812a321ffd1a7ca68336415b77f3 /hw/arm/spitz.c | |
parent | f1334de60b2a43102d2d47918463e6a2cdcfcdeb (diff) |
vfio/spapr: Use iommu memory region's get_attr()
In order to enable TCE operations support in KVM, we have to inform
the KVM about VFIO groups being attached to specific LIOBNs. The KVM
already knows about VFIO groups, the only bit missing is which
in-kernel TCE table (the one with user visible TCEs) should update
the attached broups. There is an KVM_DEV_VFIO_GROUP_SET_SPAPR_TCE
attribute of the VFIO KVM device which receives a groupfd/tablefd couple.
This uses a new memory_region_iommu_get_attr() helper to get the IOMMU fd
and calls KVM to establish the link.
As get_attr() is not implemented yet, this should cause no behavioural
change.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/arm/spitz.c')
0 files changed, 0 insertions, 0 deletions