[PATCH] detect Xen dom0 properly to avoid conflict with pv_on_hvm domU

Olaf Hering olaf at aepfle.de
Thu May 5 08:34:46 EDT 2011

On Thu, May 05, Simon Horman wrote:

> On Wed, May 04, 2011 at 06:32:32PM +0200, Olaf Hering wrote:

> > +static int is_dom0;
> I think you need to explicitly initialise is_dom0 to 0.

Globals are always initialized to zero, its a C language thing.

> Alternatively, is it really such a burden to call access()
> each time xen_present() is called?  (I'm ambivalent with regards to this).

Probably not, its called a dozen times in my testing.


More information about the kexec mailing list