From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIyWL-0007OF-8S for qemu-devel@nongnu.org; Thu, 27 Feb 2014 05:48:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIyWF-00077w-93 for qemu-devel@nongnu.org; Thu, 27 Feb 2014 05:48:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIyWF-00077p-0x for qemu-devel@nongnu.org; Thu, 27 Feb 2014 05:48:47 -0500 From: Stefan Hajnoczi Date: Thu, 27 Feb 2014 11:48:40 +0100 Message-Id: <1393498122-11222-1-git-send-email-stefanha@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: Kevin Wolf , "Shergill, Gurinder" , Luiz Capitulino , Paolo Bonzini , "Vinod, Chegu" 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(+) -- 1.8.5.3