Skip to contentSkip to conversation

Do not fail if eventfds are not supported

PATCH Superseded Pavel Fedin 1 participant 1 message May 6, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 Do not fail if eventfds are not supported

---
 hw/virtio/virtio-mmio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
hw/virtio/virtio-mmio.c +1 -0
index 97a1fb0..a86c816 100644
@@ -22,6 +22,7 @@
 #include "hw/sysbus.h"
 #include "hw/virtio/virtio.h"
 #include "qemu/host-utils.h"
+#include "sysemu/kvm.h"
 #include "hw/virtio/virtio-bus.h"
 #include "qemu/error-report.h"
 
@@ -124,7 +125,8 @@ static void virtio_mmio_start_ioeventfd(VirtIOMMIOProxy

*proxy)

     VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
     int n, r;

- if (proxy->ioeventfd_disabled ||
+ if (!kvm_eventfds_enabled() ||
+ proxy->ioeventfd_disabled ||

         proxy->ioeventfd_started) {
         return;
     }
Signature · 1 line
1.9.5.msysgit.0