forked from pool/libvirt
2f5a2436b0
- libxl: set dom0 state to running 4ffb21c8-libxl-dom0-state-fix.patch bsc#937316 - libxl: support management of dom0 45697fe5-libxl-support-dom0.patch bsc#937316 - libxl: libxl: fix setting state of virDomainObj e9c27344-libxl-fix-virDomainObj-state.patch bsc#934937 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=471
27 lines
956 B
Diff
27 lines
956 B
Diff
commit 4ffb21c89a6b9ae2b4bfd2999c24b01433e360a9
|
|
Author: Jim Fehlig <jfehlig@suse.com>
|
|
Date: Thu Jul 9 15:16:18 2015 -0600
|
|
|
|
libxl: set dom0 state to running
|
|
|
|
Commit 45697fe5 added dom0 to driver->domains, but missed
|
|
setting its state to 'running'
|
|
|
|
$ virsh list
|
|
Id Name State
|
|
----------------------------------------------------
|
|
0 Domain-0 shut off
|
|
|
|
Index: libvirt-1.2.17/src/libxl/libxl_driver.c
|
|
===================================================================
|
|
--- libvirt-1.2.17.orig/src/libxl/libxl_driver.c
|
|
+++ libvirt-1.2.17/src/libxl/libxl_driver.c
|
|
@@ -549,6 +549,7 @@ libxlAddDom0(libxlDriverPrivatePtr drive
|
|
|
|
def = NULL;
|
|
|
|
+ virDomainObjSetState(vm, VIR_DOMAIN_RUNNING, VIR_DOMAIN_RUNNING_BOOTED);
|
|
vm->def->vcpus = d_info.vcpu_online;
|
|
vm->def->maxvcpus = d_info.vcpu_max_id + 1;
|
|
vm->def->mem.cur_balloon = d_info.current_memkb;
|