[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/5] Rundown MRSW lock and device removal fixes


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Tu Dinh" <ngoc-tu.dinh@xxxxxxxxxx>
  • Date: Thu, 16 Apr 2026 11:09:59 +0000
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=mte1 header.d=mandrillapp.com header.i="@mandrillapp.com" header.h="From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding"; dkim=pass header.s=mte1 header.d=vates.tech header.i="ngoc-tu.dinh@xxxxxxxxxx" header.h="From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding"
  • Cc: "Tu Dinh" <ngoc-tu.dinh@xxxxxxxxxx>, "Owen Smith" <owen.smith@xxxxxxxxxx>
  • Delivery-date: Thu, 16 Apr 2026 11:10:04 +0000
  • Feedback-id: 30504962:30504962.20260416:md
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Patches 1 and 2 are fixes for various lockups encountered during
surprise removal.

Patch 3 is an annotation prerequisite for Patch 4, which replaces the
current MRSW lock with a simpler one.

Patch 5 is only for debugging purposes.

To be used together with matching Xennet surprise removal patches.

Tu Dinh (5):
  Check Fragment->Entry before calling RevokeForeignAccess
  Watch BACKEND/state key for eject status
  Update IRQL annotations
  Implement rundown-based MRSW lock
  Trace worker thread wake events

 src/xenvif/controller.c  |   5 +-
 src/xenvif/fdo.c         |   6 +-
 src/xenvif/frontend.c    |  36 +--
 src/xenvif/frontend.h    |  18 +-
 src/xenvif/mrsw.h        | 530 ++++++++++++++++++++++-----------------
 src/xenvif/receiver.c    |  24 +-
 src/xenvif/receiver.h    |  14 +-
 src/xenvif/transmitter.c |  25 +-
 src/xenvif/transmitter.h |   6 +-
 src/xenvif/vif.c         |  73 +++---
 10 files changed, 409 insertions(+), 328 deletions(-)

--
2.53.0.windows.2


--
Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.