Message ID | 1401695374-4287-10-git-send-email-eric.auger@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index 377783b..56dde5f 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -346,6 +346,11 @@ static int vfio_enable_intp(VFIODevice *vdev, unsigned int index) sysbus_init_irq(sbdev, &intp->qemuirq); ret = event_notifier_init(&intp->interrupt, 0); + if (!ret && (intp->interrupt.rfd != intp->interrupt.wfd)) { + /* event_notifier_init created a pipe instead of eventfd */ + ret = -1; + } + if (ret) { error_report("vfio: Error: event_notifier_init failed "); return ret;