From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdbAI-0005Wf-2Z for qemu-devel@nongnu.org; Tue, 05 Nov 2013 02:35:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdbA9-0002Mm-C5 for qemu-devel@nongnu.org; Tue, 05 Nov 2013 02:35:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdbA9-0002MH-4H for qemu-devel@nongnu.org; Tue, 05 Nov 2013 02:34:57 -0500 Date: Tue, 5 Nov 2013 09:34:53 +0200 From: Gleb Natapov Message-ID: <20131105073453.GH7513@redhat.com> References: <1382021272-6059-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382021272-6059-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH uq/master] KVM: x86: fix typo in KVM_GET_XCRS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On Thu, Oct 17, 2013 at 04:47:52PM +0200, Paolo Bonzini wrote: > Only the first item of the array was ever looked at. No > practical effect, but still worth fixing. > > Signed-off-by: Paolo Bonzini Applied, thanks. > --- > target-i386/kvm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/target-i386/kvm.c b/target-i386/kvm.c > index 749aa09..27071e3 100644 > --- a/target-i386/kvm.c > +++ b/target-i386/kvm.c > @@ -1314,8 +1314,8 @@ static int kvm_get_xcrs(X86CPU *cpu) > > for (i = 0; i < xcrs.nr_xcrs; i++) { > /* Only support xcr0 now */ > - if (xcrs.xcrs[0].xcr == 0) { > - env->xcr0 = xcrs.xcrs[0].value; > + if (xcrs.xcrs[i].xcr == 0) { > + env->xcr0 = xcrs.xcrs[i].value; > break; > } > } > -- > 1.8.3.1 -- Gleb.