All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/4] 9pfs: handle transport errors
@ 2017-06-23  6:44 Greg Kurz
  2017-06-23  6:45 ` [Qemu-devel] [PATCH v4 1/4] virtio-9p: record element after sanity checks Greg Kurz
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Greg Kurz @ 2017-06-23  6:44 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 v3:
- addressed comment from MST (patch 3)

--
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 |   59 ++++++++++++++++++++++++++++++++++++--------
 hw/9pfs/xen-9p-backend.c   |    3 +-
 4 files changed, 72 insertions(+), 22 deletions(-)

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

end of thread, other threads:[~2017-06-28 19:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-23  6:44 [Qemu-devel] [PATCH v4 0/4] 9pfs: handle transport errors Greg Kurz
2017-06-23  6:45 ` [Qemu-devel] [PATCH v4 1/4] virtio-9p: record element after sanity checks Greg Kurz
2017-06-23  6:45 ` [Qemu-devel] [PATCH v4 2/4] virtio-9p: message header is 7-byte long Greg Kurz
2017-06-23  6:45 ` [Qemu-devel] [PATCH v4 3/4] virtio-9p: break device if buffers are misconfigured Greg Kurz
2017-06-26 23:22   ` Stefano Stabellini
2017-06-27  6:54     ` Greg Kurz
2017-06-27 23:34       ` Stefano Stabellini
2017-06-28 11:22         ` Greg Kurz
2017-06-28 18:54           ` Stefano Stabellini
2017-06-28 19:54             ` Greg Kurz
2017-06-28 19:59               ` Stefano Stabellini
2017-06-23  6:45 ` [Qemu-devel] [PATCH v4 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.