File 69ed99c7-dom0-persistent.patch of Package libvirt.8364

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-2.0.0/src/libxl/libxl_driver.c
===================================================================
--- libvirt-2.0.0.orig/src/libxl/libxl_driver.c
+++ libvirt-2.0.0/src/libxl/libxl_driver.c
@@ -557,6 +557,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))
         goto cleanup;
openSUSE Build Service is sponsored by