From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH v7 02/19] VPMU: Mark context LOADED before registers are loaded Date: Tue, 10 Jun 2014 11:40:32 -0400 Message-ID: <539726F0.70705@oracle.com> References: <1402076415-26475-1-git-send-email-boris.ostrovsky@oracle.com> <1402076415-26475-3-git-send-email-boris.ostrovsky@oracle.com> <53920184.7090000@citrix.com> <539740760200007800019A07@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <539740760200007800019A07@mail.emea.novell.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: Jan Beulich Cc: kevin.tian@intel.com, keir@xen.org, suravee.suthikulpanit@amd.com, Andrew Cooper , tim@xen.org, dietmar.hahn@ts.fujitsu.com, xen-devel@lists.xen.org, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org On 06/10/2014 11:29 AM, Jan Beulich wrote: >>>> On 06.06.14 at 19:59, wrote: >> On 06/06/14 18:39, Boris Ostrovsky 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 >> Reviewed-by: Andrew Cooper > With this not having seen other comments, does it make sense to > apply this on its own, while you address comments you got on > subsequent patches? Yes, this can go in, especially given that it's the first patch affecting VPMU. Thanks. -boris