Re: [RFC] KVM Source layout Proposal to accommodate new CPU architecture

Rusty Russell
2007-10-02T04:11:19Z

On Tue, 2007-10-02 at 01:19 +0000, Hollis Blanchard wrote:
> On Sun, 30 Sep 2007 15:56:16 +0200, Avi Kivity wrote:
> >
> > Eventually I'd like to see the code in arch/*/kvm. That's probably not
> > easily doable right now because modules cannot span directories, but
> > once that's solved, we'll do that as this is most consistent with the
> > rest of the kernel.
>
> What is the "spanning directories" issue? Can't I build
> arch/powerpc/kvm/kvm-powerpc.ko and drivers/kvm/kvm.ko and let modprobe
> sort out the dependency?

Sure, but it creates a silly module.

I think guest code belongs in arch/*/kvm/, but host code can be done as
subdirs under drivers/kvm/.

Cheers,
Rusty.