diff options
| author | Paolo Bonzini | 2013-10-17 16:47:52 +0200 |
|---|---|---|
| committer | Gleb Natapov | 2013-11-05 08:34:34 +0100 |
| commit | 0fd53fec92c5b636ef4774fe130f6029fde9fc3c (patch) | |
| tree | 4777952d5c73b9f555d4240ee5509c4d3da1ffe2 | |
| parent | Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (diff) | |
| download | qemu-0fd53fec92c5b636ef4774fe130f6029fde9fc3c.tar.gz qemu-0fd53fec92c5b636ef4774fe130f6029fde9fc3c.tar.xz qemu-0fd53fec92c5b636ef4774fe130f6029fde9fc3c.zip | |
KVM: x86: fix typo in KVM_GET_XCRS
Only the first item of the array was ever looked at. No
practical effect, but still worth fixing.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
| -rw-r--r-- | target-i386/kvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 749aa09a21..27071e3342 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; } } |
