diff options
author | royger <royger@FreeBSD.org> | 2014-06-16 08:44:33 +0000 |
---|---|---|
committer | royger <royger@FreeBSD.org> | 2014-06-16 08:44:33 +0000 |
commit | e67dcf09df037cf65eaa533abd6e93fc2053efef (patch) | |
tree | 8974ba75a14079f9221ddb483e5138882514c8ec /sys/xen | |
parent | a2b989a585f564dca417eafe10f0bcf2b6a32a3a (diff) | |
download | FreeBSD-src-e67dcf09df037cf65eaa533abd6e93fc2053efef.zip FreeBSD-src-e67dcf09df037cf65eaa533abd6e93fc2053efef.tar.gz |
xen: introduce xenpv bus
Create a dummy bus so top level Xen devices can attach to it (instead
of attaching directly to the nexus). This allows to have all the Xen
related devices grouped under a single bus.
Sponsored by: Citrix Systems R&D
Approved by: gibbs
x86/xen/xenpv.c:
- Attach the xenpv bus when running as a Xen guest.
- Attach the ISA bus if needed, in order to attach syscons.
conf/files.amd6:
conf/files.i386:
- Include the xenpv.c file in the build of i386/amd64 kernels using
XENHVM.
dev/xen/console/console.c:
dev/xen/timer/timer.c:
xen/xenstore/xenstore.c:
- Attach to the xenpv bus instead of the Nexus.
dev/xen/xenpci/xenpci.c:
- Xen specific devices on PVHVM guests are no longer attached to the
xenpci device, they are instead attached to the xenpv bus, remove
the now unused methods.
Diffstat (limited to 'sys/xen')
-rw-r--r-- | sys/xen/xenstore/xenstore.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/xen/xenstore/xenstore.c b/sys/xen/xenstore/xenstore.c index d404862..b5cf413 100644 --- a/sys/xen/xenstore/xenstore.c +++ b/sys/xen/xenstore/xenstore.c @@ -1261,11 +1261,7 @@ static device_method_t xenstore_methods[] = { DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0); static devclass_t xenstore_devclass; -#ifdef XENHVM -DRIVER_MODULE(xenstore, xenpci, xenstore_driver, xenstore_devclass, 0, 0); -#else -DRIVER_MODULE(xenstore, nexus, xenstore_driver, xenstore_devclass, 0, 0); -#endif +DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0); /*------------------------------- Sysctl Data --------------------------------*/ /* XXX Shouldn't the node be somewhere else? */ |