xen/9pfs: send responses back to the frontend
commit4476e09e34d4257d2bfbdb70d106a154f42c928b
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 22 Mar 2017 17:16:09 +0000 (22 10:16 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 25 Apr 2017 18:04:33 +0000 (25 11:04 -0700)
treec2196451ca695d75f68550b77be2d0d266e703a8
parent40a2389207fb1a7ee179a9eba1b2fe9a5584bbc3
xen/9pfs: send responses back to the frontend

Once a request is completed, xen_9pfs_push_and_notify gets called. In
xen_9pfs_push_and_notify, update the indexes (data has already been
copied to the sg by the common code) and send a notification to the
frontend.

Schedule the bottom-half to check if we already have any other requests
pending.

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