Re: [Qemu-devel] [PATCH] hw/virtio/virtio.c: fix the vring_avail_event error

2014-10-31 Thread Bin Wu
On 2014/10/31 0:48, Stefan Hajnoczi wrote: > On Tue, Oct 28, 2014 at 02:13:02AM +, Bin Wu wrote: >> The event idx in virtio is an effective way to reduce the number of >> interrupts and exits of the guest. When the guest puts an request >> into the virtio ring, it doesn't exit immediately to in

Re: [Qemu-devel] [PATCH] hw/virtio/virtio.c: fix the vring_avail_event error

2014-10-31 Thread Stefan Hajnoczi
On Tue, Oct 28, 2014 at 02:13:02AM +, Bin Wu wrote: > The event idx in virtio is an effective way to reduce the number of > interrupts and exits of the guest. When the guest puts an request > into the virtio ring, it doesn't exit immediately to inform the > backend. Instead, the guest checks th

Re: [Qemu-devel] [PATCH] hw/virtio/virtio.c: fix the vring_avail_event error

2014-10-28 Thread Bin Wu
On 2014/10/28 13:32, Michael S. Tsirkin wrote: > On Tue, Oct 28, 2014 at 02:13:02AM +, Bin Wu wrote: >> The event idx in virtio is an effective way to reduce the number of >> interrupts and exits of the guest. When the guest puts an request >> into the virtio ring, it doesn't exit immediately t

Re: [Qemu-devel] [PATCH] hw/virtio/virtio.c: fix the vring_avail_event error

2014-10-27 Thread Michael S. Tsirkin
On Tue, Oct 28, 2014 at 02:13:02AM +, Bin Wu wrote: > The event idx in virtio is an effective way to reduce the number of > interrupts and exits of the guest. When the guest puts an request > into the virtio ring, it doesn't exit immediately to inform the > backend. Instead, the guest checks th

[Qemu-devel] [PATCH] hw/virtio/virtio.c: fix the vring_avail_event error

2014-10-27 Thread Bin Wu
The event idx in virtio is an effective way to reduce the number of interrupts and exits of the guest. When the guest puts an request into the virtio ring, it doesn't exit immediately to inform the backend. Instead, the guest checks the "avail" event idx to determine the notification. In virtqueue