Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1D20107BCCC for ; Fri, 13 Mar 2026 16:47:14 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1254160.1550136 (Exim 4.92) (envelope-from ) id 1w15fF-0006hF-Lu; Fri, 13 Mar 2026 16:47:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1254160.1550136; Fri, 13 Mar 2026 16:47:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w15fF-0006h8-HJ; Fri, 13 Mar 2026 16:47:05 +0000 Received: by outflank-mailman (input) for mailman id 1254160; Fri, 13 Mar 2026 16:47:03 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w15fD-0006dJ-HC for xen-devel@lists.xenproject.org; Fri, 13 Mar 2026 16:47:03 +0000 Received: from mail134-15.atl141.mandrillapp.com (mail134-15.atl141.mandrillapp.com [198.2.134.15]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 3f69439c-1efc-11f1-9ccf-f158ae23cfc8; Fri, 13 Mar 2026 17:46:57 +0100 (CET) Received: from pmta10.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail134-15.atl141.mandrillapp.com (Mailchimp) with ESMTP id 4fXVkm1XQTzPm0PqM for ; Fri, 13 Mar 2026 16:46:56 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id f694fcadf41d4c61a465fb8a145c2819; Fri, 13 Mar 2026 16:46:56 +0000 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: 3f69439c-1efc-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1773420416; x=1773690416; bh=YVESgmaHRMpbf7+5tHUgQMMGFPJarDui+ShzAbAzOzM=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=BRC6lsby6gFZ4a8xXvpuYAQHzKvFgNyR/cjJzmjMCocAY17z7n/pqkzpbWmzeY7iT JQKEhIjHDRGLwYUMnVSHlk7Gm9Nu8GE8T7i3M7iRr/1Y2y9jPteuYJizawLBvsvIy2 94sMvbB47GELxFL4nGVBpn4KP8gi8lISSlYVIq1JmSr9nYbXVL3RaeY68HR0D5SUH0 OPM9Kz74oU4FPAtNlpIlt/zmeGZ/b7FoJ2XmwKAYs3YqJcOPLTfiHHBkMoVM06r953 K67YUEG6ACoDpWQ3NhWX8yTgmDIFOEpZ6YkZscJQxyNf9kRko4STGTmKUZy6juUkOo eaWZuGbJcY3rQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1773420416; x=1773680916; i=thierry.escande@vates.tech; bh=YVESgmaHRMpbf7+5tHUgQMMGFPJarDui+ShzAbAzOzM=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=IujO/Oye3h8RZR2kw8gwBbwpAYTcodSvj/J5aHf1R0naDYFbLmt+VMbYd+yCen+Nm Xq5QSQwlX9N5U/ubQi+weCDmXgjxBuBHTUv1XE3WsmOe1p8K//Kh+D2Nj0bmuI8LDm zaTIfaqNoKp3GoH+/lW0huJ4x41G4ZeuHDr/2YViOlhIxM0VfOC8goH6BKrgtFtlsA z1tFxMXWTTgYsLQlTNxOaRmxs5nuA9hGxkv5u16HIgLg6dF4MDpKfyzwU5mjP2a1zl DXeXJYX9dDswCum7OJWDn2zw/nk3YsI9BiKudTYoi7YvMu9Vf2JJeiPL9mzgHFaS5O xP4Sjruv0JKWQ== From: "Thierry Escande" Subject: =?utf-8?Q?[PATCH=200/4]=20Xen:=20Add=20Q35=20initial=20support=20for=20HVM=20guests?= X-Mailer: git-send-email 2.51.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1773420415146 To: qemu-devel@nongnu.org Cc: "Thierry Escande" , "Paolo Bonzini" , "Richard Henderson" , "Michael S. Tsirkin" , "Eduardo Habkost" , "Anthony PERARD" , xen-devel@lists.xenproject.org Message-Id: <20260313164649.794591-1-thierry.escande@vates.tech> 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.f694fcadf41d4c61a465fb8a145c2819?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20260313:md Date: Fri, 13 Mar 2026 16:46:56 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit This patch series introduces Q35 chipset support for Xen HVM guests. This is based on the work from Alexey Gerasimenko (See patchset [1] for reference). This series does not implement device passthrough as this will need more work on the Xen side to support multiple PCI buses. Since Q35 chipset does not support device hotplugging and with current Xen mechanism for device passthrough, they have to be plugged to a new PCIe root port, i.e. not the PCI bus 0. As a first step for Q35 guests support, this series implements: - Legacy interrupt routing for the ICH9 LPC bridge (i.e. not IOAPIC) - Xen HVM machine initialization in pc_q35_init() - Access to PCIe Extended Config Space - Fix for incorrect values and usage for PCIEXBAR masks The corresponding patchset for the Xen Project has been posted at [2]. [1] https://lore.kernel.org/xen-devel/cover.1520867740.git.x1917x@gmail.com/ [2] https://lore.kernel.org/xen-devel/20260313163455.790692-1-thierry.escande@vates.tech/ Alexey Gerasimenko (2): pc/xen: Xen Q35 support: provide IRQ handling for PCI devices q35: Fix incorrect values for PCIEXBAR masks Thierry Escande (2): q35/xen: Add Xen support for Q35 xen: Handle PCIe config space size in cpu_ioreq_config() hw/i386/pc_piix.c | 2 -- hw/i386/pc_q35.c | 12 +++++++++++- hw/i386/xen/xen-hvm.c | 38 ++++++++++++++++++++++++++++++++++++++ hw/isa/lpc_ich9.c | 16 +++++++++++++--- hw/pci-host/q35.c | 6 +++--- hw/xen/xen-hvm-common.c | 11 +++++++---- include/hw/pci-host/q35.h | 4 ++-- include/hw/xen/xen.h | 5 +++++ stubs/xen-hw-stub.c | 4 ++++ 9 files changed, 83 insertions(+), 15 deletions(-) -- 2.51.0 -- Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech