Re: [RFC PATCH 1/3] Replace paravirt_probe with "platform type" boot header field

From: Eric W. Biederman
Date: Fri May 04 2007 - 10:03:31 EST


Rusty Russell <rusty@xxxxxxxxxxxxxxx> writes:

> [ This patch won't apply, even to -mm: it comes after the documentation
> patch. But it's hopefully readable ]
>
> 1) This code assumes that 0x23C is going to be the "platform type"
> field of the next version of the Linux boot header format.
>
> 2) This doesn't actually assume that P=V, but unlike the paravirt
> probe code doesn't assume that V=P+PAGE_OFFSET either.
>
> The following patch actually fixes up lguest to boot with P=V.

We should place that initial branch right after startup_32,
we don't need the startup_paravirt at all now.

ENTRY(startup_32)
#ifdef CONFIG_LGUEST_GUEST
cmpl $1, 0x23c(%esi)
je lguest_init
#endif

...

Although it might make sense to do:
ENTRY(startup_32)
cmpl $0, 0x23c(%esi)
jnz startup_subarch

To get the branches out of the main flow of execution but
that is minor. This isn't a performance critical path.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/