crosvm/seccomp/x86_64
Chirantan Ekbote ebd56813e1 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 <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1065173
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2018-08-08 13:45:44 -07:00
..
9p_device.policy virtio: Implement the 9P device 2018-08-08 13:45:44 -07:00
9s.policy 9s: Server binary for the 9p file system 2018-08-08 13:45:41 -07:00
balloon_device.policy balloon: Implement device policy 2018-07-27 15:29:07 -07:00
block_device.policy qcow: Call fsync(2) when we want to flush to disk 2018-05-18 20:08:31 -07:00
net_device.policy devices: use PollContext for all virtio deivces 2018-04-05 15:20:42 -07:00
rng_device.policy devices: use PollContext for all virtio deivces 2018-04-05 15:20:42 -07:00
vhost_net_device.policy devices: use PollContext for all virtio deivces 2018-04-05 15:20:42 -07:00
vhost_vsock_device.policy devices: use PollContext for all virtio deivces 2018-04-05 15:20:42 -07:00
wl_device.policy virtwl: implement dmabuf sync support 2018-06-19 14:38:53 -07:00