Subject: Re: tweaking mpbios.c for Xen
To: None <,>
From: Manuel Bouyer <>
List: port-amd64
Date: 09/18/2006 20:22:51
On Sat, Sep 16, 2006 at 05:11:06PM +0200, Manuel Bouyer wrote:
> Hi,
> For Xen3/dom0 I need to be able to use the x86 MPBIOS code, but only for
> busses and ioapics. In Xen, CPUs and local apics are managed by the hypervisor
> and the dom0 doesn't know about them (domains sees virtual CPUs).
> The attached patch handle this:
> - don't access ioapic or lapic when not configured (it may also be usefull
>   to be able to configure MPBIOS without apics for debug purposes)
> - don't try to attach CPUs when _MPACPI_NO_CPU is defined.
>   xen/include/mpbiosvar.h defines this before including x86/mpbiosvar.h

Well, please forget the _MPACPI_NO_CPU part. I'll need to attach physical CPUs
this way anyway. I'd still like to get the ioapic/lapic parts commited,

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference