Re: [RFC/PATCH 14/15] guest: detect when running on kvm

Carsten Otte
2008-03-20T20:37:19Z

Christoph Hellwig wrote:
> On Thu, Mar 20, 2008 at 05:25:26PM +0100, Carsten Otte wrote:
>> @@ -143,6 +143,10 @@ static noinline __init void detect_machi
>> /* Running on a P/390 ? */
>> if (cpuinfo->cpu_id.machine == 0x7490)
>> machine_flags |= 4;
>> +
>> + /* Running under KVM ? */
>> + if (cpuinfo->cpu_id.version == 0xfe)
>> + machine_flags |= 64;
>
> Shouldn't these have symbolic names?
You mean symbolics for machine_flags? Or symbolics for cpu ids?