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

Christoph Hellwig
2008-03-20T17:53:57Z

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?