forked from pool/libvirt
c01d33d0ce
- libvirt-guests: fix 'stop' operation when action is 'suspend' 69ed99c7-dom0-persistent.patch, 8599aedd-libvirt-guests-dom0-filter.patch bsc#1070130 OBS-URL: https://build.opensuse.org/request/show/558230 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=650
22 lines
773 B
Diff
22 lines
773 B
Diff
commit 69ed99c78696d7ac405ce9e193a4a312fd9945d7
|
|
Author: Jim Fehlig <jfehlig@suse.com>
|
|
Date: Wed Dec 13 14:20:37 2017 -0700
|
|
|
|
libxl: mark domain0 as persistent
|
|
|
|
A Xen domain0 is better described as a persistent domain. Mark it
|
|
as such during intialization.
|
|
|
|
Index: libvirt-3.10.0/src/libxl/libxl_driver.c
|
|
===================================================================
|
|
--- libvirt-3.10.0.orig/src/libxl/libxl_driver.c
|
|
+++ libvirt-3.10.0/src/libxl/libxl_driver.c
|
|
@@ -609,6 +609,7 @@ libxlAddDom0(libxlDriverPrivatePtr drive
|
|
|
|
def = NULL;
|
|
|
|
+ vm->persistent = 1;
|
|
virDomainObjSetState(vm, VIR_DOMAIN_RUNNING, VIR_DOMAIN_RUNNING_BOOTED);
|
|
if (virDomainDefSetVcpusMax(vm->def, d_info.vcpu_max_id + 1, driver->xmlopt))
|
|
goto cleanup;
|