]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: remove obsolete check for VHOST_VSOCK_SET_GUEST_CID
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Dec 2022 09:45:20 +0000 (09:45 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 12 Dec 2022 10:36:15 +0000 (10:36 +0000)
The VHOST_VSOCK_SET_GUEST_CID constant was introduced to Linux in

  commit 433fc58e6bf2c8bd97e57153ed28e64fd78207b8
  Author: Asias He <asias@redhat.com>
  Date:   Thu Jul 28 15:36:34 2016 +0100

    VSOCK: Introduce vhost_vsock.ko

This is old enough that all our supported platforms can be assumed
to have this feature.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build
src/util/virvsock.c

index 612257a35190b208d7b5abf8373efd2f1539fafb..95bc89ec523e4f1ac47da5aed9864e427d435bc7 100644 (file)
@@ -646,9 +646,6 @@ symbols = [
 
 if host_machine.system() == 'linux'
   symbols += [
-    # check for VHOST_VSOCK_SET_GUEST_CID
-    [ 'linux/vhost.h', 'VHOST_VSOCK_SET_GUEST_CID' ],
-
     # Check if we have new enough kernel to support BPF devices for cgroups v2
     [ 'linux/bpf.h', 'BPF_PROG_QUERY' ],
     [ 'linux/bpf.h', 'BPF_CGROUP_DEVICE' ],
index 4bbbf781672f84920b97b6a3a572bd1d14ef544e..c6f8b362b81c75972d3a473130d3c42330d6d852 100644 (file)
@@ -21,7 +21,7 @@
 # include <sys/ioctl.h>
 #endif
 
-#if WITH_DECL_VHOST_VSOCK_SET_GUEST_CID
+#ifdef __linux__
 # include <linux/vhost.h>
 #endif
 
@@ -35,7 +35,7 @@
 
 VIR_LOG_INIT("util.vsock");
 
-#if WITH_DECL_VHOST_VSOCK_SET_GUEST_CID
+#ifdef __linux__
 static int
 virVsockSetGuestCidQuiet(int fd,
                          unsigned int guest_cid)