Re: [PATCH 2/2] tools/virtio: virtio_test tool

2011-09-06 Thread Zhi Yong Wu
Thanks. very good learning material. On Tue, Nov 30, 2010 at 1:16 AM, Michael S. Tsirkin m...@redhat.com wrote: This is the userspace part of the tool: it includes a bunch of stubs for linux APIs, somewhat simular to linuxsched. This makes it possible to recompile the ring code in userspace.

Re: [PATCH 2/2] tools/virtio: virtio_test tool

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 06, 2010 at 03:23:02PM +1030, Rusty Russell wrote: On Tue, 30 Nov 2010 03:46:37 am Michael S. Tsirkin wrote: This is the userspace part of the tool: it includes a bunch of stubs for linux APIs, somewhat simular to linuxsched. This makes it possible to recompile the ring code in

Re: [PATCH 2/2] tools/virtio: virtio_test tool

2010-12-07 Thread Thiago Farina
On Mon, Nov 29, 2010 at 3:16 PM, Michael S. Tsirkin m...@redhat.com wrote: +#define container_of(ptr, type, member) ({                     \ +       const typeof( ((type *)0)-member ) *__mptr = (ptr);    \ +       (type *)( (char *)__mptr - offsetof(type,member) );}) + +#define