summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorDavid Gibson2015-09-30 04:13:52 +0200
committerAlex Williamson2015-10-05 20:37:02 +0200
commitac6dc3894fbb6775245565229953879a0263d27f (patch)
tree37200e10860b83df51a5ca2690be8618cc8ba126 /include/exec
parentvfio: Remove unneeded union from VFIOContainer (diff)
downloadqemu-ac6dc3894fbb6775245565229953879a0263d27f.tar.gz
qemu-ac6dc3894fbb6775245565229953879a0263d27f.tar.xz
qemu-ac6dc3894fbb6775245565229953879a0263d27f.zip
vfio: Generalize vfio_listener_region_add failure path
If a DMA mapping operation fails in vfio_listener_region_add() it checks to see if we've already completed initial setup of the container. If so it reports an error so the setup code can fail gracefully, otherwise throws a hw_error(). There are other potential failure cases in vfio_listener_region_add() which could benefit from the same logic, so move it to its own fail: block. Later patches can use this to extend other failure cases to fail as gracefully as possible under the circumstances. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions