From: "Jan Beulich" Subject: Re: [PATCH v6 02/19] VPMU: Mark context LOADED before registers are loaded Date: Mon, 19 May 2014 15:18:29 +0100 Message-ID: <537A2ED50200007800013B68@mail.emea.novell.com> References: <1399996413-1998-1-git-send-email-boris.ostrovsky@oracle.com> <1399996413-1998-3-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: <1399996413-1998-3-git-send-email-boris.ostrovsky@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: Boris Ostrovsky Cc: kevin.tian@intel.com, keir@xen.org, suravee.suthikulpanit@amd.com, andrew.cooper3@citrix.com, donald.d.dugger@intel.com, xen-devel@lists.xen.org, dietmar.hahn@ts.fujitsu.com, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 13.05.14 at 17:53, wrote: > Because a PMU interrupt may be generated as soon as PMU registers are loaded > (or, > more precisely, as soon as HW PMU is "armed") we don't want to delay marking > context as LOADED until after registers are loaded. Otherwise during > interrupt > handling VPMU_CONTEXT_LOADED may not be set and this could be confusing. > > (Technically, only SVM needs this change right now since VMX will "arm" PMU > later, > during VMRUN when global control register is loaded from VMCS. However, both > AMD and Intel code will require this patch when we introduce PV VPMU). > > Signed-off-by: Boris Ostrovsky > Acked-by: Kevin Tian > Reviewed-by: Dietmar Hahn > Tested-by: Dietmar Hahn With patch 1 needing further work, but this patch (for example) being ready to go in, could you please indicate up to which point the series, leaving out patch 1, could be applied if no other comments arise? Thanks, Jan