]> xenbits.xensource.com Git - libvirt.git/commitdiff
xen: remove legacy hack for RHEL-5 Xen
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 9 Nov 2016 17:27:50 +0000 (17:27 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Nov 2016 16:00:02 +0000 (16:00 +0000)
We dropped support for RHEL-5 vintage Xen a while ago,
but forgot to remove some of the hacks for it.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure.ac
src/xen/xen_hypervisor.c
src/xen/xm_internal.c

index 9e26b8cdf8bbbc68a7e2d6ce50fe856906f03ad8..b4292bab9149f4a6bc3e8b447daf736f31020c8b 100644 (file)
@@ -634,14 +634,6 @@ fi
 AM_CONDITIONAL([WITH_SYSCTL], test "$with_sysctl" = "yes")
 AC_MSG_RESULT($with_sysctl)
 
-dnl RHEL-5 has a peculiar version of Xen, which requires some special casing
-AC_ARG_WITH([rhel5-api],
-       [AS_HELP_STRING([--with-rhel5-api=@<:@ARG@:>@],
-               [build for the RHEL-5 API @<:@default=no@:>@])])
-if test x"$with_rhel5_api" = x"yes"; then
-   AC_DEFINE([WITH_RHEL5_API], [1], [whether building for the RHEL-5 API])
-fi
-
 AC_PATH_PROG([IP_PATH], [ip], /sbin/ip, [/usr/sbin:$PATH])
 AC_DEFINE_UNQUOTED([IP_PATH], "$IP_PATH", [path to ip binary])
 
index 79b25b3e6cda138d39a92c0c6c5a7edaf071fa46..0177f83a0d5f9b055be5c5ce5b9040a4c39be427 100644 (file)
@@ -120,11 +120,7 @@ typedef privcmd_hypercall_t hypercall_t;
 # define __HYPERVISOR_domctl 36
 #endif
 
-#ifdef WITH_RHEL5_API
-# define SYS_IFACE_MIN_VERS_NUMA 3
-#else
-# define SYS_IFACE_MIN_VERS_NUMA 4
-#endif
+#define SYS_IFACE_MIN_VERS_NUMA 4
 
 static int xen_ioctl_hypercall_cmd;
 static struct xenHypervisorVersions hv_versions = {
index 10c9097d7794e29bb616e6afecf65dfd14a2a283..fba814aa196511f01e5daa9805562f206ae1118c 100644 (file)
 
 VIR_LOG_INIT("xen.xm_internal");
 
-#ifdef WITH_RHEL5_API
-# define XEND_CONFIG_MAX_VERS_NET_TYPE_IOEMU 0
-# define XEND_CONFIG_MIN_VERS_PVFB_NEWCONF 2
-#else
-# define XEND_CONFIG_MAX_VERS_NET_TYPE_IOEMU 3
-# define XEND_CONFIG_MIN_VERS_PVFB_NEWCONF 3
-#endif
+#define XEND_CONFIG_MAX_VERS_NET_TYPE_IOEMU 3
+#define XEND_CONFIG_MIN_VERS_PVFB_NEWCONF 3
 
 /* The true Xen limit varies but so far is always way
    less than 1024, which is the Linux kernel limit according