Re: [PATCH 07/18] virtio ring: inline function to check for events

2011-05-05 Thread Stefan Hajnoczi
On Wed, May 4, 2011 at 9:51 PM, Michael S. Tsirkin m...@redhat.com wrote: With the new used_event and avail_event and features, both host and guest need similar logic to check whether events are enabled, so it helps to put the common code in the header. Note that Xen has similar logic for

Re: [PATCH 07/18] virtio ring: inline function to check for events

2011-05-05 Thread Michael S. Tsirkin
On Thu, May 05, 2011 at 09:34:46AM +0100, Stefan Hajnoczi wrote: On Wed, May 4, 2011 at 9:51 PM, Michael S. Tsirkin m...@redhat.com wrote: With the new used_event and avail_event and features, both host and guest need similar logic to check whether events are enabled, so it helps to put the

[PATCH 07/18] virtio ring: inline function to check for events

2011-05-04 Thread Michael S. Tsirkin
With the new used_event and avail_event and features, both host and guest need similar logic to check whether events are enabled, so it helps to put the common code in the header. Note that Xen has similar logic for notification hold-off in include/xen/interface/io/ring.h with req_event and