File valgrind.Expect-earliest-version-for-versioned-xen-domctl-sys.patch of Package valgrind

From: Olaf Hering <olaf@aepfle.de>
Date: Sun, 25 Nov 2018 11:48:26 +0100
Subject: Expect earliest version for versioned xen domctl/sysctl

Versioned Xen domctl and sysctl interfaces need a suffix. Expect the
earliest interface_version because newly added interfaces will not be
renamed once another variant appears in a future Version of Xen. For
existing unversioned interfaces some software archeaology must be done.

bz#390553
---
 include/vki/vki-xen-domctl.h | 2 +-
 include/vki/vki-xen-sysctl.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/include/vki/vki-xen-domctl.h
+++ b/include/vki/vki-xen-domctl.h
@@ -33,25 +33,25 @@
  * - 0x00000007: Xen 4.1
  * - 0x00000008: Xen 4.2
  * - 0x00000009: Xen 4.3 & 4.4
  * - 0x0000000a: Xen 4.5
  * - 0x0000000b: Xen 4.6
  * - 0x0000000c: Xen 4.7
  *
  * 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 latest version to contain that particular
+ * and use the suffix of the earliest version to contain that particular
  * variant.
  */
 
 #define VKI_XEN_DOMCTL_createdomain                   1
 #define VKI_XEN_DOMCTL_destroydomain                  2
 #define VKI_XEN_DOMCTL_pausedomain                    3
 #define VKI_XEN_DOMCTL_unpausedomain                  4
 #define VKI_XEN_DOMCTL_getdomaininfo                  5
 #define VKI_XEN_DOMCTL_getmemlist                     6
 #define VKI_XEN_DOMCTL_getpageframeinfo               7
 #define VKI_XEN_DOMCTL_getpageframeinfo2              8
 #define VKI_XEN_DOMCTL_setvcpuaffinity                9
--- a/include/vki/vki-xen-sysctl.h
+++ b/include/vki/vki-xen-sysctl.h
@@ -6,25 +6,25 @@
  * field. This structures in this header supports sysctl interfaces:
  *
  * - 0x00000008: Xen 4.1
  * - 0x00000009: Xen 4.2
  * - 0x0000000a: Xen 4.3 & 4.4
  * - 0x0000000b: Xen 4.5
  *
  * 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 latest version to contain that particular
+ * 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
 #define VKI_XEN_SYSCTL_physinfo                       3
 #define VKI_XEN_SYSCTL_sched_id                       4
 #define VKI_XEN_SYSCTL_perfc_op                       5
 #define VKI_XEN_SYSCTL_getdomaininfolist              6
 #define VKI_XEN_SYSCTL_debug_keys                     7
 #define VKI_XEN_SYSCTL_getcpuinfo                     8
 #define VKI_XEN_SYSCTL_availheap                      9
openSUSE Build Service is sponsored by