[Qemu-devel] [for-2.9 PATCH 0/3] 9pfs: fix 9p session reset

Greg Kurz posted 3 patches 7 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/149095959109.26233.3201018420228514740.stgit@bahia
Test checkpatch passed
Test docker passed
Test s390x failed
hw/9pfs/9p.c |   38 ++++++++++++++++++++++++++++----------
1 file changed, 28 insertions(+), 10 deletions(-)
[Qemu-devel] [for-2.9 PATCH 0/3] 9pfs: fix 9p session reset
Posted by Greg Kurz 7 years ago
When resetting a 9p session we leak the migration blocker: this makes the
device unmigratable until the guest remounts/unmounts the 9p share again.
We also leak in-flight I/O whose completion will occur in the context of
the new session. This violates the 9p specification [*] and is likely to
confuse clients.

This series fixes both issues.

---

Greg Kurz (3):
      9pfs: clear migration blocker at session reset
      9pfs: cancel active PDUs in virtfs_reset()
      9pfs: drop useless loop in v9fs_reset()


 hw/9pfs/9p.c |   38 ++++++++++++++++++++++++++++----------
 1 file changed, 28 insertions(+), 10 deletions(-)

--
Greg