xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal
commit40a2389207fb1a7ee179a9eba1b2fe9a5584bbc3
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 22 Mar 2017 17:16:06 +0000 (22 10:16 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 25 Apr 2017 18:04:33 +0000 (25 11:04 -0700)
tree57da56fcf09b77530b9d85a24c3adb1620fbcc63
parent47b70fb1e4b619c9d6de74776a6c7c8e5c7719ee
xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal

Implement xen_9pfs_init_in/out_iov_from_pdu and
xen_9pfs_pdu_vmarshal/vunmarshall by creating new sg pointing to the
data on the ring.

This is safe as we only handle one request per ring at any given time.

Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
CC: anthony.perard@citrix.com
CC: jgross@suse.com
CC: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
CC: Greg Kurz <groug@kaod.org>
hw/9pfs/xen-9p-backend.c