From: "Jan Beulich" Subject: Re: [PATCH 1/2] VMX: also use proper instruction mnemonic for VMREAD Date: Wed, 18 Sep 2013 13:52:36 +0100 Message-ID: <5239BE3402000078000F4586@nat28.tlf.novell.com> References: <523701D802000078000F394E@nat28.tlf.novell.com> <5237024902000078000F3962@nat28.tlf.novell.com> <5237353F02000078000F3B46@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VMHFJ-0003Id-Qi for xen-devel@lists.xenproject.org; Wed, 18 Sep 2013 12:52:41 +0000 In-Reply-To: <5237353F02000078000F3B46@nat28.tlf.novell.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: Jun Nakajima Cc: xen-devel , Eddie Dong List-Id: xen-devel@lists.xenproject.org >>> On 16.09.13 at 16:43, "Jan Beulich" wrote: >>>> 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). Is there anything else with this answered? If not, mind giving your ack? Jan