From: "Jan Beulich" Subject: Re: [PATCH 1/2] VMX: also use proper instruction mnemonic for VMREAD Date: Mon, 16 Sep 2013 15:43:43 +0100 Message-ID: <5237353F02000078000F3B46@nat28.tlf.novell.com> References: <523701D802000078000F394E@nat28.tlf.novell.com> <5237024902000078000F3962@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VLa1l-0004W8-MK for xen-devel@lists.xenproject.org; Mon, 16 Sep 2013 14:43:49 +0000 In-Reply-To: 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: Jun Nakajima Cc: xen-devel , Eddie Dong List-Id: xen-devel@lists.xenproject.org >>> On 16.09.13 at 16:38, "Nakajima, Jun" wrote: >> @@ -667,74 +669,78 @@ static void vmx_ctxt_switch_to(struct vc >> void vmx_get_segment_register(struct vcpu *v, enum x86_segment seg, >> struct segment_register *reg) >> { >> - uint32_t attr = 0; >> + unsigned long attr = 0, sel = 0, limit; > > This is a minor thing, but why do you initialize 'attr' and 'sel', but > not 'limit'? Because limit gets initialized in all the case statements, but attr and sel don't (for the GDTR and IDTR cases). Jan