David Gibson ac6dc3894f 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>
2015-10-05 12:37:02 -06:00
..
2015-07-27 18:11:53 +03:00
2015-09-25 12:04:43 +02:00
2015-09-11 10:45:43 +03:00
2015-09-25 14:56:22 +02:00
2015-09-25 12:04:43 +02:00
2015-09-14 16:13:16 +01:00
2015-09-14 14:39:49 +01:00
2015-09-07 10:39:30 +01:00
2015-09-18 10:58:56 -04:00
2015-09-09 15:34:53 +02:00
2015-09-25 12:04:43 +02:00
2015-09-25 12:04:43 +02:00
2015-09-25 21:52:30 +01:00
2014-10-24 12:19:11 +01:00
2015-09-25 12:04:41 +02:00
2015-09-11 10:45:43 +03:00
2015-09-07 10:39:28 +01:00
2015-09-25 14:56:05 +02:00
2015-09-23 23:34:17 +02:00
2015-09-25 14:52:17 +02:00
2015-09-11 10:45:43 +03:00