Skip to content

Commit 304ba62

Browse files
Asias Hemstsirkin
authored andcommitted
VSOCK: Add Makefile and Kconfig
Enable virtio-vsock and vhost-vsock. Signed-off-by: Asias He <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 433fc58 commit 304ba62

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

drivers/vhost/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ config VHOST_SCSI
1919
Say M here to enable the vhost_scsi TCM fabric module
2020
for use with virtio-scsi guests
2121

22+
config VHOST_VSOCK
23+
tristate "vhost virtio-vsock driver"
24+
depends on VSOCKETS && EVENTFD
25+
select VIRTIO_VSOCKETS_COMMON
26+
select VHOST
27+
default n
28+
---help---
29+
This kernel module can be loaded in the host kernel to provide AF_VSOCK
30+
sockets for communicating with guests. The guests must have the
31+
virtio_transport.ko driver loaded to use the virtio-vsock device.
32+
33+
To compile this driver as a module, choose M here: the module will be called
34+
vhost_vsock.
35+
2236
config VHOST_RING
2337
tristate
2438
---help---

drivers/vhost/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ vhost_net-y := net.o
44
obj-$(CONFIG_VHOST_SCSI) += vhost_scsi.o
55
vhost_scsi-y := scsi.o
66

7+
obj-$(CONFIG_VHOST_VSOCK) += vhost_vsock.o
8+
vhost_vsock-y := vsock.o
9+
710
obj-$(CONFIG_VHOST_RING) += vringh.o
11+
812
obj-$(CONFIG_VHOST) += vhost.o

net/vmw_vsock/Kconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,23 @@ config VMWARE_VMCI_VSOCKETS
2626

2727
To compile this driver as a module, choose M here: the module
2828
will be called vmw_vsock_vmci_transport. If unsure, say N.
29+
30+
config VIRTIO_VSOCKETS
31+
tristate "virtio transport for Virtual Sockets"
32+
depends on VSOCKETS && VIRTIO
33+
select VIRTIO_VSOCKETS_COMMON
34+
help
35+
This module implements a virtio transport for Virtual Sockets.
36+
37+
Enable this transport if your Virtual Machine host supports Virtual
38+
Sockets over virtio.
39+
40+
To compile this driver as a module, choose M here: the module will be
41+
called vmw_vsock_virtio_transport. If unsure, say N.
42+
43+
config VIRTIO_VSOCKETS_COMMON
44+
tristate
45+
help
46+
This option is selected by any driver which needs to access
47+
the virtio_vsock. The module will be called
48+
vmw_vsock_virtio_transport_common.

net/vmw_vsock/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
obj-$(CONFIG_VSOCKETS) += vsock.o
22
obj-$(CONFIG_VMWARE_VMCI_VSOCKETS) += vmw_vsock_vmci_transport.o
3+
obj-$(CONFIG_VIRTIO_VSOCKETS) += vmw_vsock_virtio_transport.o
4+
obj-$(CONFIG_VIRTIO_VSOCKETS_COMMON) += vmw_vsock_virtio_transport_common.o
35

46
vsock-y += af_vsock.o vsock_addr.o
57

68
vmw_vsock_vmci_transport-y += vmci_transport.o vmci_transport_notify.o \
79
vmci_transport_notify_qstate.o
10+
11+
vmw_vsock_virtio_transport-y += virtio_transport.o
12+
13+
vmw_vsock_virtio_transport_common-y += virtio_transport_common.o

0 commit comments

Comments
 (0)