From: "Jan Beulich" Subject: Re: [PATCH] x86/pvh: disable posted interrupts Date: Thu, 21 May 2015 17:11:11 +0100 Message-ID: <555E1FBF020000780007CE01@mail.emea.novell.com> References: <1432210495-52104-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YvT3x-0006Kc-Lp for xen-devel@lists.xenproject.org; Thu, 21 May 2015 16:11:13 +0000 In-Reply-To: <1432210495-52104-1-git-send-email-roger.pau@citrix.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: Roger Pau Monne Cc: Andrew Cooper , Kevin Tian , Eddie Dong , Jun Nakajima , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 21.05.15 at 14:14, wrote: > --- a/xen/arch/x86/hvm/vmx/vmcs.c > +++ b/xen/arch/x86/hvm/vmx/vmcs.c > @@ -980,6 +980,10 @@ static int construct_vmcs(struct vcpu *v) > v->arch.hvm_vmx.secondary_exec_control &= > ~SECONDARY_EXEC_UNRESTRICTED_GUEST; > > + /* Disable posted interrupts */ > + __vmwrite(PIN_BASED_VM_EXEC_CONTROL, > + vmx_pin_based_exec_control & ~PIN_BASED_POSTED_INTERRUPT); To be understandable in a few months/years, this should be moved up a few lines, and the comment should be something like "In turn, disable posted interrupts." (Please also note the stop at its end.) Jan