Received: by 10.192.165.148 with SMTP id m20csp1755570imm; Thu, 3 May 2018 05:03:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZro8abmX7o4qlKZjoLGd/MtNGzltppdnA+WFMerIPgWB+v0v7MXVuheUrMBtiX+ijacNVPV X-Received: by 2002:a63:730c:: with SMTP id o12-v6mr18943670pgc.1.1525348989728; Thu, 03 May 2018 05:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525348989; cv=none; d=google.com; s=arc-20160816; b=Zdo/qDXr6U5x3Jzc2KSZpshgJpxm2DlYcRaJ2cBfuzkOzyOi3MRlfiX4ZMov8UYSze XMkT2tCy0e6uNBzBIXC4fiE/YhyevXLJ7PmdujooJalgvq1lfNKQGhCnGJgfeWZX22V0 IAgfgxshzZTsM7G7kRqlU3yUqKbJ5++ds8/ML28OOHoTYUOYV526to/abvWZIIh8tmLn xw0OPXJH0+tXfHNc60btzf3N+9JNnKbDI3T09o1Qk/mbJ0FZrJ2bxDLc7aWHNhAQNSOR +qoctIIJaLdTe7VfcZBsIKulzR010BT6AB8APDDTA2lQVuD5UjP7YaqogJhUlWzF9hKf sl7A== 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:arc-authentication-results; bh=cdBoEj2dJJK1/sJil/a7UoEXzFcoHgBToxaULXP+mBc=; b=T65rWlhRseVHsPnKL6l2gA2zHkds8/1StCoMKG5oCLY2dB8Z6EPZ3ZQ8AsTcIM7MBN u/yMLK8hT6+oan71oGZE9XIWU/jjjTImK1H4gbBbcxuigDVBNeplGgDtygQygxVJk9hy g4RCIlPl8f/PPzKOM1CnAVLeOcIkPt45oOPwRexI0Ll3rptutbALErRXpkDfTI8QRVNV rbq8SD33nJfybnZUVzGcDIJ76WTAfboNJpbjARgWdq1EJp7sPim/dMglKJ31lCxlRyeS ffmqN0IqYLI98o0wKIdbNJ+ybbDaEaUOHhbQR60ZzBHmSwmO1HCL/4Lmk98pD2D6v/mq nTOw== ARC-Authentication-Results: i=1; mx.google.com; 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 x133si14060537pfd.124.2018.05.03.05.02.50; Thu, 03 May 2018 05:03:09 -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; 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 S1751713AbeECMCZ (ORCPT + 99 others); Thu, 3 May 2018 08:02:25 -0400 Received: from mga02.intel.com ([134.134.136.20]:41476 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930AbeECMCW (ORCPT ); Thu, 3 May 2018 08:02:22 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 05:02:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,358,1520924400"; d="scan'208";a="38966162" Received: from um.fi.intel.com (HELO um) ([10.237.72.212]) by orsmga006.jf.intel.com with ESMTP; 03 May 2018 05:02:18 -0700 Received: from ash by um with local (Exim 4.90_1) (envelope-from ) id 1fECwC-0007FA-2Y; Thu, 03 May 2018 15:02:16 +0300 Date: Thu, 3 May 2018 15:02:15 +0300 From: Alexander Shishkin 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, peterz@infradead.org, chao.p.peng@linux.intel.com Subject: Re: [PATCH v7 06/13] KVM: x86: Add Intel Processor Trace virtualization mode Message-ID: <20180503120215.dev7ti43zk7yoovn@um.fi.intel.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47494e95-edcb-e8b5-0a32-004e9470dbdf@redhat.com> User-Agent: NeoMutt/20171215 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 01:50:39PM +0200, Paolo Bonzini wrote: > On 03/05/2018 13:32, Alexander Shishkin wrote: > >> > >> +/* Default is SYSTEM mode. */ > >> +static int __read_mostly pt_mode = PT_MODE_SYSTEM; > >> +module_param(pt_mode, int, S_IRUGO); > > So, it's an explicit module parameter? One apparent problem with this > > is that one would need to reload kvm module(s) to be able to use PT, > > which is not ideal. > > If you want to do tracing system-wide, that by definition must disable > guest tracing, Sure. > so I think the module parameter is appropriate. I don't see why. System-wide tracing takes place while perf record is running. When it's done, it's done and we can un-disable the guest tracing, without requiring the user to kill all their VMs and reload modules. Regards, -- Alex