Re: [Qemu-devel] [PATCH for-2.0 2/2] dataplane: replace iothread object_add() with embedded instance

2014-03-21 Thread Stefan Hajnoczi
On Thu, Mar 20, 2014 at 03:37:54PM +0100, Paolo Bonzini wrote: > Il 20/03/2014 15:06, Stefan Hajnoczi ha scritto: > >+object_initialize(&s->internal_iothread_obj, > >+ sizeof(s->internal_iothread_obj), > >+ TYPE_IOTHREAD); > >+user_c

Re: [Qemu-devel] [PATCH for-2.0 2/2] dataplane: replace iothread object_add() with embedded instance

2014-03-20 Thread Paolo Bonzini
Il 20/03/2014 15:06, Stefan Hajnoczi ha scritto: +object_initialize(&s->internal_iothread_obj, + sizeof(s->internal_iothread_obj), + TYPE_IOTHREAD); +user_creatable_complete(OBJECT(&s->internal_iothread_obj), &error_abort); Perh

[Qemu-devel] [PATCH for-2.0 2/2] dataplane: replace iothread object_add() with embedded instance

2014-03-20 Thread Stefan Hajnoczi
Before IOThread was its own object, each virtio-blk device would create its own internal thread. We need to preserve this behavior for backwards compatibility when users do not specify -device virtio-blk-pci,iothread=. This patch changes how the internal IOThread object is created. Previously we