From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJSgB-0005Wo-CL for qemu-devel@nongnu.org; Fri, 28 Feb 2014 14:01:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJSg5-0005v2-Cv for qemu-devel@nongnu.org; Fri, 28 Feb 2014 14:01:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJSg5-0005ut-66 for qemu-devel@nongnu.org; Fri, 28 Feb 2014 14:00:57 -0500 Date: Fri, 28 Feb 2014 14:00:28 -0500 From: Luiz Capitulino Message-ID: <20140228140028.16093fee@redhat.com> In-Reply-To: <1393498122-11222-1-git-send-email-stefanha@redhat.com> References: <1393498122-11222-1-git-send-email-stefanha@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, Paolo Bonzini , "Vinod, Chegu" On Thu, 27 Feb 2014 11:48:40 +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". What's the merge plan for both series? IMO, they should go in through the block layer tree. As far as the QMP interface is concerned, Eric's review is all you need. > > 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(+) >