[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XENVBD PATCH 3/3] ring: Weaken and delete unnecessary barriers
- To: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Owen Smith <owen.smith@xxxxxxxxxx>
- Date: Wed, 20 May 2026 08:35:52 +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=tjpjZ0L9g4qRxYJ0RGtwwDvLE/IWxGCxzGBR2dCK8rs=; b=xqzyhytiXkEjxG3bYjDiZN3UMXy3rAdNFkOaYjq8O+hpw6j8ro2MVedy0qBs7a1WTg1FW6M6HKw6cy2ryfTh4HVgjWDF0Cvf9nXwj+EAUvMC8m7Hbq6maD0fFapWrfxDNDPhjMWTUnID02CB38vYa8nbUrPorSgHeZDhBV7g3Qclu4HDeeuHFPz0MlMuJAJVpA7ylh7KSPOvxICA1XXZwnplTDHTM8+fLb0ZHB3maI1VZ4GygH0VJBAf5LizlKOPbePz4sqonn6tstIGTROc8athfADbx6jxR7WmJ1mtOKg5ROKuhHCMkeKMA/6+MY+/wtgud5WSCPFLRMdW5CflBQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MCO4AhEo7QyCeVZNp3gM3rltSho3SUHQMinKcrOkRGOKkJ32JaGfii6SRXo8NANQ7LTt8tpKTSg9JGc37ihS4sIuBOr70Qs5pir7siHjZskIMir1USBICOV0P4snnhfeH6FmAk202fHIHQa32dj9R8oAO/MasC6OanyAO0wa6wcMdu9ef7eDd3Kfo7KFpeg0TFs5Z+tJ0aCkmHmIOAwUSWsgCU646+oJp1pSf+ks0ie37eF3b4RBb897Z00FE4c6QVJ8/h024/+NHvWCQ6vkearf4uCanBpMNeWVsU69QBoxf+HSp5BMoTMzJo7AUP09LGmm+XZv74gcTMvrTkbHfQ==
- 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: Wed, 20 May 2026 10:03:12 +0000
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
- Msip_labels:
- Thread-index: AQHc5rCzi+cjmgFw5kWi32C+9vSCMrYWmNMQ
- Thread-topic: [XENVBD PATCH 3/3] ring: Weaken and delete unnecessary barriers
While there is potentially a difference between xen_rmb() and xen_wmb() in
Linux, both
are defined as KeMemoryBarrierWithoutFence() in the Windows drivers.
Is it necessary to have both entries here?
I take it that using xen_mb() (i.e. KeMemoryBarrier()) is not required, and a
single
KeMemoryBarrierWithoutFence() should be sufficient
Owen
@@ -1260,7 +1260,8 @@ BlkifRingPoll(
Retry = TRUE;
}
- KeMemoryBarrier();
+ xen_rmb();
+ xen_wmb();
BlkifRing->Front.rsp_cons = rsp_cons;
BlkifRing->Shared->rsp_event = rsp_cons + 1;
|