diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-23 11:08:40 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-23 10:37:49 -0500 |
commit | e7303c43031302279ee7b5d6ea7031bf81e2e2d9 (patch) | |
tree | 53b4c847e18f8a8fc5ae179c125a5da8adb0a70c /hw/9pfs/virtio-9p.h | |
parent | 93b971c4ff0881349d4fa5a1394cc3d6faf351c3 (diff) |
virtio-9p: add the virtio-9p device.
Create virtio-9p-device which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Message-id: 1366708123-19626-2-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/9pfs/virtio-9p.h')
-rw-r--r-- | hw/9pfs/virtio-9p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h index 95a8ec3ba9..767f7e66b5 100644 --- a/hw/9pfs/virtio-9p.h +++ b/hw/9pfs/virtio-9p.h @@ -225,6 +225,7 @@ typedef struct V9fsState CoRwlock rename_lock; int32_t root_fid; Error *migration_blocker; + V9fsConf fsconf; } V9fsState; typedef struct V9fsStatState { @@ -401,4 +402,12 @@ extern int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath, #define pdu_unmarshal(pdu, offset, fmt, args...) \ v9fs_unmarshal(pdu->elem.out_sg, pdu->elem.out_num, offset, 1, fmt, ##args) +#define TYPE_VIRTIO_9P "virtio-9p-device" +#define VIRTIO_9P(obj) \ + OBJECT_CHECK(V9fsState, (obj), TYPE_VIRTIO_9P) + +#define DEFINE_VIRTIO_9P_PROPERTIES(_state, _field) \ + DEFINE_PROP_STRING("mount_tag", _state, _field.tag), \ + DEFINE_PROP_STRING("fsdev", _state, _field.fsdev_id) + #endif |