mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix driver ordering to make domain autostart work (Gerd von Egidy)
This commit is contained in:
parent
a429e221df
commit
821b41f9f7
2
AUTHORS
2
AUTHORS
@ -55,7 +55,7 @@ Patches have also been contributed by:
|
|||||||
Chris Wrigh <chrisw@redhat.com>
|
Chris Wrigh <chrisw@redhat.com>
|
||||||
Ben Guthro <bguthro@virtualiron.com>
|
Ben Guthro <bguthro@virtualiron.com>
|
||||||
Shigeki Sakamoto <fj0588di@aa.jp.fujitsu.com>
|
Shigeki Sakamoto <fj0588di@aa.jp.fujitsu.com>
|
||||||
|
Gerd von Egidy <lists@egidy.de>
|
||||||
|
|
||||||
[....send patches to get your name here....]
|
[....send patches to get your name here....]
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue Dec 2 11:34:22 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* qemud/qemud.c: Registering network, storage & nodedev drivers
|
||||||
|
before any domain drivers, so domain autostart can rely on
|
||||||
|
network/storage autostarted objects. Patch from Gerd von Egidy
|
||||||
|
|
||||||
Tue Dec 2 11:21:22 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
Tue Dec 2 11:21:22 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/uml_driver.c: Fix recording of watch number to make
|
* src/uml_driver.c: Fix recording of watch number to make
|
||||||
|
@ -755,28 +755,26 @@ static struct qemud_server *qemudInitialize(int sigread) {
|
|||||||
|
|
||||||
virInitialize();
|
virInitialize();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Note that the order is important: the first ones have a higher
|
||||||
|
* priority when calling virStateInitialize. We must register
|
||||||
|
* the network, storage and nodedev drivers before any domain
|
||||||
|
* drivers, since their resources must be auto-started before
|
||||||
|
* any domains can be auto-started.
|
||||||
|
*/
|
||||||
#ifdef WITH_DRIVER_MODULES
|
#ifdef WITH_DRIVER_MODULES
|
||||||
/* We don't care if any of these fail, because the whole point
|
/* We don't care if any of these fail, because the whole point
|
||||||
* is to allow users to only install modules they want to use.
|
* is to allow users to only install modules they want to use.
|
||||||
* If they try to use a open a connection for a module that
|
* If they try to use a open a connection for a module that
|
||||||
* is not loaded they'll get a suitable error at that point
|
* is not loaded they'll get a suitable error at that point
|
||||||
*/
|
*/
|
||||||
virDriverLoadModule("qemu");
|
|
||||||
virDriverLoadModule("lxc");
|
|
||||||
virDriverLoadModule("uml");
|
|
||||||
virDriverLoadModule("network");
|
virDriverLoadModule("network");
|
||||||
virDriverLoadModule("storage");
|
virDriverLoadModule("storage");
|
||||||
virDriverLoadModule("nodedev");
|
virDriverLoadModule("nodedev");
|
||||||
|
virDriverLoadModule("qemu");
|
||||||
|
virDriverLoadModule("lxc");
|
||||||
|
virDriverLoadModule("uml");
|
||||||
#else
|
#else
|
||||||
#ifdef WITH_QEMU
|
|
||||||
qemuRegister();
|
|
||||||
#endif
|
|
||||||
#ifdef WITH_LXC
|
|
||||||
lxcRegister();
|
|
||||||
#endif
|
|
||||||
#ifdef WITH_UML
|
|
||||||
umlRegister();
|
|
||||||
#endif
|
|
||||||
#ifdef WITH_NETWORK
|
#ifdef WITH_NETWORK
|
||||||
networkRegister();
|
networkRegister();
|
||||||
#endif
|
#endif
|
||||||
@ -786,6 +784,15 @@ static struct qemud_server *qemudInitialize(int sigread) {
|
|||||||
#if defined(HAVE_HAL) || defined(HAVE_DEVKIT)
|
#if defined(HAVE_HAL) || defined(HAVE_DEVKIT)
|
||||||
nodedevRegister();
|
nodedevRegister();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_QEMU
|
||||||
|
qemuRegister();
|
||||||
|
#endif
|
||||||
|
#ifdef WITH_LXC
|
||||||
|
lxcRegister();
|
||||||
|
#endif
|
||||||
|
#ifdef WITH_UML
|
||||||
|
umlRegister();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virEventRegisterImpl(virEventAddHandleImpl,
|
virEventRegisterImpl(virEventAddHandleImpl,
|
||||||
|
Loading…
Reference in New Issue
Block a user