qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Use kvm32/kvm64 as default CPUs when running un


From: Jes Sorensen
Subject: Re: [Qemu-devel] [PATCH] Use kvm32/kvm64 as default CPUs when running under KVM.
Date: Wed, 28 Jul 2010 12:57:12 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5

On 07/28/10 12:51, Avi Kivity wrote:
>  On 07/28/2010 01:05 PM, address@hidden wrote:
>> From: Jes Sorensen<address@hidden>
>>
>> KVM has a minimum CPU requirement in order to run, so there is no
>> reason to default to the very basic family 6, model 2 (or model 3 for
>> qemu32) CPU since the additional features are going to be available on
>> the host CPU.
>>
>>
>> @@ -866,11 +867,19 @@ void pc_cpus_init(const char *cpu_model)
>>
>>       /* init CPUs */
>>       if (cpu_model == NULL) {
>> +        if (kvm_enabled()) {
>>   #ifdef TARGET_X86_64
>> -        cpu_model = "qemu64";
>> +            cpu_model = "kvm64";
>>   #else
>> -        cpu_model = "qemu32";
>> +            cpu_model = "kvm32";
>>   #endif
>> +        } else {
>> +#ifdef TARGET_X86_64
>> +            cpu_model = "qemu64";
>> +#else
>> +            cpu_model = "qemu32";
>> +#endif
>> +        }
>>       }
> 
> What about -M 0.12?  It needs to retain the old values.
> 

Urgh, good point. I'll come up with a fix for that. So much for a simple
patch :)

Jes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]