From nobody Thu Oct 30 16:37:39 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=1761210762; cv=none; d=zohomail.com; s=zohoarc; b=HhesT3wbpjNaqZNPXttM2bYYbmxuF/Q8f7D3Qrfz9JHO9FmmuayWpbU8rfsLNsYN8C70a0/1U4GlBfV7V0OhGx0PJUqXIG68A57MLm8aIW6KVZ1J+M1OkIOmKMI50Ytn3t5IZiwY57nY2u0tDltr1HDV6vnXQHD67/4fkJaSCvI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761210762; 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=uphiyDgxiUqnnF1yei7nNrbThGF81zpHRyjV+sbeQH0=; b=lqzG4RB2/6E+fTiWCXlTaM835Q48VtdcCsmSYpm4nw8CXcCEVoCcRmxfK0HWpmTrAX8MngKir2QFLeWmiRgJIii32EANj4eVetw698Q1SLOtBgC9E8bgx7mEfYTGU/JYhbyv7EL/oISy98g5CYTf2rqeAAWaJWc1cxd2mYfUkMQ= 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 1761210762749378.9104344134804; Thu, 23 Oct 2025 02:12:42 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1148835.1480675 (Exim 4.92) (envelope-from ) id 1vBrMr-0003li-Id; Thu, 23 Oct 2025 09:12:21 +0000 Received: by outflank-mailman (output) from mailman id 1148835.1480675; Thu, 23 Oct 2025 09:12:21 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vBrMr-0003lb-G4; Thu, 23 Oct 2025 09:12:21 +0000 Received: by outflank-mailman (input) for mailman id 1148835; Thu, 23 Oct 2025 09:12:20 +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 1vBrMq-0003Xf-2j for xen-devel@lists.xenproject.org; Thu, 23 Oct 2025 09:12:20 +0000 Received: from mail187-3.suw11.mandrillapp.com (mail187-3.suw11.mandrillapp.com [198.2.187.3]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 5f96bea7-aff0-11f0-9d15-b5c5bf9af7f9; Thu, 23 Oct 2025 11:12:18 +0200 (CEST) Received: from pmta09.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail187-3.suw11.mandrillapp.com (Mailchimp) with ESMTP id 4csgKF26CBzDRJG7p for ; Thu, 23 Oct 2025 09:12:17 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id b988a4c6efea49f589ce491a220c8f88; Thu, 23 Oct 2025 09:12:17 +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: 5f96bea7-aff0-11f0-9d15-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1761210737; x=1761480737; bh=uphiyDgxiUqnnF1yei7nNrbThGF81zpHRyjV+sbeQH0=; 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=QnSxTE3OKLeQDJbkzIV7kdgNdgXZg54/VynYOdUFWCuHEUT2KqvD1kug2IvBpPh/t VXReO9Pqn1sao8S+ueo9Sp5CDfzqppk4lbE6/8Lc7lZ7A+SD83BUCZaI5bAHln8hO5 SriND52KSTs8QXudeI/DeUvecfqeA/Rvv4XuEMZTbZGCvQFCaFwB5ZnLuxImV39m86 eLSlKErCI7Pm6qKQe9wA4li2p1TXA6bHhIyKxii5azknQ5SH8xoAc2Y+jfFG9aJ44k 2V6fN//hxvcBJWJxfDkPyUF5+9Hgqf3qEImwPlXnCvqmBl1fGv+0hl7krE+yI8Wgrd uWrI5Sou13xeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1761210737; x=1761471237; i=teddy.astie@vates.tech; bh=uphiyDgxiUqnnF1yei7nNrbThGF81zpHRyjV+sbeQH0=; 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=cpNgC0oSI+AP8aIrLNViiUoXeCT09aeoGpowyV+lQo0pbmBzLQVQcgFMtKqqW11ho 1IpYDwc3td+YN/GOGCl03OHd1tC6T1mvtnRc2f7uitFoXQtAXh7YqWxa3dJkxEMSLj 2RP1AHxMQ3iir0EDC2V2peAI/CFHwdgw6tryf5sv0kAUBfLHOxG9JqPEWBZC4Rt77j 5sPDjgg1AXW83HXesizhT2ij2l1Oo4vOL3CG99aA50CJ0LDUdoyxNMIpBUHXZOSOma vhcWeAIMq0fO7eoz9FXTmxC4ltnjYhyp6tA9bphameei2kaHK6T1tqywluD1i5D4dF vqgjocnUrFE3w== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH=20v2=202/5]=20vtd:=20Drop=20"iommu=5Finclusive=5Fmapping"=20command-line=20option?= 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: 1761210736644 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" Message-Id: 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.b988a4c6efea49f589ce491a220c8f88?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20251023:md Date: Thu, 23 Oct 2025 09:12:17 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity teddy.astie@vates.tech) (identity @mandrillapp.com) X-ZM-MESSAGEID: 1761210764558154100 Content-Type: text/plain; charset="utf-8" This command-line option is deprecated and super-seeded with dom0-iommu=3Dmap-inclusive. Drop this command-line parameter and delete vtd/x86/vtd.c which is now empty. Signed-off-by: Teddy Astie --- v2: - new CHANGELOG.md | 2 ++ docs/misc/xen-command-line.pandoc | 6 ---- xen/drivers/passthrough/vtd/x86/Makefile | 3 +- xen/drivers/passthrough/vtd/x86/vtd.c | 38 ------------------------ 4 files changed, 3 insertions(+), 46 deletions(-) delete mode 100644 xen/drivers/passthrough/vtd/x86/vtd.c diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cf9ad2d95..d4a22b8f8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,8 @@ The format is based on [Keep a Changelog](https://keepach= angelog.com/en/1.0.0/) - On x86: - GNTTABOP_cache_flush: it's unused on x86 and the implementation is broken. + - Intel-specific iommu_inclusive_mapping=3D option: super-seed= ed + by dom0-iommu=3Dmap-inclusive since Xen 4.16. =20 - Support of qemu-traditional has been removed. =20 diff --git a/docs/misc/xen-command-line.pandoc b/docs/misc/xen-command-line= .pandoc index 28a98321c7..0af71e289a 100644 --- a/docs/misc/xen-command-line.pandoc +++ b/docs/misc/xen-command-line.pandoc @@ -1691,12 +1691,6 @@ Specify the timeout of the device IOTLB invalidation= in milliseconds. By default, the timeout is 1000 ms. When you see error 'Queue invalidate wait descriptor timed out', try increasing this value. =20 -### iommu_inclusive_mapping -> `=3D ` - -**WARNING: This command line option is deprecated, and superseded by -_dom0-iommu=3Dmap-inclusive_ - using both options in combination is undefi= ned.** - ### irq-max-guests (x86) > `=3D ` =20 diff --git a/xen/drivers/passthrough/vtd/x86/Makefile b/xen/drivers/passthr= ough/vtd/x86/Makefile index fe20a0b019..82b3904a91 100644 --- a/xen/drivers/passthrough/vtd/x86/Makefile +++ b/xen/drivers/passthrough/vtd/x86/Makefile @@ -1,2 +1 @@ -obj-y +=3D ats.o -obj-y +=3D vtd.o +obj-y +=3D ats.o \ No newline at end of file diff --git a/xen/drivers/passthrough/vtd/x86/vtd.c b/xen/drivers/passthroug= h/vtd/x86/vtd.c deleted file mode 100644 index b0798dc6a1..0000000000 --- a/xen/drivers/passthrough/vtd/x86/vtd.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2008, Intel Corporation. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License f= or - * more details. - * - * You should have received a copy of the GNU General Public License along= with - * this program; If not, see . - * - * Copyright (C) Allen Kay - * Copyright (C) Weidong Han - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "../iommu.h" -#include "../dmar.h" -#include "../vtd.h" -#include "../extern.h" - -/* - * iommu_inclusive_mapping: when set, all memory below 4GB is included in = dom0 - * 1:1 iommu mappings except xen and unusable regions. - */ -boolean_param("iommu_inclusive_mapping", iommu_hwdom_inclusive); --=20 2.51.1 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech