From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWos1-000358-K3 for qemu-devel@nongnu.org; Thu, 17 Oct 2013 10:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWort-0001zu-7I for qemu-devel@nongnu.org; Thu, 17 Oct 2013 10:48:13 -0400 Received: from mail-qe0-x22f.google.com ([2607:f8b0:400d:c02::22f]:49828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWort-0001zq-2Q for qemu-devel@nongnu.org; Thu, 17 Oct 2013 10:48:05 -0400 Received: by mail-qe0-f47.google.com with SMTP id b4so655804qen.6 for ; Thu, 17 Oct 2013 07:48:04 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 17 Oct 2013 16:47:52 +0200 Message-Id: <1382021272-6059-1-git-send-email-pbonzini@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, gleb@redhat.com Only the first item of the array was ever looked at. No practical effect, but still worth fixing. Signed-off-by: Paolo Bonzini --- 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