meson: remove obsolete check for VHOST_VSOCK_SET_GUEST_CID

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>
This commit is contained in:
Daniel P. Berrangé 2022-12-08 09:45:20 +00:00
parent b41ed60763
commit 191dda058a
2 changed files with 2 additions and 5 deletions

View 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' ],

View 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)