Received: from eggs.gnu.org ([2001:4830:134:3::10]:40215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpVfd-00021T-SW for qemu-devel@nongnu.org; Thu, 29 Sep 2016 03:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpVfZ-0002dX-C2 for qemu-devel@nongnu.org; Thu, 29 Sep 2016 03:22:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpVfZ-0002c1-5U for qemu-devel@nongnu.org; Thu, 29 Sep 2016 03:22:13 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C634A76A10 for ; Thu, 29 Sep 2016 07:22:11 +0000 (UTC) Date: Thu, 29 Sep 2016 15:22:08 +0800 From: Peter Xu Message-ID: <20160929072208.GK11134@pxdev.xzpeter.org> References: <1474355096-28059-1-git-send-email-maxime.coquelin@redhat.com> <20160929024037.GJ11134@pxdev.xzpeter.org> <3f82ea23-4ee6-2f34-3b7a-43822b1625b9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3f82ea23-4ee6-2f34-3b7a-43822b1625b9@redhat.com> Subject: Re: [Qemu-devel] [RFC] scripts: qmp: Introduce vcpu pinning helper script List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Maxime Coquelin Cc: armbru@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com On Thu, Sep 29, 2016 at 08:50:51AM +0200, Maxime Coquelin wrote: [...] > >Nit: for TCG, looks like we are using a single thread for all vCPUs. > >In that case, I'd suggest we make sure KVM is enabled before running > >this script, otherwise raise error (It won't make sense we pin the > >same TID for lots of times). I believe that's a prerequisite for this > >one. > > In the script, we could check that vCPUs TIDs are different. > Checking for TCG or KVM is not a good solution, as IIUC, multi-threaded > TCG support is in the pipe? Sounds good. :) -- peterx