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

Heiko Carstens
2008-03-21T14:06:03Z

On Fri, Mar 21, 2008 at 12:12:04PM +0100, Carsten Otte wrote:
> MAILER-DAEMON@linux.ibm.com wrote:
>> Since when do we have symbolic names for the bits?
>> It was always on my todo list to do a cleanup and replace the numbers
>> we use everywhere with names. Especially since we have clashes from time
>> to time... but that didn't hurt enough yet, obviously.
>> But now that you volunteered to take care of this... :)
> Right. We only have defines for (machine_flags & bit). Looks to me like
> the bits really should have a name on them. I've created a patch that
> does this, but I want to talk it over with Martin before sending that one
> out.

Just introduce something like MACHINE_FLAG_KVM. The rest can be converted
later. Unless you're bored and feel like fiddling around with assembly code :)