Re: [PATCH] KVM: Avoid using CONFIG_ in userspace visible headers

From: Sam Ravnborg
Date: Mon Jan 19 2009 - 11:28:22 EST


>
> btw., would be nice to somehow untangle consciously-exported interface
> definitions from kernel side bits, and standardize these
> feature/capability flags like __KVM_HAVE_IOAPIC, etc.
>
> Right now we have this body of 75,000 lines of code spread out in 600+
> header files that are so-called 'exported' to user-space, but 95% of that
> interface definition code is never being relied on by any user-space bit!
> They are exported due to cargo-cult mentality or due to dependencies.

With the exported headers we at least have a clear definition
what part of the headers are actually exported.
So what we have now is a much better base to cut off from.

And there is plenty of room for improvements but it requires
someone with understanding of the kernel side and the user side to do
this.

I for once find it hard to judge what is really used by user space and
not. Diving into glibc does not help as userspace is much more than
glibc although glibc is an important 'customer' here.

Sam
--
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/