From: "Jan Beulich" Subject: Re: [V0 PATCH 4/6] AMD-PVH: Do not get/set vlapic TPR Date: Fri, 22 Aug 2014 10:52:39 +0100 Message-ID: <53F72F07020000780002C9C9@mail.emea.novell.com> References: <1408153996-16425-1-git-send-email-mukesh.rathor@oracle.com> <1408153996-16425-5-git-send-email-mukesh.rathor@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XKlWT-00075g-Sa for xen-devel@lists.xenproject.org; Fri, 22 Aug 2014 09:52:41 +0000 In-Reply-To: <1408153996-16425-5-git-send-email-mukesh.rathor@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: Mukesh Rathor Cc: xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, keir@xen.org, Aravind.Gopalakrishnan@amd.com, suravee.suthikulpanit@amd.com List-Id: xen-devel@lists.xenproject.org >>> On 16.08.14 at 03:53, wrote: > --- a/xen/arch/x86/hvm/svm/svm.c > +++ b/xen/arch/x86/hvm/svm/svm.c > @@ -1052,7 +1052,7 @@ static void noreturn svm_do_resume(struct vcpu *v) > hvm_asid_flush_vcpu(v); > } > > - if ( !vcpu_guestmode ) > + if ( !vcpu_guestmode && vcpu_vlapic(v)->regs ) I may have said this in reply to another of your patches already, but in the case I don't recall correctly: Please make this !is_pvh_vcpu() or introduce a proper is_...() accessor so whoever is going to do the future conversion to a more fine grained model will have a way to actually spot these. Jan