rng=rng0,romfile= -device virtserialport,chardev=charch0,id=channel0,name=agent.channel.0-chardev socket,id=charch0,path=/run/vc/vm/856a63e5791df94f809b80ac589e3fad059297fed704579769330d214af68700/kata.sock,server,nowait -device virtio-9p-pci,disable-modern=false,fsdev=extra-9p-kata...
qemu启动命令:http://www.linux-kvm.org/page/9p_virtio kernel配置:http://wiki.qemu.org/Documentation/9psetup qemu添加configure选项:https://groups.google.com/forum/#!topic/coreos-dev/MjhL3tOOAVM mkdir /tmp/host_files mount-t 9p -o trans=virtio,version=9p2000.L hostshare /tmp/host_files /...
为了设计实现正确的改动,首先我需要理解现有VirtIO层的实现,这点OSv有两个正交但相关的抽象层:类driver和类device。virtio::virtio_driver类作为基类提供通用的驱动逻辑,并由类virtio::blk,virtio::net,virtio::scsi和virtio::rng继承实现各自特性,如下所示: hw_device <|---| pci::function<|---|pci::device...