[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/16] virtio-pci: check that event notification wor
From: |
zwu . kernel |
Subject: |
[Qemu-devel] [PATCH 10/16] virtio-pci: check that event notification worked |
Date: |
Thu, 19 Apr 2012 10:39:03 +0800 |
From: Stefan Hajnoczi <address@hidden>
For sanity assert that event notification succeeds.
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/virtio-pci.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index dcd58d0..025a518 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -293,8 +293,11 @@ static void virtio_pci_queue_notify(VirtIOPCIProxy *proxy,
uint32_t n)
vq = virtio_get_queue(proxy->vdev, n);
notifier = virtio_queue_get_host_notifier(vq);
if (event_notifier_valid(notifier)) {
+ int r;
+
printf("notifying vq %u host notifier from userspace\n", n);
- event_notifier_notify(notifier);
+ r = event_notifier_notify(notifier);
+ assert(r == 0);
} else {
virtio_queue_notify_vq(vq);
}
--
1.7.6
- [Qemu-devel] [PATCH 01/16] virtio-scsi: Add wwpn and tgpt properties, (continued)
- [Qemu-devel] [PATCH 01/16] virtio-scsi: Add wwpn and tgpt properties, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 13/16] virtio-scsi: WIP VHOST_SCSI_SET_ENDPOINT call, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 12/16] virtio-scsi: use the vhost-scsi host device, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 14/16] vhost-scsi: enable vhost notifiers for multiple queues, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 09/16] virtio-pci: support host notifiers in TCG mode, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 11/16] vhost-scsi: add -vhost-scsi host device, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 08/16] notifier: add validity check and notify function, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 15/16] vhost-scsi: move some definitions to its header file, zwu . kernel, 2012/04/18
- [Qemu-devel] [PATCH 10/16] virtio-pci: check that event notification worked,
zwu . kernel <=
- [Qemu-devel] [PATCH 16/16] vhost-scsi: clear endpoint on stopped, zwu . kernel, 2012/04/18
- Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support, Paolo Bonzini, 2012/04/19
- Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support, Anthony Liguori, 2012/04/19