diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2015-09-30 12:13:52 +1000 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-10-05 12:37:02 -0600 |
commit | ac6dc3894fbb6775245565229953879a0263d27f (patch) | |
tree | 37200e10860b83df51a5ca2690be8618cc8ba126 /include/hw/vfio | |
parent | ee0bf0e59bb1c07c0196142f2ecfd88f7f8b194e (diff) |
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/hw/vfio')
0 files changed, 0 insertions, 0 deletions