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 9A4BDC5DF81 for ; Wed, 19 Aug 2026 17:14:14 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1395707.1633982 (Exim 4.92) (envelope-from ) id 1wwjrM-00076B-1b; Wed, 19 Aug 2026 17:13:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1395707.1633982; Wed, 19 Aug 2026 17:13: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 1wwjrL-000764-UX; Wed, 19 Aug 2026 17:13:51 +0000 Received: by outflank-mailman (input) for mailman id 1395707; Wed, 19 Aug 2026 17:13:50 +0000 Received: from mx.expurgate.net ([194.145.224.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wwjrK-00075y-F4 for xen-devel@lists.xenproject.org; Wed, 19 Aug 2026 17:13:50 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wwjrJ-00Cm3g-Oq for xen-devel@lists.xenproject.org; Wed, 19 Aug 2026 19:13:49 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a85e426-2eae-0a2a0a5409dd-0a2a450782bc-46 for ; Wed, 19 Aug 2026 19:13:49 +0200 Received: from [98.137.68.31] (helo=sonic308-55.consmr.mail.gq1.yahoo.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6a85e44b-b4ea-0a2a45070019-6289441fb108-3 for ; Wed, 19 Aug 2026 19:13:49 +0200 Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Wed, 19 Aug 2026 17:13:47 +0000 Received: by hermes--production-bf1-54b5569bdc-t2h4f (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 742b15b49534c807090a38b8b6396e9e; Wed, 19 Aug 2026 17:13:45 +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="Date:Subject:To:Cc:References:From:In-Reply-To" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1787159627; bh=BanAkv7rgc8Cm9c0aFLe97SGo72w3NkF9rLVAthNeQQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=HsM/Au0jM8VK870ek+t9k8ep3KXLMNzFohuKoFKvsmRYQiJCqd1ffRRWrncFnhlOUf4c1RwYb2itcnEfvQHv1CWn2zDOaLSjRwGVwjMD650PUwRM/PLvU2lXkIjraM3e6eVXzA32KODVDHmNNU1cXxA9ERatgzFppxkk1xiiaYkNivp1omXHQmXNByZVOGHsPkU6B85xUZ9STMWZkhwV2uU7X+zkIyjXimAuH546EMWctkyWDXcYgn2DqiBIV/LLkn/af/yXz+y3NEaEcZWdvd1c9m3B5FKiklo/HpdygN3zN0c1y/B6O9S3rx/LcRqcf0jz7j8X6bKAfLC5+FZmWw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1787159627; bh=bOQF6M36pSZCahM7VdwAAR/NtnEHpJ7B+U55I/q8XeI=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=NEM5pY58Myc/T9ZHXKD+bCoPyy+KANjAW+dTokG6rrm6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EXgFZLk.SYixbOUKmdcsjMSttTnhscWU4hICMOU zZ2.GrxVBJvdmY9uXGfhSF4jSL9RJjvasM5PAf7Zfm2G2WilzsifsDDHTGwMrA7rfWfQfj6FUkCA wOHE.Ivmpy5BykTKexO_h7JcM3ypWNJAA5e5YvK.vZXwYpwQwonGGjIJR.BtMvh7S3SbOmu40oqG dkeMJ.0Oq5L_.UW5_uMxCB6HXyycf5XZ6kVpRbdyARZ5btFtpw4mLe32RSn63zDQJr5ainQ.lIyF AHKHQaAI4bbMh3lmkNvzBY7xUzcWPPcfHijHpwbs2y28SPxCqG0yK8FVsg40HfBMdA7.HYsy9ria p7Rtqp17YdFWQWcub5KsJfi_ycoiCh2p4iIyk3YKhU_6GVVwMYNm5MK5MQHiyHd3Qh56PuWaKNox PVK7znSjMBroqX79WmjeeW7bsBiVslHKN2yAhR6ZlQtix X-Sonic-MF: X-Sonic-ID: 7905f90b-7e4e-497a-aa21-e5becffaebf2 Message-ID: Date: Wed, 19 Aug 2026 13:13:43 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] tools/hvmloader: implement Intel IGD extended VBT support To: Jan Beulich Cc: qemu-devel@nongnu.org, Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie , Tomita Moeko , xen-devel References: <20260802050824.10554-1-brchuckz.ref@aol.com> <20260802050824.10554-1-brchuckz@aol.com> <2110d4b7-ae37-47aa-99be-ab59e16f6167@suse.com> <67579eba-e222-41dd-84bf-8440d2eaf2a9@netscape.net> <02a7dc18-4184-4e86-84cb-121769187f71@suse.com> <1858e8e6-73fa-4017-93e2-c733fbf0ec8d@aol.com> <6ecf80ef-2f0e-44fb-beab-dbcf065a4431@suse.com> <4c58bda6-e9ed-438d-b96e-feda74a6c4c7@suse.com> <31a5870f-2a4d-4dc0-af9c-f0567e0f6fb3@aol.com> <302ed12f-40ca-405c-80ca-ac4f2785d754@suse.com> <10cd9f6b-678b-407b-a51e-70e9ed7a35fd@aol.com> <131b1252-b108-4b4c-8457-673ff0d20d5e@suse.com> Content-Language: en-US From: Chuck Zmudzinski In-Reply-To: <131b1252-b108-4b4c-8457-673ff0d20d5e@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.26254 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol X-purgate-ID: tlsNG-ef75cf/1787159629-350CDAE4-A89C5524/0/0 X-purgate-type: clean X-purgate-size: 2659 On 8/19/2026 9:51 AM, Jan Beulich wrote: > On 19.08.2026 14:36, Chuck Zmudzinski wrote: >> On 8/19/2026 8:16 AM, Chuck Zmudzinski wrote: >>> Yes, I agree that v3 of the patch to hvmloader should presume that the DM can get >>> a copy of the OpRegion and read its contents so most of this can be done in the >>> DM instead of in hvmloader. So from hvmloader's perspective, the patch will be more >>> about avoiding the layering violation than anything else. >> >> However, there is one advantage, from the viewpoint of the Xen virtualization platform >> as a whole, to do the patching of the OpRegion in hvmloader instead of in the DM. >> >> If we patch the OpRegion in hvmloader as v2 of this patch does, we provide a common >> solution for extended VBT support for Intel IGD devices that would be compatible with >> all DM implementations, not just with Qemu. So why not do the patching of the OpRegion >> in hvmloader? > > As indicated before: If the OpRegion holds data that is needed to drive the > device, and if the OpRegion is exposed writable to guests, then guest can > screw up that data such that subsequent guests won't work anymore. Hence > exposing to guests (which includes hvmloader) needs to be stopped, or at > least be limited to r/o. That, in fact, includes exposing to any privilege- > restricted DM as well. > > Exposing r/o may be entirely okay (i.e. may not be a layering violation), > depending how exactly an OpRegion surfaces for a device (on the host). Aiui > it's not addressed by any of the BARs, yet it looks like it needs similar > treatment. Yes, the OpRegion is not one of the BARs as specified by the PCI specs, but it functions more or less like a BAR region with the devices's ASLS register at offset 0xfc in the PCI device config space of the device acting like the BAR for that region. Actually, in hvmloader code, this value of 0xfc for the OpRegion ASLS register is added to the header file where all the other registers defined by the PCI spec live: tools/firmware/hvmloader/pci_regs.h, but in that file it is defined by the PCI_INTEL_OPREGION macro. So this is another cleanup of this I could do along with this patch: Remove the define of PCI_INTEL_OPREGION from pci_regs.h (after all, it is not part of the PCI spec anyways) and pci.c (or the new intel-opregion.c file if some version of it survives until later versions of this patch) can get the value for the ASLS register from a header where specs for the IGD OpRegion are located instead, or it can just be added to config.h where the other IGD related definitions currently are in hvmloader code. Chuck