[PATCH v7 15/19] xen: create a Xen nexus to use in PV/PVH
John Baldwin
jhb at freebsd.org
Tue Dec 24 15:51:15 UTC 2013
On Thursday, December 19, 2013 1:54:52 pm Roger Pau Monne wrote:
> Introduce a Xen specific nexus that is going to be in charge for
> attaching Xen specific devices. Remove the identify routine from Xen
> devices and instead attach them from the nexus (PV/PVH) or xenpci
> (HVM).
As with my previous mail, I would encourage you to create a xenpv0 device and
have the xen nexus be very minimal. This would let you leave the existing
identify routines in place (which is cleaner / more extensible than a static
table of devices that you explicitly add), but by having the PV-specific
drivers attach as children of xenpv0, their identify routines would only be
invoked when xenpv0 attached. You can even use an identify routine for CPUs
(see cpu_identify in sys/x86/x86/legacy.c).
--
John Baldwin
More information about the freebsd-current
mailing list