File ecb587e4-libxl-pae.patch of Package libvirt.6159

commit ecb587e4ca5d74bc2ff3883b3183ec4c89bf960c
Author: Jim Fehlig <jfehlig@suse.com>
Date:   Wed Jan 11 17:42:42 2017 -0700

    libxl: always enable pae for x86_64 HVM
    
    For HVM domains, pae is only set in libxl_domain_build_info when
    explicitly specified in the hypervisor <features> config. This is
    fine for i686 machines, but is incorrect behavior for x86_64 machines
    where pae must always be enabled. See the following discussion for
    additional details
    
    https://www.redhat.com/archives/libvir-list/2017-January/msg00254.html

Index: libvirt-2.0.0/src/libxl/libxl_domain.c
===================================================================
--- libvirt-2.0.0.orig/src/libxl/libxl_domain.c
+++ libvirt-2.0.0/src/libxl/libxl_domain.c
@@ -407,6 +407,12 @@ libxlDomainDefPostParse(virDomainDefPtr
     if (xenDomainDefAddImplicitInputDevice(def) < 0)
         return -1;
 
+    /* For x86_64 HVM, always enable pae */
+    if (def->os.type == VIR_DOMAIN_OSTYPE_HVM &&
+        def->os.arch == VIR_ARCH_X86_64) {
+        def->features[VIR_DOMAIN_FEATURE_PAE] = VIR_TRISTATE_SWITCH_ON;
+    }
+
     return 0;
 }