[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/5] Rundown MRSW lock and device removal fixes
- To: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Owen Smith <owen.smith@xxxxxxxxxx>
- Date: Fri, 17 Apr 2026 12:45:25 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZL1smkQLGPZBvTxCdApwQdzhsOX2LbatVeBPi8DUPuI=; b=gj/kyh1e+AbJRWVBkYcZdClyI5dS6FpszuM8fJsuNVcVuh7aMCFMQBjh4aBkP2jLo0IxMHNhC44SZmsdJUglitwHiAzQsXffXuOJZFOjNoTDimh1qYNA0Rf3pTAw2yAZd8iEWR63/1G7UW/B8Gx7NZPARrx0uEmuUQztVQjAY0I5TsMR9o9QYMJVcYUBulliQuLRr24NQJMGSdc9mJ0nN8ATNpbtV9olzJQwaCN2nAhWr4IkeNI5dM+32aI8WKMcMSpeSSxQ5J78agrfEsQLYnfkwvbcDDHNnZkg5yQ+y8dPxwJiHkcPYBlmoXKX2TaPSDCCorf5dBF7Lv9Nt4xpVA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AexgZ6/66hb4K0tOxF2sAIxYDEkwMWA9unBG9hLclEQrWJEL7uqm0Ruc4l+nYmOJWCyuHnWWKCutolFPsCPzrMoH5ES69LVWge1MIBYE5On7IShw0gvWmsKqE0rVEnrAUkRBo8sH5ueEbSsid7x4u/EN4+oZW5zy63ieALgoPOP1xNapDzHkNTq+w5qBAZskBmJzSwkTB3qJ/OJJ08au+ldtqDFU7JauKSyxPBDeykBr82AmRmgbxjayZCpND1uwogjzBJV+cfND5HMtuXFKMZT3mWqLI5KbIgboX12mEMpxq1fx25z8k3t+UbOHzvqtShtpb8rPRO5S6AM43qYmKA==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Delivery-date: Fri, 17 Apr 2026 12:45:34 +0000
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
- Msip_labels:
- Thread-index: AQHczZGYvU3wfsQTrUCw9JvrcGGgX7XjMZVX
- Thread-topic: [PATCH 0/5] Rundown MRSW lock and device removal fixes
Do these changes work without the matching xennet changes?
Do the xennet changes work without these changes?
(i.e. is it safe to apply these without the xennet patches or the xennet patches
without these patches?)
Owen
________________________________________
From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> on behalf of Tu
Dinh <ngoc-tu.dinh@xxxxxxxxxx>
Sent: 16 April 2026 12:09 PM
To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Cc: Tu Dinh; Owen Smith
Subject: [PATCH 0/5] Rundown MRSW lock and device removal fixes
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
|