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 0EDD7C55171 for ; Sat, 1 Aug 2026 00:18:07 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1379720.1624140 (Exim 4.92) (envelope-from ) id 1wpxQG-00013f-7C; Sat, 01 Aug 2026 00:17:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1379720.1624140; Sat, 01 Aug 2026 00:17:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wpxQG-000124-0h; Sat, 01 Aug 2026 00:17:52 +0000 Received: by outflank-mailman (input) for mailman id 1379720; Sat, 01 Aug 2026 00:17:50 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wpxQE-0000rq-2x for xen-devel@lists.xenproject.org; Sat, 01 Aug 2026 00:17:50 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wpxQD-00Firx-CP for xen-devel@lists.xenproject.org; Sat, 01 Aug 2026 02:17:49 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a6d3b0f-bab6-0a2a0a5309dd-0a2a4507c094-8 for ; Sat, 01 Aug 2026 02:17:44 +0200 Received: from [98.137.65.83] (helo=sonic313-20.consmr.mail.gq1.yahoo.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6a6d3b27-b4ea-0a2a45070019-6289415393ab-3 for ; Sat, 01 Aug 2026 02:17:44 +0200 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Sat, 1 Aug 2026 00:17:42 +0000 Received: by hermes--production-bf1-54b5569bdc-h5zdx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 655a093bcead2c5289eeab02aa189b76; Sat, 01 Aug 2026 00:17:38 +0000 (UTC) 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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=a2048 header.d=aol.com header.i="@aol.com" header.h="From:To:Cc:Subject:Date:References" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1785543462; bh=HIdr9C+lQ6Jo7WCNlxAtCo2E+oJ9NtzQ6wQnEjmdA0c=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=HJyFvByv/JaHrQ8YDyLQg80tGhOCl+wqOV2V/fp5Rp13BcrSKyY4seukQgb7gjr8GKUf2vOyfArtokuWAa9w3xBLT1o2klLyJ+ww0Hl2lk5cc1stBxr7t1XKYhBsiI4V2mV+Uax96Kyl4ilSS4gmWHZh258zNkPzd48vVypwoZr/WUSc+hHyUtpR1HskiqZJcQ2Zc70T4YVFGHuQGwG6i5xlIM9mXGvihloc/Jhf6ax+QYmLdyScDH1Q9dUPYH3h6ptGxvkQIl3dxJSmpHex0tOvrKrTDjnzlbzAwdF4WM3N+SUUMmrGR6HYZVbawRQ4/K86uCG1TBKaiIms8C3mjQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1785543462; bh=y3QEujPX9kE448RVtEETa7Ed9ZNYf7OrJSkBxZtAVNF=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=A1oMkOHopeoIOr1bQdvA/KSB64iT2kiPxX/YdvrXBQ2R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NnntMCntRu0TkH drqZw0yHNPGOP4uNGh8AIaoWypfA0tCe.ejSeK8GleGy7I5WEqX29OPsWRG2g3YHO9Pj40S4KHlN vZZAbkaT0D_kcfIHF2cS60lK2kZ4UUhr5efiKBw3TTSIA8or8fn7.OyI7JwmmSb8llc1SuSfhtJA kV5Glli_h69vrhDq2uaFzkZA.UNA6YP8o6781GfUStYSgH0XK.HgKV3AAMH_ntEMDW3H8sYXB2kW YcWj9LHGlrKd0UFgoY3ktHkXl0xOaHvpEvHmS_MlaeaHb1INzoqBQzI.obXpwnl0CqanjI86eb_k 2fM44zyewmB2U5BZUg617YFFJs70yWOc_jr_RFBPIH0IpPwQyeIhequLxFS7oa4qfoiGxmesdIrE 61Wx.Q74lD5vkJPJJwS1Rj4cC7B_QQkALde94XHiFmpK.pA-- X-Sonic-MF: X-Sonic-ID: 32995032-351f-4f3d-b1f3-2db34182d857 From: Chuck Zmudzinski To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Anthony PERARD , "Edgar E . Iglesias" , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Teddy Astie , Tomita Moeko Subject: [PATCH v4 0/6] xen/igd: fixes for Intel IGD passthrough Date: Fri, 31 Jul 2026 20:17:24 -0400 Message-ID: <20260801001737.16509-1-brchuckz@aol.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: <20260801001737.16509-1-brchuckz.ref@aol.com> X-purgate-ID: tlsNG-ef75cf/1785543464-A72DCAE4-5A5895D7/0/0 X-purgate-type: clean X-purgate-size: 4902 Please note that Patch 5 of this series also requires a patch to hvmloader of Xen for the new support to take effect that is available here: https://lore.kernel.org/qemu-devel/20260801000354.16446-1-brchuckz@aol.com/ This patch series aims to fix long-standing bugs that need to be backported to all currently supported stable versions in order to support passthrough of both older and modern Intel IGD devices to Xen HVM guests. Note that previous versions of this patch series only fixed the bugs affecting older devices and the patches needed for newer devices were not included, so this is the first version of this patch series that is suitable for use and testing with newer devices that, for example, are designed by the manufacturer to only work with UEFI firmware. These patches fix several bugs that cause problems ranging from a dark screen in the guest until the guest OS graphics are loaded to an assert failure or other failures in newer devices that in many cases prevent guest creation from succeeding or cause other problems such as code 43 errors in Windows guests. To test the the third patch and verify it fixes the bug of no video output from Seabios, it is necessary to test with older Intel IGD devices that have support for legacy VGA bios (Seabios) because the newer devices, as far as I can tell, are not compatible with legacy VGA BIOS. The first three patches have been tested using Xen 4.21 and Seabios 1.17 on Fedora 44 using an older Intel NUC7i5BNK with an i5-7260U processor and have been verified to fix the bugs described in the individual patches. This device is compatible with legacy VGA BIOS and Seabios. With the fourth through sixth patches applied, it is possible to use/test with newer devices since, with those patches applied, the bugs that prevent guest creation from succeeding with many newer devices are fixed. All six patches have been tested on both the older Intel NUC7i5BNK mentioned above and a newer 14th Gen i5-14500 Raptor Lake processor in an ASRock board that, as far as I can tell, is not compatible with legacy VGA BIOS and Seabios, which means that, although one can successfully create a guest with Seabios for the guest with the newer device, there will be no graphics output from the guest until the guest OS loads the graphics drivers when using the newer device with Seabios. The sixth patch is provided for use with newer devices that require an EFI graphics output protocol (GOP) driver for graphics output during early boot. For more details, read the commit message and the accompanying notes in Patch 6. Two hints to help configuring Xen HVM guests with Intel IGD passthrough: - Increase the value of mmio_hole from its default value of 256 to at least 512 using the mmio_hole setting in the guest config. The value of 512 works well when the stolen memory is 256 MiB. If more stolen memory is used, the mmio_hole may need to be increased even more. - If there are rdm conflicts, lower the rdm_mem_boundary setting in the guest config from its default value of 2048 to a value at which all rdm conflicts are resolved. I have discovered that lowering it in 128 MiB increments works well. With the older device I needed to lower it to 1792 and with the newer one I needed to lower it to 1664. See the description of the rdm_mem_boundary setting in the xl.cfg(5) man page for more details. Changes in v2: - close open files before setting errp - improvements to readability and style - small corrections to the commit messages - add stable to Cc list Changes in v3: - whitespace fix in first patch - fix Cc address for qemu-stable Changes in v4: - add three patches to provide support for newer Intel IGD devices - edit the commit messages for better consistency of style - use 12 digits instead of 7 when referencing commit hashes - re-write xen_pt_get_host_pch_info() in patch 1 using the functions declared in xen-host-pci-device.h - handle errors in patch 1 that in previous versions of that patch were not handled - add a Fixes tag to the third patch - add two hints in the cover letter to help those who are trying to configure Xen HVM guests with an Intel IGD passed through Chuck Zmudzinski (6): xen/igd: get PCH info from host sysfs xen/igd: don't register rom bar twice xen/igd: fixup device id before registering rom xen/igd: enable guest creation when ROM read fails xen/igd: implement support for extended VBT xen/igd: use custom option ROM if provided hw/xen/xen_pt.c | 13 +- hw/xen/xen_pt_graphics.c | 280 +++++++++++++++++++++++++++++++++++++-- hw/xen/xen_pt_load_rom.c | 64 ++++++--- include/hw/xen/xen_igd.h | 3 +- 4 files changed, 325 insertions(+), 35 deletions(-) -- 2.52.0