Skip to content

Commit

Permalink
9p: add virtio transport
Browse files Browse the repository at this point in the history
This adds a transport to 9p for communicating between guests and a host
using a virtio based transport.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
  • Loading branch information
ericvh committed Oct 23, 2007
1 parent 0b776eb commit b530cc7
Show file tree
Hide file tree
Showing 5 changed files with 379 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Documentation/filesystems/9p.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ OPTIONS

trans=name select an alternative transport. Valid options are
currently:
unix - specifying a named pipe mount point
tcp - specifying a normal TCP/IP connection
fd - used passed file descriptors for connection
unix - specifying a named pipe mount point
tcp - specifying a normal TCP/IP connection
fd - used passed file descriptors for connection
(see rfdno and wfdno)
virtio - connect to the next virtio channel available
(from lguest or KVM with trans_virtio module)

uname=name user name to attempt mount as on the remote server. The
server may override or ignore this value. Certain user
Expand Down
10 changes: 10 additions & 0 deletions include/linux/virtio_9p.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef _LINUX_VIRTIO_9P_H
#define _LINUX_VIRTIO_9P_H
#include <linux/virtio_config.h>

/* The ID for virtio console */
#define VIRTIO_ID_9P 9
/* Maximum number of virtio channels per partition (1 for now) */
#define MAX_9P_CHAN 1

#endif /* _LINUX_VIRTIO_9P_H */
7 changes: 7 additions & 0 deletions net/9p/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ config NET_9P_FD
file descriptors. TCP/IP is the default transport for 9p,
so if you are going to use 9p, you'll likely want this.

config NET_9P_VIRTIO
depends on NET_9P && EXPERIMENTAL && VIRTIO
tristate "9P Virtio Transport (Experimental)"
help
This builds support for a transports between
guest partitions and a host partition.

config NET_9P_DEBUG
bool "Debug information"
depends on NET_9P
Expand Down
4 changes: 4 additions & 0 deletions net/9p/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
obj-$(CONFIG_NET_9P) := 9pnet.o
obj-$(CONFIG_NET_9P_FD) += 9pnet_fd.o
obj-$(CONFIG_NET_9P_VIRTIO) += 9pnet_virtio.o

9pnet-objs := \
mod.o \
Expand All @@ -12,3 +13,6 @@ obj-$(CONFIG_NET_9P_FD) += 9pnet_fd.o

9pnet_fd-objs := \
trans_fd.o \

9pnet_virtio-objs := \
trans_virtio.o \

0 comments on commit b530cc7

Please sign in to comment.