File valgrind.xen-4.8-new-sysctl-value.patch of Package valgrind

From: Olaf Hering <olaf@aepfle.de>
Date: Fri, 16 Nov 2018 17:29:29 +0100
Subject: xen-4.8: new sysctl value

Add 0xe as sysctl value of xen-4.8

bz#390553
---
 coregrind/m_syswrap/syswrap-xen.c | 2 ++
 include/vki/vki-xen-sysctl.h      | 1 +
 2 files changed, 3 insertions(+)

--- a/coregrind/m_syswrap/syswrap-xen.c
+++ b/coregrind/m_syswrap/syswrap-xen.c
@@ -650,24 +650,26 @@ PRE(sysctl) {
       vki_set_assumed_xenversion(vki_xenversion_404);
 	   break;
    case 0x0000000b:
       vki_set_assumed_xenversion(vki_xenversion_405);
 	   break;
    case 0x0000000c:
       vki_set_assumed_xenversion(vki_xenversion_406);
 	   break;
    case 0x0000000d:
       vki_set_assumed_xenversion(vki_xenversion_407);
 	   break;
    case 0x0000000e:
+      vki_set_assumed_xenversion(vki_xenversion_408);
+	   break;
    case 0x0000000f:
    case 0x00000010:
    case 0x00000011:
    case 0x00000012:
 	   break;
    default:
       bad_intf_version(tid, layout, arrghs, status, flags,
                        "__HYPERVISOR_sysctl", sysctl->interface_version);
       return;
    }
 
 #define __PRE_XEN_SYSCTL_READ(_sysctl, _union, _field)			\
--- a/include/vki/vki-xen-sysctl.h
+++ b/include/vki/vki-xen-sysctl.h
@@ -6,24 +6,25 @@
  * field. The structures in this header supports sysctl interfaces:
  *
  * - 0x00000002: Xen 3.0.3 (unhandled)
  * - 0x00000003: Xen 3.1.0 (unhandled)
  * - 0x00000006: Xen 3.2 (unhandled)
  * - 0x00000007: Xen 4.0 (unhandled)
  * - 0x00000008: Xen 4.1
  * - 0x00000009: Xen 4.2
  * - 0x0000000a: Xen 4.3 & 4.4
  * - 0x0000000b: Xen 4.5
  * - 0x0000000c: Xen 4.6
  * - 0x0000000d: Xen 4.7
+ * - 0x0000000e: Xen 4.8
  *
  * When adding a new subop be sure to include the variants used by all
  * of the above, both here and in syswrap-xen.c
  *
  * Structs which are identical in all supported versions have no
  * version suffix. Structs which do differ are defined multiple times
  * and use the suffix of the earliest version to contain that particular
  * variant.
  */
 
 #define VKI_XEN_SYSCTL_readconsole                    1
 #define VKI_XEN_SYSCTL_tbuf_op                        2
openSUSE Build Service is sponsored by