Received: from eggs.gnu.org ([2001:4830:134:3::10]:41317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNRRi-0007p8-N1 for qemu-devel@nongnu.org; Tue, 11 Mar 2014 14:30:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNRRd-0005CG-4e for qemu-devel@nongnu.org; Tue, 11 Mar 2014 14:30:34 -0400 Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:55512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNRRc-0005By-UX for qemu-devel@nongnu.org; Tue, 11 Mar 2014 14:30:29 -0400 Received: by mail-ee0-f45.google.com with SMTP id d17so3845955eek.18 for ; Tue, 11 Mar 2014 11:30:28 -0700 (PDT) Date: Tue, 11 Mar 2014 19:30:24 +0100 From: Stefan Hajnoczi Message-ID: <20140311183024.GC17693@stefanha-thinkpad.redhat.com> References: <1393498122-11222-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1393498122-11222-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 0/2] dataplane: add query-iothreads QMP command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , "Shergill, Gurinder" , qemu-devel@nongnu.org, Luiz Capitulino , Paolo Bonzini , "Vinod, Chegu" On Thu, Feb 27, 2014 at 11:48:40AM +0100, Stefan Hajnoczi wrote: > v3: > * Loop until predicate is true to handle pthread_cond spurious wakeups [eblake] > * Fix additional instances of "thread_id" [eblake] > > v2: > * Use "thread-id" instead of "thread_id" in QAPI [eblake] > * Avoid mutex unlock/destroy race between threads [pbonzini] > > This series applies on top of "[PATCH v4 0/6] dataplane: switch to N:M > devices-per-thread model". > > The new "query-iothreads" command allows QMP clients to fetch the thread IDs > for dataplane threads. This will allow libvirt and friends to bind dataplane > threads. > > The approach is similar to "query-cpus" which is also used for vcpu thread > binding (among other things). > > Stefan Hajnoczi (2): > iothread: stash thread ID away > qmp: add query-iothreads command > > iothread.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > qapi-schema.json | 29 ++++++++++++++++++++++++++++ > qmp-commands.hx | 39 +++++++++++++++++++++++++++++++++++++ > 3 files changed, 126 insertions(+) Applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan