Received: by 10.192.165.148 with SMTP id m20csp565089imm; Fri, 4 May 2018 15:18:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoyVY9jdJBDCHTvOBFi3jfExokq7MraMRXT1rSy/duTprCMoAuUiNPwNB2s6ZXa4WX5TWwi X-Received: by 2002:a17:902:1a6:: with SMTP id b35-v6mr29363815plb.80.1525472284980; Fri, 04 May 2018 15:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525472284; cv=none; d=google.com; s=arc-20160816; b=SkIxd3UU/6Mt8zU2d7DpAiJ6uKHXm/qxpgo0u5pgn0E/my+GnQVBLUUAbYhu6PeLvO ZHcF0wa9zRnaDDfk/7v8HqJsTH76KA0NpHX0Gt68qz+gmvZuhxU92pEuXThTW0RUSBNO 60kfIsMcMg8RAB8my2/7rBUROtTkf3UMk7FvPC+tpbsNZ0TZfIs/IKrewTmcFsuNv7y3 /snN619EN9DLsnNLEecSixV9HwohduGmvIy1ZZ64u6B8faHqYouOW1cw8reDk+1IuNs6 D/PD+NwxVjnPzrzBj16R+n/HOJs0YhDIKN/BVsq9XmMl+tttyV24LHzcjA5lzbBHnnqG cQsA== 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=OQL7xTpsvAqYTG3icmbhCgieWz8fVbRPPgUbEIOrUBA=; b=FU1DddUad26N1rbi6fsitTz5bmlDbAckYOEiQ7lHgedfq9AtDW1Xgs0BqbrwfsqMoe TPb4Lskx0C+HCW6YdDyAebMnkt+ScTrZ4N6wzra93E3jCTWzK2le6oTz/rvzI6F3NFRY nTjpTad5xSxgHbpmdWYddnjML8eUtuDN9KJppqcbKudTCU+H8qM0AM0v4N4GqJzUEMXa YPh4ASbYwL2pcdELmyg4Qtk6osLLpLP9xyFKA3wTy3pzfFQxiOKn5No/l3oqkv3hK7Kp 72M6fdCvjbOVGqA7dwBr9rx9Ws1aC3xnmh1NU4ke/juzJpSeZoGRRtTBby+a4vCJwI6u IFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=d+x3XChJ; 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 74-v6si3656334pga.50.2018.05.04.15.17.51; Fri, 04 May 2018 15:18:04 -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=bombadil.20170209 header.b=d+x3XChJ; 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 S1751887AbeEDWQL (ORCPT + 99 others); Fri, 4 May 2018 18:16:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46670 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751733AbeEDWQJ (ORCPT ); Fri, 4 May 2018 18:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=OQL7xTpsvAqYTG3icmbhCgieWz8fVbRPPgUbEIOrUBA=; b=d+x3XChJacvwT9Qb6+rhZj7/Z x7agvCNax60VcVe5uZOh2E54k8iam56jzc/dK+6YOIRnQZHfg2nk45Q6XLMw9Jz3ZztVoxSN3lAj7 aUHCmvqU3ANjU3QSDKwA3tLz+5B7UmSxczHF1hU4w8ei1egVvm2PPzHwzyeNJO87/qZ3AJfK4FjlK qzrvyxt/HX02Kw31mpT41TkTXfVoG2HVVIdaT1jU4isvoObb4j8mL0FHWi11G2jP9iagpRsFBilsh VEa2k4obmIta322GP8rs46CtgAomiqrlnAfuyz2gdUrEDp7aI1VTWqQ9iaHET4k+tGttWRR4kbNrr 92dFbSEEQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEizf-0003yy-2Z; Fri, 04 May 2018 22:15:59 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 90E142029FA13; Sat, 5 May 2018 00:15:56 +0200 (CEST) Date: Sat, 5 May 2018 00:15:56 +0200 From: Peter Zijlstra To: Paolo Bonzini Cc: Alexander Shishkin , 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: <20180504221556.GX12217@hirez.programming.kicks-ass.net> References: <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> <20180504104539.GM12217@hirez.programming.kicks-ass.net> <10307518-a095-1a9d-d488-58db88fe16bd@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10307518-a095-1a9d-d488-58db88fe16bd@redhat.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 Fri, May 04, 2018 at 11:44:09PM +0200, Paolo Bonzini wrote: > On 04/05/2018 12:45, Peter Zijlstra wrote: > > 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. > > I don't think so. The possibility that the host would lose tracing data > just because the guest starts using PT seems hideous to me... Well, either way around is a fairly crap situation, the modparam at least lets the admin pick which it goes. But if you want to always let the host win, that's fine with me too, less knobs is better.