mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
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:
parent
b41ed60763
commit
191dda058a
@ -646,9 +646,6 @@ symbols = [
|
|||||||
|
|
||||||
if host_machine.system() == 'linux'
|
if host_machine.system() == 'linux'
|
||||||
symbols += [
|
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
|
# Check if we have new enough kernel to support BPF devices for cgroups v2
|
||||||
[ 'linux/bpf.h', 'BPF_PROG_QUERY' ],
|
[ 'linux/bpf.h', 'BPF_PROG_QUERY' ],
|
||||||
[ 'linux/bpf.h', 'BPF_CGROUP_DEVICE' ],
|
[ 'linux/bpf.h', 'BPF_CGROUP_DEVICE' ],
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if WITH_DECL_VHOST_VSOCK_SET_GUEST_CID
|
#ifdef __linux__
|
||||||
# include <linux/vhost.h>
|
# include <linux/vhost.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("util.vsock");
|
VIR_LOG_INIT("util.vsock");
|
||||||
|
|
||||||
#if WITH_DECL_VHOST_VSOCK_SET_GUEST_CID
|
#ifdef __linux__
|
||||||
static int
|
static int
|
||||||
virVsockSetGuestCidQuiet(int fd,
|
virVsockSetGuestCidQuiet(int fd,
|
||||||
unsigned int guest_cid)
|
unsigned int guest_cid)
|
||||||
|
Loading…
Reference in New Issue
Block a user