diff options
| author | Alexey Kardashevskiy | 2017-07-20 09:22:29 +0200 |
|---|---|---|
| committer | David Gibson | 2017-09-08 01:30:55 +0200 |
| commit | f5509b6bebc68fc781f0823e628fead884fd69d4 (patch) | |
| tree | 6ab59b29ad74cde8fb03f724288dda87272a306a /include | |
| parent | ppc64: introduce e6500 (diff) | |
| download | qemu-f5509b6bebc68fc781f0823e628fead884fd69d4.tar.gz qemu-f5509b6bebc68fc781f0823e628fead884fd69d4.tar.xz qemu-f5509b6bebc68fc781f0823e628fead884fd69d4.zip | |
spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci
This replaces g_malloc() with spapr_tce_alloc_table() as this is
the standard way of allocating tables and this allows moving the table
back to KVM when unplugging a VFIO PCI device and VFIO TCE acceleration
support is not present in the KVM.
Although spapr_tce_alloc_table() is expected to fail with EBUSY
if called when previous fd is not closed yet, in practice we will not
see it because cap_spapr_vfio is false at the moment.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
