[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH MULTISERIES] Optimize Xen 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 14:47:31 +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=5u9CWZHPbSyytk77SLNejKTR8RPMpdi60m2fRcbykBI=; b=RwWWwF5KSg5Xa1ooHr/64l9PdGaDcGHU/SBhC7UPvrSJ+aSuUXI/ez164cPCx+5KUmQhavIsL6urY9uXrd9gjh1Fe6neg4EPawRjdnElAq0F08KcwVTtywUX+d/slMU+x2WKIHIYkf/3WmWeILVD0GtUcCFfnMZK2EPMXGgd/2/9qixE4CCj8nz9HwoDmlOUqe/Tpr2umxCUX/WCUZ3drd7dxYkrfmYhZ1boPILT8v9P7YMTzXMu+GqPW8dpfGoVK9b2UnGtrzuSp/4+UIIoKkAfR1hnHInGSLIS407ym67cKRFq1gpc1yHC/dGnnjkoMPbxIneRS+BcX9xyIRWu0w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YOlyC3fvGvxbSnkWG663ffel2LvZwTBGozXXhH9F+d3vE+gN+Ct2RuO2cCNmrJlJ5V9smURFo2x4keYx3nV1/WqVc0DERA8T40Bx+QuuM0wicmQRTCSUWqdrwUFSviGxcrsNVNrvrc/A5fOY2g5Gg7kpAQpQE4cApbJ20lJTvioBmXntD34JhGk9rxWkFWcrGa8qptwWUIty+/bDUjHHHq2onqCwbbh5yL1RuLXFRyWMBT+foeF4k3SewPWj0SaFIvUr+HmVrT87BSJkOPxwMCdcfY6TY8gkI3uAB7F1fRzszpxEqodcM2W+QDl/5yV8ddaSYEZaPRE9AV9l0QWFog==
- 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 14:47:37 +0000
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
- Msip_labels:
- Thread-index: AQHc5rCPv+zIYIja00qaP9EWQqQkLrYXAZ6J
- Thread-topic: [PATCH MULTISERIES] Optimize Xen barriers
This series (xenbus, xencons, xennet, xenvbd, xenvkbd, xenvif)
Reviewed-by: Owen Smith <owen.smith@xxxxxxxxxx>
________________________________________
From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> on behalf of Tu
Dinh <ngoc-tu.dinh@xxxxxxxxxx>
Sent: 18 May 2026 11:24 AM
To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Cc: Tu Dinh
Subject: [PATCH MULTISERIES] Optimize Xen barriers
This series aims to optimize the use of memory barriers in all Windows
PV drivers.
Particularly, the following have been changed:
* x86 is TSO and only needs a compiler barrier as read/write barriers.
So the xen_* barriers in xen-types.h don't always need to be
KeMemoryBarrier (which is a full barrier using a locked instruction).
* Barriers right next to Interlocked* operations were deleted, as these
operations serve as implicit full barriers.
* Ring operations were converted acquire-release semantics instead of
full barriers.
* As a related change, LockThread tracking was conditioned to debug
builds.
--
Ngoc Tu Dinh | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|