Skip to contentSkip to conversation

KVM: cpuid function 2: store all values

PATCH Applied Amit Shah 2 participants 2 messages Feb 11, 2009

lore
Share & tools
lore

Amit Shah

author
#0 lore raw

PATCH 1/1 KVM: cpuid function 2: store all values

Incrementing the array index was missed in the previous series which causes us to not store all the values.

---
 qemu/target-i386/kvm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu/target-i386/kvm.c +1 -0
index 19b08d8..86745b1 100644
@@ -74,6 +74,7 @@ int kvm_arch_init_vcpu(CPUState *env)
                 c->ebx = ebx;
                 c->ecx = ecx;
                 c->edx = edx;
+                c = &cpuid_data.entries[++cpuid_i];
             }
             break;
         }
Signature · 1 line
1.6.0.6
#1 lore raw

qemu/target-i386/kvm.c

Quoted 10 lines · Amit Shah

Incrementing the array index was missed in the previous series which causes us to not store all the values.

---
 qemu/target-i386/kvm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu/target-i386/kvm.c +0 -0

Applied. Thanks.

I had to manually fix up the patch to apply with -p1. Please resubmit your other one against SVN though.

Regards,

Anthony Liguori

Quoted 12 lines

index 19b08d8..86745b1 100644

qemu/target-i386/kvm.c +1 -0
@@ -74,6 +74,7 @@ int kvm_arch_init_vcpu(CPUState *env)
                 c->ebx = ebx;
                 c->ecx = ecx;
                 c->edx = edx;
+                c = &cpuid_data.entries[++cpuid_i];
             }
             break;
         }