All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/4] 9pfs: handle transport errors
@ 2017-06-21 17:41 Greg Kurz
  2017-06-21 17:41 ` [Qemu-devel] [PATCH v3 1/4] virtio-9p: record element after sanity checks Greg Kurz
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Greg Kurz @ 2017-06-21 17:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefano Stabellini, Greg Kurz, Michael S. Tsirkin

The 9p protocol relies on a reliable transport, but the current code
treats transport errors (ie, failure to marshal or unmarshal) as if
they were coming from the backend. This doesn't make sense: if the
transport failed, we should notify the guest that the transport is
broken and needs to be reset, using transport specific means.

This series only modifies the virtio transport so that it can notify
the guest about transport failures.

Changes since v2:
- complete rework

--
Greg

---

Greg Kurz (4):
      virtio-9p: record element after sanity checks
      virtio-9p: message header is 7-byte long
      virtio-9p: break device if buffers are misconfigured
      9pfs: handle transport errors in pdu_complete()


 hw/9pfs/9p.c               |   25 +++++++++++++-------
 hw/9pfs/9p.h               |    7 +++++-
 hw/9pfs/virtio-9p-device.c |   56 ++++++++++++++++++++++++++++++++++++--------
 hw/9pfs/xen-9p-backend.c   |    3 ++
 4 files changed, 70 insertions(+), 21 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-22  6:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-21 17:41 [Qemu-devel] [PATCH v3 0/4] 9pfs: handle transport errors Greg Kurz
2017-06-21 17:41 ` [Qemu-devel] [PATCH v3 1/4] virtio-9p: record element after sanity checks Greg Kurz
2017-06-21 22:06   ` Michael S. Tsirkin
2017-06-21 17:42 ` [Qemu-devel] [PATCH v3 2/4] virtio-9p: message header is 7-byte long Greg Kurz
2017-06-21 17:42 ` [Qemu-devel] [PATCH v3 3/4] virtio-9p: break device if buffers are misconfigured Greg Kurz
2017-06-21 22:09   ` Michael S. Tsirkin
2017-06-22  6:52     ` Greg Kurz
2017-06-21 17:42 ` [Qemu-devel] [PATCH v3 4/4] 9pfs: handle transport errors in pdu_complete() Greg Kurz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.