tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Path to kmods

On Wed, Nov 12, 2008 at 05:11:58PM +0100, Christoph Egger wrote:
> > I agree. Since we already mimic Solaris in other ways we may as well do
> > it here too.
> the directory structure should at least allow different kernel
> version/types.
> I sort of dual-boot NetBSD/amd64 and NetBSD/Xen (Dom0) with the same
> userland.

yes, this is common for Xen users

> Sometimes it happens, that the kernels have a different
> uname -r.

I'm not sure uname -r would be enough for this specific case. I'm not even
sure modules built for a native kernel will work with a Xen kernel. at the
very last this is true for i386 where we'll need different modules for
i386 and i386PAE. But I suspect things like device drivers can't be shared
because some includes part of the kernel ABI are different (in interrupt or
bus_space areas for example).

FWIW, linux has different module sets for native and Xen kernels,
and they use different uname -r. I wonder if we should also have different
uname -r for amd64/i386 and xen, or use something else (uname -m ?) for
it. But changing uname -p may break third-party software builds ...

Manuel Bouyer, LIP6, Universite Paris VI.  
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index