aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/xen-9p-backend.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2017-05-25 10:30:13 +0200
committerGreg Kurz <groug@kaod.org>2017-05-25 10:30:13 +0200
commit506f3275829258fdf193bbf0f98f3f9e8c0f3c45 (patch)
treeec8cc52f26cef4e5abdb4277acaa06dddc573a07 /hw/9pfs/xen-9p-backend.c
parent9964e96dc9999cf7f7c936ee854a795415d19b60 (diff)
downloadqemu-506f3275829258fdf193bbf0f98f3f9e8c0f3c45.zip
qemu-506f3275829258fdf193bbf0f98f3f9e8c0f3c45.tar.gz
qemu-506f3275829258fdf193bbf0f98f3f9e8c0f3c45.tar.bz2
virtio-9p/xen-9p: move 9p specific bits to core 9p code
These bits aren't related to the transport so let's move them to the core code. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'hw/9pfs/xen-9p-backend.c')
-rw-r--r--hw/9pfs/xen-9p-backend.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/9pfs/xen-9p-backend.c b/hw/9pfs/xen-9p-backend.c
index 5df97c9..922cc96 100644
--- a/hw/9pfs/xen-9p-backend.c
+++ b/hw/9pfs/xen-9p-backend.c
@@ -243,14 +243,10 @@ static int xen_9pfs_receive(Xen9pfsRing *ring)
/* cannot fail, because we only handle one request per ring at a time */
pdu = pdu_alloc(&ring->priv->state);
- pdu->size = le32_to_cpu(h.size_le);
- pdu->id = h.id;
- pdu->tag = le32_to_cpu(h.tag_le);
ring->out_size = le32_to_cpu(h.size_le);
ring->out_cons = cons + le32_to_cpu(h.size_le);
- qemu_co_queue_init(&pdu->complete);
- pdu_submit(pdu);
+ pdu_submit(pdu, &h);
return 0;
}