Re: Should Xen be a sub-arch or a build option?



On Monday 22 October 2007, Kip Macy wrote:
Let me say in advance that this is not an invitation to discuss the
technical merits of xen. This is purely a request to discuss how one
would structure the tree were one to import it into CVS.

Hypothetically speaking, if one were to import Xen support into CVS
what would be the best way to go about it?

There are a number of choices when doing it as a sub-arch:
- A separate directory for i386 and amd64
- sys/xen-i386
- sys/xen-amd64

This is certainly the most traditional way to do it. The fact that the
xen ports will share (a lot of) code with their respective parent doesn't
change that - pc98 is the precedent here. As it would also allow us to
treat xen as any other architecture without having to spread hacks all
over the build tools.

I'd like to see us moving towards a separate arch/ directory in the long
run, but that belongs - with the new VCS discussion - somewhere else.

There is also a question of where the drivers should be put. I propose
that they would be put under sys/dev/xen, so you would have e.g.
sys/dev/xen/xennet, sys/dev/xen/xenblk etc.

The existence of these drivers are also a reason - to me at least - to
keep xen as a platform of its own.

--
/"\ Best regards, | mlaier@xxxxxxxxxxx
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News

Attachment: signature.asc
Description: This is a digitally signed message part.



Relevant Pages

  • Re: Should Xen be a sub-arch or a build option?
    ... This is purely a request to discuss how one ... would structure the tree were one to import it into CVS. ... if one were to import Xen support into CVS ... powerpc sub-directories. ...
    (freebsd-arch)
  • Re: [OT] Q: what would you choose for a VCS today
    ... CVS repository before they let you start doing any work in the newly ... You can keep 'importing' snapshots of the src tree from any ... This is how we 'resync' with the official doc/ tree changes in the Greek ... The whole process of importing clean snapshots is automated in a shell ...
    (freebsd-hackers)
  • maintaining DRM and using bitkeeper..
    ... The biggest problem we are facing with the DRM is getting things tested ... the -mm tree is more useful for picking out non-x86 ... At the moment I put patches into the BK CVS first, we stabilise them, I ... take the CVS changes and patch them into bitkeeper, Andrew picks them up, ...
    (Linux-Kernel)
  • Re: 2.6.3-mm4
    ... I think all you need to do is get the cvs tree of the ... Sensors people, ... > I will apply the libsensors changes to the CVS repository as soon as the ...
    (Linux-Kernel)
  • Re: 2.6.7-vanilla-SMP kernel: pagebuf_get: failed to lookup pages
    ... much time the sgi people have before then. ... > checked in CVS code for use on a 'stable' machine is bordering on my ... FWIW, the CVS tree isn't freshly checked in, it's a reflection of the ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)