[PATCH v2 RESEND] xen: Fix SEGV on domain disconnect

2023-04-20 Thread mark . syms--- via
From: Mark Syms Ensure the PV ring is drained on disconnect. Also ensure all pending AIO is complete, otherwise AIO tries to complete into a mapping of the ring which has been torn down. Signed-off-by: Mark Syms --- CC: Stefano Stabellini CC: Anthony Perard CC: Paul Durrant CC: xen-de...@lis

[PATCH 0/1] Updated: Ensure PV ring is drained on disconenct

2023-04-20 Thread Mark Syms via
Updated patch to address intermittent SIGSEGV on domain disconnect/shutdown. Mark Syms (1): Ensure the PV ring is drained on disconnect hw/block/dataplane/xen-block.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) -- 2.40.0 >From 21724baa15a72534d98aa

Ensure the PV ring is drained on disconnect

2023-03-29 Thread Mark Syms via
If the Xen PV guest VM sends a close whilst there is outstanding I/O being processed that IO needs to be completed and drained before unrealizing the rings or SEGVs will occurr when the I/O does complete and tries to update an already unmapped grant entry.

[PATCH] Ensure the PV ring is drained on disconnect

2023-03-29 Thread Mark Syms via
Also ensure all pending AIO is complete. Signed-off-by: Mark Syms --- hw/block/dataplane/xen-block.c | 16 1 file changed, 16 insertions(+) diff --git a/hw/block/dataplane/xen-block.c b/hw/block/dataplane/xen-block.c index 734da42ea7..067f8e2f45 100644 --- a/hw/block/dataplane/