From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH v3 6/6] xen/PMU: PMU emulation code Date: Fri, 4 Jul 2014 15:05:22 +0100 Message-ID: <53B6B4A2.5010305@citrix.com> References: <1404414899-1773-1-git-send-email-boris.ostrovsky@oracle.com> <1404414899-1773-7-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1404414899-1773-7-git-send-email-boris.ostrovsky@oracle.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: Boris Ostrovsky , konrad.wilk@oracle.com Cc: andrew.cooper3@citrix.com, kevin.tian@intel.com, dietmar.hahn@ts.fujitsu.com, jbeulich@suse.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 03/07/14 20:14, Boris Ostrovsky wrote: > Add PMU emulation code that runs when we are processing a PMU interrupt. This code > will allow us not to trap to hypervisor on each MSR/LVTPC access (of which there > may be quite a few in the handler). Reviewed-by: David Vrabel > + per_cpu(xenpmu_shared, smp_processor_id()).flags = > + xenpmu_flags | XENPMU_IRQ_PROCESSING; I think you want this_cpu_ptr(xen_pmu_shared)->... here. David