From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH 1/2] xenoprof: fix up ability to disable it Date: Mon, 8 Feb 2016 11:24:02 -0500 Message-ID: <56B8C122.1060207@oracle.com> References: <1454947487-8588-1-git-send-email-cardoe@cardoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1454947487-8588-1-git-send-email-cardoe@cardoe.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Doug Goldstein , xen-devel@lists.xen.org Cc: Kevin Tian , Keir Fraser , Jan Beulich , Jun Nakajima , Andrew Cooper , Aravind Gopalakrishnan , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org On 02/08/2016 11:04 AM, Doug Goldstein wrote: > Allow Xenoprof to be fully disabled when toggling the option off. > > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > CC: Boris Ostrovsky > CC: Suravee Suthikulpanit > CC: Aravind Gopalakrishnan > CC: Jun Nakajima > CC: Kevin Tian > Signed-off-by: Doug Goldstein > @@ -2666,10 +2669,11 @@ static int vmx_msr_write_intercept(unsigned int msr, uint64_t msr_content) > goto gp_fault; > break; > default: > - if ( passive_domain_do_wrmsr(msr, msr_content) ) > + if ( IS_ENABLED(CONFIG_XENOPROF) && > + passive_domain_do_wrmsr(msr, msr_content) ) > return X86EMUL_OKAY; > > - if ( wrmsr_viridian_regs(msr, msr_content) ) > + if ( wrmsr_viridian_regs(msr, msr_content) ) > break; Looks like a stray change. Other than that, Reviewed-by: Boris Ostrovsky While at it --- I think we should put VPMU code under CONFIG option too, especially given its support status. I can do that (unless Doug wants to). -boris