[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 0/5] 9pfs: handle transport errors
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PATCH v5 0/5] 9pfs: handle transport errors |
Date: |
Wed, 28 Jun 2017 22:43:57 +0200 |
User-agent: |
StGit/0.17.1-20-gc0b1b-dirty |
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 modifies both virtio and xen transports to take appropriate
actions when hitting misconfigured buffers.
--
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()
Stefano Stabellini (1):
xen-9pfs: disconnect if buffers are misconfigured
hw/9pfs/9p.c | 25 ++++++++-----
hw/9pfs/9p.h | 7 +++-
hw/9pfs/virtio-9p-device.c | 51 +++++++++++++++++++++-----
hw/9pfs/xen-9p-backend.c | 88 +++++++++++++++++++++++++++++++++-----------
4 files changed, 129 insertions(+), 42 deletions(-)
- [Qemu-devel] [PATCH v5 0/5] 9pfs: handle transport errors,
Greg Kurz <=
- [Qemu-devel] [PATCH v5 1/5] virtio-9p: record element after sanity checks, Greg Kurz, 2017/06/28
- [Qemu-devel] [PATCH v5 2/5] virtio-9p: message header is 7-byte long, Greg Kurz, 2017/06/28
- [Qemu-devel] [PATCH v5 3/5] virtio-9p: break device if buffers are misconfigured, Greg Kurz, 2017/06/28
- [Qemu-devel] [PATCH v5 4/5] xen-9pfs: disconnect if buffers are misconfigured, Greg Kurz, 2017/06/28
- [Qemu-devel] [PATCH v5 5/5] 9pfs: handle transport errors in pdu_complete(), Greg Kurz, 2017/06/28