Jidong Xiao <jidong.x...@gmail.com> writes:
..
>>
> Hi, Bandan,
>
> Thanks for the advice. I think Paolo has incorporated this patch into
> his patch sets, and he sent the revised version in a separate email
> earlier today with the subject "[PULL 11/11] kvm: Fix eax for cpuid
> leaf 0x40000000".

Oops! Sorry, must have missed it. Thanks for the heads-up.

> -Jidong
>
>>> ---
>>> diff --git a/qemu-2.0.0/target-i386/kvm.c.orig 
>>> b/qemu-2.0.0/target-i386/kvm.c
>>> index 4389959..fe49a75 100644
>>> --- a/qemu-2.0.0/target-i386/kvm.c.orig
>>> +++ b/qemu-2.0.0/target-i386/kvm.c
>>> @@ -530,7 +530,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
>>>      memcpy(signature, "KVMKVMKVM\0\0\0", 12);
>>>      c = &cpuid_data.entries[cpuid_i++];
>>>      c->function = KVM_CPUID_SIGNATURE | kvm_base;
>>> -    c->eax = 0;
>>> +   c->eax = KVM_CPUID_FEATURES | kvm_base;
>>
>> Looks like this is not four spaces
>>
>>>      c->ebx = signature[0];
>>>      c->ecx = signature[1];
>>>      c->edx = signature[2];

Reply via email to