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

Re: [PATCH 1/2] Revert 4e080f819b55 "Skip hash update if front...


  • To: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Tue, 21 Oct 2025 12:52:34 +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=JKrRtJl6UY2i4QRyGN4ogPYVLx7UNuzslqOY5W/rG+c=; b=t/pE4D+dXzRFFot+2SGT/NhWBhO/T/r069KXfe8m9IOTn4H/s8Yb1lvRq0rfbFl5YAqVB32T0Anld3rp+8pQcVX3/tgnAggJsSFOleZEMrhv/+kj+k3ZbknQCb66tWS3s64I/psSn5x2/B1bgM6pS23K9eb8v0UhspO2EmTFIoxRhCA3Ym0zoun7BdzeDP0C868tXkp7nroJMuTkswhXRyUJ6pvp+deTJj4XdhAuo+zOKQQPrSXqkLOdYORAV10jKMsythsuKjoGa9L/cDj6/yo6rn1MY54e5ghFDAEQeL3o67k6C1gI3RDM/yH1M3YMtLFCuvnZzslYIfdWUGwVYw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s1MSs9WSjLP00HrfhtSbATd+aSzD5nrJvPcahsmjmhJxuGf4aSdTl1TjXVnt2MwfiAnKTQEFPlvQPVkG9aXUegow6d9bu0LrQonMew8sdo9Shrj1d33Hb1Xd3wbiIK/lRaeyk/nmMdjWkH8bBDuUUFJYUkKGzi81TFjmCJI/nglFpMu4/y4wBwhj6Wgkt3HtwGoHD38b88gDJAcXydJ3Id4LEDkYBs4sVOlU5CDYPdzxnMVtmTX4tnNzwiKZJJKZmV+OeXk4o6zXxrrjH2G/J8Ld9aEqWAejmuCwpQ/FKk256vpTd5Dz0Ex5vLcH8EYPwA7NSQFndhyLCT54qmFd1w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Delivery-date: Tue, 21 Oct 2025 12:52:43 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Msip_labels:
  • Thread-index: AQHcPoXvUz2bITOtfkq6myQT0F7c+bTMkrnK
  • Thread-topic: [PATCH 1/2] Revert 4e080f819b55 "Skip hash update if front...

There probably needs to be a check that the controller ring is connected 
properly, which is when ControllerEnable is called after ControllerStoreWrite.
Currently, ControllerPutRequest checks for Controller->Connected - but this is 
set before ControllerStoreWrite, so its not guaranteed that the ring is 
connected (its a pretty tight race though)

As a revert patch - this is good, there probably should be another patch to add 
this check

Owen

________________________________________
From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> on behalf of Tu 
Dinh <ngoc-tu.dinh@xxxxxxxxxx>
Sent: 16 October 2025 11:16 AM
To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Cc: Tu Dinh
Subject: [PATCH 1/2] Revert 4e080f819b55 "Skip hash update if front...

...end is not enabled"

NDIS queries the supported hash types before the frontend is enabled.
Controller requests are not dependent on the frontend being enabled to
begin with.

Allow such requests to go through.
---
 src/xenvif/frontend.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c
index f844a42..5311dea 100644
--- a/src/xenvif/frontend.c
+++ b/src/xenvif/frontend.c
@@ -1910,9 +1910,6 @@ __FrontendUpdateHash(
     ULONG                   Flags;
     NTSTATUS                status;

-    if (Frontend->State != FRONTEND_ENABLED)
-        goto done;
-
     Controller = __FrontendGetController(Frontend);

     switch (Hash->Algorithm) {
--
2.51.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®.