]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Xen: Bump minimum supported Xen version to 4.9
authorJim Fehlig <jfehlig@suse.com>
Mon, 14 Jun 2021 17:17:54 +0000 (11:17 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 17 Jun 2021 16:11:56 +0000 (10:11 -0600)
Platforms supported by libvirt have the following Xen versions

openSUSE Leap 15.2: 4.13
openSUSE Leap 15.3: 4.14
         Fedora 33: 4.14
      Ubuntu 18.04: 4.9
      Ubuntu 20.04: 4.11
     Debian Stable: 4.11

Bumping the minimum version doesn't allow us to drop much code, but it
does provide better alignment with libvirt's platform support statement.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build

index eba6d9f7652de333cb9bd10fa9127dacc658d9f4..02900ff73850f7cd7a7f35ed2af5c5db538ec795 100644 (file)
@@ -1481,7 +1481,7 @@ elif get_option('driver_interface').enabled()
 endif
 
 if not get_option('driver_libxl').disabled() and conf.has('WITH_LIBVIRTD')
-  libxl_version = '4.6.0'
+  libxl_version = '4.9.0'
   libxl_dep = dependency('xenlight', version: '>=' + libxl_version, required: get_option('driver_libxl'))
 
   if libxl_dep.found()
@@ -1501,15 +1501,11 @@ if not get_option('driver_libxl').disabled() and conf.has('WITH_LIBVIRTD')
     xl_util_dep = dependency('xlutil')
 
     xen_store_dep = dependency('xenstore')
+    xtl_link_dep = dependency('xentoollog')
 
-    # xtl_* infrastructure is in libxentoollog since Xen 4.7 previously
-    # it was in libxenctrl.
-    if libxl_dep.version().version_compare('>=4.7.0')
-      xtl_link_dep = dependency('xentoollog')
-    else
-      xtl_link_dep = dependency('xenctrl')
-    endif
-
+    # Upstream Xen failed to advertise LIBXL_API_VERSION 0x040700 and
+    # 0x040800 until the Xen 4.13 release. For Xen versions 4.9-4.12
+    # we'll need to stick with version 0x040500.
     if libxl_dep.version().version_compare('>=4.13.0')
       LIBXL_API_VERSION='0x041300'
     else