From: "Jan Beulich" Subject: Re: LVTPC masking in Intel VPMU code Date: Thu, 28 Mar 2013 11:26:19 +0000 Message-ID: <515436EB02000078000C935D@nat28.tlf.novell.com> References: <515365DF.7000600@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <515365DF.7000600@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Haitao Shan Cc: Boris Ostrovsky , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 27.03.13 at 22:34, Boris Ostrovsky wrote: > Can someone explain why we have these lines in > vpmu_core2.c:core2_vpmu_do_interrupt(): > apic_write_around(APIC_LVTPC, apic_read(APIC_LVTPC) & > ~APIC_LVT_MASKED); > ... > vlapic_set_reg(vlapic, APIC_LVTPC, vlapic_lvtpc | APIC_LVT_MASKED); > > There is similar code in Linux oprofile with a comment that this is done > due to some sort of > a quirk on P4 and PentiumM. Is this why it's in > core2_vpmu_do_interrupt() as well? > > I don't see a quirk like this in Linux perf code. Haitao, you contributed that code a long while back. Any comment? Jan