From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D35F3606A31A for ; Wed, 2 Dec 2026 14:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=sYVdy5rL Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYlcA-0001xf-Lc; Wed, 02 Dec 2026 09:47:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYlbu-0001xK-U4 for qemu-devel@nongnu.org; Wed, 02 Dec 2026 09:47:07 -0500 Received: from mail-westus3azlp170100009.outbound.protection.outlook.com ([2a01:111:f403:c107::9] helo=PH7PR06CU001.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYlbs-0005nL-QC for qemu-devel@nongnu.org; Wed, 02 Dec 2026 09:47:06 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bw7z6B6cLaR/j9mXit/G0LCbYY+5UH19rAEQk/V2iaU7t3HB/GBEmvTum2XaUU7bpjGcGkU7uwJVigpecaFGyoV4o/J6NQZosczgIyrj2HQ21ys7savxFKLolbmQ5USL0X8khbGr0HtVD3FuARSZtL/XEttSoQjgl6naIOJr9Zg71vmOOJIjRYyzfMTN4xKKGokphd0x2/hhpBs1C+AHH6X03UDSZPva+mgzRELkXkYeZcMZfoRG482AQLJzYlspQ2sD5uIJ5q3tW3zAKc+7sLQcapoXQ7ynTXaXbcFloTVCBAlX0bmUbMf/LHpxwYQKtPsZn8HqlG/ANpdDWYOpTQ== 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=KCuAIzr1BkqIdKvLWjiyrsy3Z79syzX+3tJZrb41QQA=; b=OyRYWk6mRSu1sXtTPjj4J5BIZBF9QYwKFXNajnOCWgBwpze61ZOPIMHIAFhSjm4EXB6y8n10a8T+b53kpkdm0C0jri5H2GtjSRv0woPcObTvDaDVcDb7jdeR+Tsec+EpscI4rlNKfz63sE9dXz32zkYRDkzRCpWINIc0I0eWd5LBf1gah8NnGuD0hMu9xSO5sfkBnLSjOUb9hcagrpa8D0PFgQLO7nhwxue751fdc8/ds531CVMFg0Bxuqz0JhNaaqC4W43bxFLvl0OSeLi6lCYc8h9S6kB9eFOtHcCDRvBkyujOGRQOdkAZkWt6ZxLohY07m6gp8LH8ea9pP5YK2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=nongnu.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KCuAIzr1BkqIdKvLWjiyrsy3Z79syzX+3tJZrb41QQA=; b=sYVdy5rLjz1X2PO/xH7P4l55jLBA6KumQOLMvdDuKKPLgHhe/OWlL5wXyUoPv/MapS7BhInqib5W2RVZHjdaOZRPju3WNLcF+/Sdw3wKAMdO8WzoyUy0bLD2EcGBhPrUyYqBUgCs6ia4ZAA/HA9mIn7Yf1leKd7/tSMXypDYhlw= Received: from SJ0PR03CA0190.namprd03.prod.outlook.com (2603:10b6:a03:2ef::15) by SA1PR12MB7320.namprd12.prod.outlook.com (2603:10b6:806:2b7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Wed, 2 Dec 2026 14:46:55 +0000 Received: from MWH0EPF000A6734.namprd04.prod.outlook.com (2603:10b6:a03:2ef:cafe::5e) by SJ0PR03CA0190.outlook.office365.com (2603:10b6:a03:2ef::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.11 via Frontend Transport; Wed, 2 Dec 2026 14:46:55 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by MWH0EPF000A6734.mail.protection.outlook.com (10.167.249.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 14:46:54 +0000 Received: from BLRANKISONI.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 08:46:50 -0600 From: Ankit Soni To: CC: Alejandro Jimenez , Sairaj Kodilkar , "Michael S. Tsirkin" , Paolo Bonzini , Richard Henderson , Fabiano Rosas , Laurent Vivier , "Igor Mammedov" , Ani Sinha Subject: [PATCH v2 0/4] hw/i386: amd-iommu: add FCH stub at 00:14.0 Date: Wed, 2 Dec 2026 14:46:37 +0000 Message-ID: X-Mailer: git-send-email 2.43.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000A6734:EE_|SA1PR12MB7320:EE_ X-MS-Office365-Filtering-Correlation-Id: 99d67e47-01ef-409c-8457-08df50831c00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700016|376014|23010399003|1800799024|82310400026|10067099003|56012099006|261022105027099003|261021121427099003|261026140227099003|261028144727099003|261102123227099003|261009223027099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info: EHZWxYZQ2ImIVxeydt9u36OXDPN9a//Ba18xxoynn0rdIwmJL1aoNG814MwYas3jAK0UPJd2F+4CdBlnRhYO09GUVYf75vTZkTnKGTTS4tJoySXudfJXd14h0zuHxPNAWAgAUVh+YpvLsWXTG9qGC6uPyx3rJn93ze3b/jrCYyUaqJYsqGcBiFeTFnBsviyu1q0gLKdjaLfjwNvtmqwOAb6t1zik/7ku1OCv9//HCV+rnQ2d0QP4fT9aHj9qmxagKjRkIybXALZLERO1c+B0b4TRNVIeGEo0GFg4kV+OyRQBAkDmNDDpwPrWvoLlFgke1WLJPMBnp9QsGDGMJVDF7speX4IHJ8MjdduwE6e1jPLxd3kGZCEWfVUN55AsThNixdO5b2grkHfq867hslwyhFR1QqG+rWEZbLSYmiBIIpZPK/TKgkpKEVZroM5AH6aisLfajANS37NBFk4rVQxJS7gs2NflIwrwHWsE5A4tesfJmblnt10U54N24rUQp5FHK5tO8EATIAVVrZZfWTEE6QtglYcSymIjpxdN1uFvxE6dlvz1kEFZ1deM4ENgZzIO9Baoe0csnW5ydW0yIo5IMEZCGm9vR88+O1k2Y/BpjV8vEMNI6zP9Sd3PEYqgwb3EWN+XD9gKc3J2ljP5Sia1ctZ6jvzUBSrGMyphz69OiX0+jUQr9eM/pq0zeewvqNehi0fut0FOfdYfhv6/kCIe7A== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700016)(376014)(23010399003)(1800799024)(82310400026)(10067099003)(56012099006)(261022105027099003)(261021121427099003)(261026140227099003)(261028144727099003)(261102123227099003)(261009223027099003)(18002099003)(11063799006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eL9cpgBH38KH+HEHEhDWQz1iUYItcblVgUB98EzJZ3gs/cQkdXbiuynUErgjq7ZT9O0MsnRIuaBFriaAIKDMJKbbk5FAMl2oZwsFatPUPSKEzyW8VtWS85AeRUj1EdwqkmdVi5GeAYMxudEoU8zrdjtuP+N2U5ZU/ZrWBCTHhZK0q8tlZtIAU1P9BDJxiIQ3AQymBdisiHuevitycn2fLtifTVCyPE2VT4/WENz3/5O5DBvqWKuhrCfph79LiLXiUToM+X7SDind4QFfGDDw39EOpN1ibgMtefPnSv+8M2a503+pj0lGhoAHee9ec+UGuCI5EMrb+daPhn4Ftwia5b1J9b/a4lEqb3zx7ozQIAsD+tK1JFSHOETQmSfH0Gt4wiBVHhD6PLmgirxAJYG4P7plwMEsTRS7x8+Tpu/nkj7uqh4Sct7R0eAV5XhFjtCh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 14:46:54.9288 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99d67e47-01ef-409c-8457-08df50831c00 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000A6734.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7320 Received-SPF: pass client-ip=2a01:111:f403:c107::9; envelope-from=Ankit.Soni@amd.com; helo=PH7PR06CU001.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Linux AMD IOMMU interrupt remapping needs an FCH at the IVRS southbridge IOAPIC SID. q35 leaves 00:14.0 empty, so the guest class check fails and remapping stays off. This series puts an SMBus-class stub at 00:14.0 when amd-iommu is realized. ICH9 stays at 00:1f.x. If the stub is already at 00:14.0, it is reused. If another device occupies 00:14.0, realize fails. QEMU ACPI tests require the usual blob update steps: 1. whitelist DSDT.ivrs and IVRS.ivrs 2. FCH stub and vmstate 3. qtest for the stub 4. new expected blobs, empty whitelist The stub uses AMD FCH SMBus ids (1022:790b) so it looks like an FCH. Linux IOMMU only checks class. i2c-piix4 may still match the id and fail probe. That is dmesg noise, not a timer hang. Changes since v1: - Patch 2: reuse the FCH stub if one is already at 00:14.0, so a second amd-iommu no longer fails realize. Any other device at 00:14.0 still fails realize. - Rebased on current upstream master. Ankit Soni (4): tests/acpi: allow q35 IVRS DSDT/IVRS blob updates hw/i386: amd-iommu: add FCH stub at 00:14.0 tests/qtest: amd-iommu: test FCH stub at 00:14.0 tests/acpi: update q35 IVRS expected blobs hw/i386/amd_iommu.c | 65 ++++++++++++++++++++++++++++++ hw/i386/amd_iommu.h | 2 + tests/data/acpi/x86/q35/DSDT.ivrs | Bin 8445 -> 8462 bytes tests/data/acpi/x86/q35/IVRS.ivrs | Bin 176 -> 184 bytes tests/qtest/amd-iommu-test.c | 30 ++++++++++++++ 5 files changed, 97 insertions(+) base-commit: 3c061218fcf37a98c944ecb88cff56f94f5c0a43 -- 2.43.0