dataplane: fail notifier setting gracefully
commitf9907ebc4cc37d0317ee67cfa8d6618eaf8f658b
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 25 Jul 2014 12:10:47 +0000 (25 14:10 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Aug 2014 17:03:13 +0000 (15 18:03 +0100)
treeeaa1b931677135e51097c7e31ae4d73cc3fa308a
parent267e1a204c073eac28b1510bcc2404668d306e17
dataplane: fail notifier setting gracefully

The dataplane code is currently doing a hard exit if it fails to set
up either guest or host notifiers. In practice, this may mean that a
guest suddenly dies after a dataplane device failed to come up (e.g.,
when a file descriptor limit is hit for tne nth device).

Let's just try to unwind the setup instead and return.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c