From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932345Ab2IJUTi (ORCPT ); Mon, 10 Sep 2012 16:19:38 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60935 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932180Ab2IJUTf convert rfc822-to-8bit (ORCPT ); Mon, 10 Sep 2012 16:19:35 -0400 Message-ID: <1347308360.2124.59.camel@twins> Subject: Re: [RFC][PATCH] Improving directed yield scalability for PLE handler From: Peter Zijlstra To: habanero@linux.vnet.ibm.com Cc: Srikar Dronamraju , Raghavendra K T , Avi Kivity , Marcelo Tosatti , Ingo Molnar , Rik van Riel , KVM , chegu vinod , LKML , X86 , Gleb Natapov , Srivatsa Vaddagiri Date: Mon, 10 Sep 2012 22:19:20 +0200 In-Reply-To: <1347307972.7332.78.camel@oc2024037011.ibm.com> References: <20120718133717.5321.71347.sendpatchset@codeblue.in.ibm.com> <500D2162.8010209@redhat.com> <1347023509.10325.53.camel@oc6622382223.ibm.com> <504A37B0.7020605@linux.vnet.ibm.com> <1347046931.7332.51.camel@oc2024037011.ibm.com> <20120908084345.GU30238@linux.vnet.ibm.com> <1347283005.10325.55.camel@oc6622382223.ibm.com> <1347293035.2124.22.camel@twins> <20120910165653.GA28033@linux.vnet.ibm.com> <1347297124.2124.42.camel@twins> <1347307972.7332.78.camel@oc2024037011.ibm.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-09-10 at 15:12 -0500, Andrew Theurer wrote: > + /* > + * if the target task is not running, then only yield if the > + * current task is in guest mode > + */ > + if (!(p_rq->curr->flags & PF_VCPU)) > + goto out_irq; This would make yield_to() only ever work on KVM, not that I mind this too much, its a horrid thing and making it less useful for (ab)use is a good thing, still this probably wants mention somewhere :-)