Received: by 10.192.165.148 with SMTP id m20csp623058imm; Fri, 4 May 2018 03:46:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZozEDkh6wNLS7rL1zrrxogiyyvQH9p1bkwWZL7CHJM33oQwF2jH1wbRFI0Zy5o4yO3xBCwL X-Received: by 2002:a63:4245:: with SMTP id p66-v6mr22371637pga.345.1525430807207; Fri, 04 May 2018 03:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525430807; cv=none; d=google.com; s=arc-20160816; b=Ep7KJbersFtnHRQr2556QQccVA0LOlx/vGpm+jcIDkE6FcY6S4+Dq0Fl6cs3OrzMNW V5yZP5xgVcjlljirtV1qg2m1iOy0S4t/rMaJg5mEdvWi/CzEmEu3hGm2zCMRcqNoITQQ rKql8AF6kyAWzu1U2UXeYkwbVkQw9J/diMPz0vtKCBijHYpCJFACWZ8ALPwdP+z1InXH 0cvAFgZeqhQZG5B/xkM0HwCpOfQKOQ4GXUpV/j2l1oaBcFNJgV/QarnjoYxn7rBHAkGs pOkn5pcJ85L/dn9gAmoEPuNMshMipa5tosRSnjEY7OTysUybZ+WIRgyMrSEjKXSTHVGA aSBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=qKO+GmzYd4fVcCdMF0wasXJG6k7FYcgxYOQ75gp9pSI=; b=uW+U7E7dl5QZF2mH09lxmYfDmCM6OKCZYlGMJ+ajLoOqeFDzX+UXrUSsarlsU+4dMj KC532T/zvDx6BV4AfQTAvFuMLhhu2EnQgyi10iD0xKH6FmL189r8lU/sBUw2vNyFewH6 d06Pl2cuOVrCpG3c3uZhVhgJfUFSpeyHRbgUvXJsd7K1JF/R/5nwJD0VW9amp6MofNRJ f1YW/EVBo50JL3NznKhgBG1w+NaS/bixAw9blA/l5Mo8cRqNNAGQ0fGXuePS/OdliQTA T1wmLbq3q/IEoH6wnQnZG+4VhLf4+EYAUTnVq/+fZmVycOK8GjGKRB7j1iqJsADw5bjY iYPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Qnv4GjUg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25-v6si8823051pgu.486.2018.05.04.03.46.33; Fri, 04 May 2018 03:46:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Qnv4GjUg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbeEDKp4 (ORCPT + 99 others); Fri, 4 May 2018 06:45:56 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54718 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbeEDKpy (ORCPT ); Fri, 4 May 2018 06:45:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qKO+GmzYd4fVcCdMF0wasXJG6k7FYcgxYOQ75gp9pSI=; b=Qnv4GjUg0MnW7yw9BNDYQkFvK ozbxA45bEilW84AF0ExZdYiNO5OH8n25QR625fAZ+hc0UtJeztGZeTxdm6IjI1EjcrgelKufOJQmH dLAaeiIRqAlePUTEqyFvrlzWn/JpYGZOecrXWLvngZInKQHZRPtuXCK/pzCkkgGtdaPIGlIoHfRSo Bv+D6fXC2Zapf8X8DB2qsVUQKC41kV67PlSWaImoEgAXswn5AJMLukrCaCYFso63PGrbF2bwR9/Cf slHkxUPb68N4fvUdCAAH/kG4iXZKmutW40Qa2xNuvjvhmAcYZixLVIVVLNh+WwYDcU6swzqmGR6dG ANT2zINhg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEYDe-00086T-IH; Fri, 04 May 2018 10:45:42 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 48EFC2029FA13; Fri, 4 May 2018 12:45:39 +0200 (CEST) Date: Fri, 4 May 2018 12:45:39 +0200 From: Peter Zijlstra To: Alexander Shishkin Cc: Paolo Bonzini , Luwei Kang , kvm@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, rkrcmar@redhat.com, linux-kernel@vger.kernel.org, joro@8bytes.org, chao.p.peng@linux.intel.com Subject: Re: [PATCH v7 06/13] KVM: x86: Add Intel Processor Trace virtualization mode Message-ID: <20180504104539.GM12217@hirez.programming.kicks-ass.net> References: <1525349323-9938-1-git-send-email-luwei.kang@intel.com> <1525349323-9938-7-git-send-email-luwei.kang@intel.com> <20180503113223.x2ykby6wglppgdwf@um.fi.intel.com> <47494e95-edcb-e8b5-0a32-004e9470dbdf@redhat.com> <20180503120215.dev7ti43zk7yoovn@um.fi.intel.com> <221c297b-1270-371b-70a3-4cff4bed7a7e@redhat.com> <20180503124847.tcrizs2sxy3j6mu2@um.fi.intel.com> <26505f7a-9e6b-efb9-e5f9-8aae3756be49@redhat.com> <20180503133823.tqbraql3b7ltuo6a@um.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503133823.tqbraql3b7ltuo6a@um.fi.intel.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 04:38:23PM +0300, Alexander Shishkin wrote: > On Thu, May 03, 2018 at 02:50:12PM +0200, Paolo Bonzini wrote: > > And you still need the module parameter to decide > > whether the host is _allowed_ to cause incomplete traces in the guest. > > Or rather a parameter to decide who wins in case both host and guest want > to trace the guest. That's arguably better than having different versions of > PT in the guest depending on a module parameter setting. Yes, that sounds like a much better approach.