From: "Jan Beulich" Subject: Re: [PATCH v10 18/20] x86/VPMU: Save VPMU state for PV guests during context switch Date: Wed, 10 Sep 2014 16:44:15 +0100 Message-ID: <54108DEF02000078000336E1@mail.emea.novell.com> References: <1409802080-6160-1-git-send-email-boris.ostrovsky@oracle.com> <1409802080-6160-19-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: <1409802080-6160-19-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: tim@xen.org, kevin.tian@intel.com, keir@xen.org, suravee.suthikulpanit@amd.com, andrew.cooper3@citrix.com, eddie.dong@intel.com, xen-devel@lists.xen.org, Aravind.Gopalakrishnan@amd.com, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 04.09.14 at 05:41, wrote: > Save VPMU state during context switch for both HVM and PV(H) guests. > > Since it is now possible for vpmu_switch_to() to call > vmx_vmcs_try_enter()->vcpu_pause() > which needs is_running to be correctly set/cleared we call context_saved() > before > vpmu_switch_to() is executed. This description matches nothing in the patch. If "Since it is now possible..." refers to behavior changed in an earlier patch, why is it correct to adjust for it only here? Jan