From ebd56813e189de4a2d2bad2699bc07b56e580035 Mon Sep 17 00:00:00 2001 From: Chirantan Ekbote Date: Mon, 16 Apr 2018 19:32:04 -0700 Subject: virtio: Implement the 9P device Implement a new virtio_9p device to be used for sharing directories with the VM. BUG=chromium:703939 TEST=mount inside a VM and run `bonnie++ -r 256` Append the shared directory to the crosvm command line: --shared-dir /path/to/dir:test_9p Then mount in the guest: mkdir /tmp/9p mount -t 9p -o trans=virtio test_9p /tmp/9p -oversion=9p2000.L Or for a 9p root: run --shared-dir /mnt/vm_root:/dev/root -p 'root=/dev/root ro rootflags=ro,trans=virtio,version=9p2000.L,cache=loose rootfstype=9p' vmlinux.bin CQ-DEPEND=CL:1065170 Change-Id: I41fc21306ab5fa318a271f172d7057b767b29f31 Signed-off-by: Chirantan Ekbote Reviewed-on: https://chromium-review.googlesource.com/1065173 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Dylan Reid --- devices/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'devices/Cargo.toml') diff --git a/devices/Cargo.toml b/devices/Cargo.toml index 03f1a8a..404efb0 100644 --- a/devices/Cargo.toml +++ b/devices/Cargo.toml @@ -17,6 +17,7 @@ libc = "*" io_jail = { path = "../io_jail" } net_sys = { path = "../net_sys" } net_util = { path = "../net_util" } +p9 = { path = "../p9" } resources = { path = "../resources" } sys_util = { path = "../sys_util" } vhost = { path = "../vhost" } -- cgit 1.4.1