From nobody Thu Oct 30 16:38:13 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1761210761; cv=none; d=zohomail.com; s=zohoarc; b=YB+tXHOPC3FlIyMVvXKWYcEtqVoOwxfX9WNHWM4ivMphZ9rtEp/mE3jLDfe0H5p8YPRCp0cyc0qkERh1aTZIj3Yh+82O0NDa/4FZQilr8bGnIjCCEWLfsHz05B1vb0fKuZlVJTc0eSFj3360TIULwkNzMmIqdraeMZn6WtjwXTQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761210761; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dmYymRXdQlvyIjJOCaPFoHAY8shqwbUzyg9v7qIutBA=; b=hUPR4XXr8BFb5efLVWzukpPAjTK9YhT2BRNT8dTHoa9qH5Siw9zqIrPvmSmq52EKvg/cwCpPDaCV7qyEr31WPowLjwxll1GSp16kuyQlXajgj9/HpsPbH9y6sYrc/iRbJAQRcrXUvD08BhVNX+npi+M5j1ZVFyx36NyfoohdLs8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1761210761471798.9633583695171; Thu, 23 Oct 2025 02:12:41 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1148836.1480687 (Exim 4.92) (envelope-from ) id 1vBrMs-0003zh-TZ; Thu, 23 Oct 2025 09:12:22 +0000 Received: by outflank-mailman (output) from mailman id 1148836.1480687; Thu, 23 Oct 2025 09:12:22 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vBrMs-0003za-OS; Thu, 23 Oct 2025 09:12:22 +0000 Received: by outflank-mailman (input) for mailman id 1148836; Thu, 23 Oct 2025 09:12:21 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vBrMr-0003Xf-33 for xen-devel@lists.xenproject.org; Thu, 23 Oct 2025 09:12:21 +0000 Received: from mail180-10.suw31.mandrillapp.com (mail180-10.suw31.mandrillapp.com [198.2.180.10]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 607b37cf-aff0-11f0-9d15-b5c5bf9af7f9; Thu, 23 Oct 2025 11:12:20 +0200 (CEST) Received: from pmta11.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail180-10.suw31.mandrillapp.com (Mailchimp) with ESMTP id 4csgKH1Plkz5QlgsB for ; Thu, 23 Oct 2025 09:12:19 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 291a88186bbd414a9eb5fb1b639043c2; Thu, 23 Oct 2025 09:12:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 607b37cf-aff0-11f0-9d15-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1761210739; x=1761480739; bh=dmYymRXdQlvyIjJOCaPFoHAY8shqwbUzyg9v7qIutBA=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=mPV/TU44iBbaoJW9BLPOGhcaSkRH05kyrPRkqHQ/82/ErTSdxQuUyEIOgSP8HCNk+ kvaLv6TyHpBjHS+cydUhkM97oemt9CEZXiSd92vgN5ShuYgv/G/KGX7c+SVPcQE4YP jMEG9wir9j0+HWbfjXGudhRnOe//ow3TTTULBdzMfjXYWC4vI1OJOzkXM/eJpw9xPJ Kv3r1tNZXuWH09kwamV9lihaJOaSP2DfPUMB/Ay/MncSEK0nM2aM0z20OY5RK287KA o8adwnerk1/GlHv5EN4XC15g74J1rnm3XFwkDVr5XypLuQ2u8P4gbuos/9J20ikUjj 4M5vpq+ISWfoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1761210739; x=1761471239; i=teddy.astie@vates.tech; bh=dmYymRXdQlvyIjJOCaPFoHAY8shqwbUzyg9v7qIutBA=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=qqtzB1pAwuJg6H7CmJzuWQmt7vGlU7MBHGZ7zYXpKgH+wr+CPSW2jJf6WGrjRgaSY z4wZSYd4nC6ViBCqcB62n2S0+LVqnB+qdZwcH+CAUdMb/7ens2vTb7GUAbwrTrN7XB JXQ8jaAlZUKbQjJ2dhK3Z5wfepMm+IcvUFrP43MEX8v9B4Ck84xe8uwdayb8o8o/6Z meuo0a0Aqxo+c/C1pc+iuh78yAeJd7khtvZPeMi9UuKMUTT1mvonewkuNKf7kiTpI8 Jgwdobq0KSZJOCxZTUoyjrsiq4iqggpJkEZ4KOEATrwI+8MmLUCFGy/R4tpZOvzGC4 bIMZIvN1cTSNA== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH=20v2=203/5]=20vtd:=20Collapse=20x86=20subdirectory?= X-Mailer: git-send-email 2.51.1 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1761210736930 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" Message-Id: <3e9e5ea80bb534b69bd315099da6b5d049852823.1761209564.git.teddy.astie@vates.tech> In-Reply-To: References: X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.291a88186bbd414a9eb5fb1b639043c2?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20251023:md Date: Thu, 23 Oct 2025 09:12:19 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity teddy.astie@vates.tech) X-ZM-MESSAGEID: 1761210763205154100 Content-Type: text/plain; charset="utf-8" The x86 subdirectory was originally meant to split x86-specific logic from general VT-d code. Today, Xen only supports VT-d on x86 and the code actual= ly implemented in this subdirectory isn't x86-specific (e.g ATS code is not x86 specific). As ats.c is the only remaining file in this directory, and isn't x86 specif= ic, move it up to vtd directory and remove the now empty x86 subdirectory. Signed-off-by: Teddy Astie --- v2: - reviewed commit description xen/drivers/passthrough/vtd/Makefile | 3 +-- xen/drivers/passthrough/vtd/{x86 =3D> }/ats.c | 10 +++++----- xen/drivers/passthrough/vtd/x86/Makefile | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) rename xen/drivers/passthrough/vtd/{x86 =3D> }/ats.c (97%) delete mode 100644 xen/drivers/passthrough/vtd/x86/Makefile diff --git a/xen/drivers/passthrough/vtd/Makefile b/xen/drivers/passthrough= /vtd/Makefile index fde7555fac..328a014016 100644 --- a/xen/drivers/passthrough/vtd/Makefile +++ b/xen/drivers/passthrough/vtd/Makefile @@ -1,5 +1,4 @@ -obj-$(CONFIG_X86) +=3D x86/ - +obj-y +=3D ats.o obj-y +=3D iommu.o obj-y +=3D dmar.o obj-y +=3D utils.o diff --git a/xen/drivers/passthrough/vtd/x86/ats.c b/xen/drivers/passthroug= h/vtd/ats.c similarity index 97% rename from xen/drivers/passthrough/vtd/x86/ats.c rename to xen/drivers/passthrough/vtd/ats.c index fed3588e8e..3b7c4028a6 100644 --- a/xen/drivers/passthrough/vtd/x86/ats.c +++ b/xen/drivers/passthrough/vtd/ats.c @@ -23,11 +23,11 @@ #include #include #include -#include "../iommu.h" -#include "../dmar.h" -#include "../vtd.h" -#include "../extern.h" -#include "../../ats.h" +#include "iommu.h" +#include "dmar.h" +#include "vtd.h" +#include "extern.h" +#include "../ats.h" =20 static LIST_HEAD(ats_dev_drhd_units); =20 diff --git a/xen/drivers/passthrough/vtd/x86/Makefile b/xen/drivers/passthr= ough/vtd/x86/Makefile deleted file mode 100644 index 82b3904a91..0000000000 --- a/xen/drivers/passthrough/vtd/x86/Makefile +++ /dev/null @@ -1 +0,0 @@ -obj-y +=3D ats.o \ No newline at end of file --=20 2.51.1 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech