diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-12 07:52:53 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-12 07:52:53 -0500 |
| commit | eecaecedec1eb6a47be370a6023bc220a3d30c85 (patch) | |
| tree | 4d7f1233d30911f63d717543f10b7e038d9b684d /hw/9pfs/virtio-9p-device.c | |
| parent | 25a263cdec8e40c81e597b13ffc81cd9397d1fec (diff) | |
| parent | 930b1e173b31e1a0e77535a9868dc3ec1f426a43 (diff) | |
| download | focaccia-qemu-eecaecedec1eb6a47be370a6023bc220a3d30c85.tar.gz focaccia-qemu-eecaecedec1eb6a47be370a6023bc220a3d30c85.zip | |
Merge remote-tracking branch 'aneesh/for-upstream-1' into staging
Diffstat (limited to 'hw/9pfs/virtio-9p-device.c')
| -rw-r--r-- | hw/9pfs/virtio-9p-device.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index f235236ea0..f4bf471871 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -18,6 +18,7 @@ #include "virtio-9p.h" #include "fsdev/qemu-fsdev.h" #include "virtio-9p-xattr.h" +#include "virtio-9p-coth.h" static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t features) { @@ -50,13 +51,11 @@ VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf) struct stat stat; FsTypeEntry *fse; - s = (V9fsState *)virtio_common_init("virtio-9p", VIRTIO_ID_9P, sizeof(struct virtio_9p_config)+ MAX_TAG_LEN, sizeof(V9fsState)); - /* initialize pdu allocator */ QLIST_INIT(&s->free_list); for (i = 0; i < (MAX_REQ - 1); i++) { @@ -132,6 +131,10 @@ VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf) s->tag_len; s->vdev.get_config = virtio_9p_get_config; + if (v9fs_init_worker_threads() < 0) { + fprintf(stderr, "worker thread initialization failed\n"); + exit(1); + } return &s->vdev; } |