diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-04-29 17:44:44 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-05-03 12:17:37 -0500 |
commit | 9f10751365b26b13b8a9b67e0e90536ae3d282df (patch) | |
tree | 276d00f1b535d02d22e3a20a45582239240c5977 /hw/virtio.h | |
parent | 74db920c32cea5b52a91b81f2bfd467fc070e942 (diff) |
virtio-9p: Add a virtio 9p device to qemu
This patch doesn't implement the 9p protocol handling
code. It adds a simple device which dump the protocol data.
[jvrao@linux.vnet.ibm.com: Little-Endian to host format conversion]
[aneesh.kumar@linux.vnet.ibm.com: Multiple-mounts support]
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio.h')
-rw-r--r-- | hw/virtio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/virtio.h b/hw/virtio.h index f885f1b599..e4306cd750 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -20,6 +20,9 @@ #include "sysemu.h" #include "block_int.h" #include "event_notifier.h" +#ifdef CONFIG_LINUX +#include "9p.h" +#endif /* from Linux's linux/virtio_config.h */ @@ -185,6 +188,10 @@ VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf); VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf); VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t max_nr_ports); VirtIODevice *virtio_balloon_init(DeviceState *dev); +#ifdef CONFIG_LINUX +VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf); +#endif + void virtio_net_exit(VirtIODevice *vdev); |