Subject: Re: Xen, static global variables and libkvm
To: None <>
From: Joerg Sonnenberger <>
List: tech-kern
Date: 10/14/2005 11:03:01
On Thu, Oct 13, 2005 at 05:34:17PM +0200, Manuel Bouyer wrote:
> What shall we do about this ?
> a) say that Xen's elf loader is wrong and try to fix it
> b) change
>   static struct mif6 mif6table[MAXMIFS];
>   to
>   struct mif6 mif6table[MAXMIFS];
>   and other static variables used by KVM grovelers

I vote for:
  c) export this interface via a sysctl and remove the need for kvm.

(b) is the short term fix / hack, (a) is just wrong. To give an example,
the in-kernel ELF loader DragonFly current has doesn't correctly handle
local symbols, which works most of the time. It has the nasty
side-effect that ACPI worked *only* as module, since ld couldn't find
some symbols. Don't make this mistake :-)