All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuck Zmudzinski <brchuckz@aol.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: qemu-devel@nongnu.org,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Roger Pau Monné" <roger@xenproject.org>,
	"Teddy Astie" <teddy.astie@vates.tech>,
	"Tomita Moeko" <tomitamoeko@gmail.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	"Anthony PERARD" <anthony.perard@citrix.com>
Subject: Re: [PATCH v2] tools/hvmloader: implement Intel IGD extended VBT support
Date: Fri, 14 Aug 2026 12:18:26 -0400	[thread overview]
Message-ID: <1522d7a3-eb9d-40df-9a34-7b1cfeb3680e@aol.com> (raw)
In-Reply-To: <1858e8e6-73fa-4017-93e2-c733fbf0ec8d@aol.com>

On 8/14/2026 11:23 AM, Chuck Zmudzinski wrote:
> On 8/14/2026 9:46 AM, Jan Beulich wrote:
>> On 14.08.2026 15:18, Chuck Zmudzinski wrote:
>>> On 8/14/2026 3:35 AM, Jan Beulich wrote:
>>>> On 14.08.2026 02:45, Chuck Zmudzinski wrote:
>>>>> On 8/13/2026 6:35 AM, Jan Beulich wrote:
>>>>>> On 02.08.2026 07:08, Chuck Zmudzinski wrote:
>>>>>>> -- snip --
>>>>
>>>> I don't follow this: Anything the guest can access should also be accessible
>>>> by its DM.
>>> 
>>> I think the host OpRegion is not currently accessible by the DM.
>> 
>> Can you explain to me how the region becomes accessible to the guest?
>> That would then (hopefully) help me understand why the DM would not have
>> access. Fundamentally any MMIO and any I/O ports that are assigned to a
>> guest are also assigned to its DM.
> 
> Currently, in the device model (Qemu) we have:
> 
>     ret = xc_domain_memory_mapping(xen_xc, xen_domid,
>             (unsigned long)(igd_guest_opregion >> XC_PAGE_SHIFT),
>             (unsigned long)(igd_host_opregion >> XC_PAGE_SHIFT),
>             XEN_PCI_INTEL_OPREGION_PAGES,
>             DPCI_ADD_MAPPING);
> 
> That statement is in the igd_write_opregion(...) function in the
> hw/xen/xen_pt_graphics.c file of the upstream Qemu source.

I forgot to mention: In our current implementation, this statement is
executed in the DM when hvmloader executes this statement, currently in
hvmloader/pci:

                    pci_writel(vga_devfn, PCI_INTEL_OPREGION,
                               igd_opregion_pgbase << PAGE_SHIFT);



> 
> If I understand our current implementation correctly, this statement
> is what gives the guest access to the host OpRegion (3 pages as defined
> by XEN_PCI_INTEL_OPREGION_PAGES, and in agreement with IGD_OPREGION_PAGES
> in hvmloader code). I don't think this statement makes the host OpRegion
> accessible to the device model, though, so I think, if I understand your
> comment in an earlier about my patch resulting in what you called a "layering
> violation" correctly, that our current implementation is also guilty of this
> same kind of "layering violation."
> 
> So, how do you suggest we fix that?
> 
...


  reply	other threads:[~2026-08-14 16:19 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260802050824.10554-1-brchuckz.ref@aol.com>
2026-08-02  5:08 ` [PATCH v2] tools/hvmloader: implement Intel IGD extended VBT support Chuck Zmudzinski
2026-08-13 10:35   ` Jan Beulich
2026-08-14  0:45     ` Chuck Zmudzinski
2026-08-14  7:35       ` Jan Beulich
2026-08-14 13:18         ` Chuck Zmudzinski
2026-08-14 13:46           ` Jan Beulich
2026-08-14 15:23             ` Chuck Zmudzinski
2026-08-14 16:18               ` Chuck Zmudzinski [this message]
2026-08-14 19:13                 ` Chuck Zmudzinski
2026-08-14 17:07               ` Chuck Zmudzinski
2026-08-17  8:42               ` Jan Beulich
2026-08-17 16:04                 ` Chuck Zmudzinski
2026-08-17 17:04                   ` Chuck Zmudzinski
2026-08-18  7:17                   ` Jan Beulich
2026-08-18 11:52                     ` Chuck Zmudzinski
2026-08-18 12:18                       ` Jan Beulich
2026-08-18 12:29                         ` Chuck Zmudzinski
2026-08-18 17:15                           ` Chuck Zmudzinski
2026-08-19  7:30                             ` Jan Beulich
2026-08-19 12:16                               ` Chuck Zmudzinski
2026-08-19 12:36                                 ` Chuck Zmudzinski
2026-08-19 13:51                                   ` Jan Beulich
2026-08-19 15:47                                     ` Chuck Zmudzinski
2026-08-19 17:49                                       ` Chuck Zmudzinski
2026-08-19 19:09                                         ` Chuck Zmudzinski
2026-08-20  7:58                                           ` Jan Beulich
2026-08-20 13:03                                             ` Chuck Zmudzinski
2026-08-20 14:58                                               ` Chuck Zmudzinski
2026-08-20  7:53                                         ` Jan Beulich
2026-08-20 13:03                                           ` Chuck Zmudzinski
2026-08-19 17:13                                     ` Chuck Zmudzinski
2026-08-20  7:51                                       ` Jan Beulich
2026-08-20 11:47                                         ` Chuck Zmudzinski
2026-08-20 15:17                                           ` Jan Beulich
2026-08-20 16:53                                             ` Chuck Zmudzinski
2026-08-21  8:19                                               ` Jan Beulich
2026-08-21 13:12                                                 ` Chuck Zmudzinski
2026-08-19 12:10                             ` Chuck Zmudzinski
2026-08-15  2:22             ` Chuck Zmudzinski
2026-08-17  9:11               ` Jan Beulich
2026-08-16 16:38         ` Chuck Zmudzinski
2026-08-17  9:18           ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522d7a3-eb9d-40df-9a34-7b1cfeb3680e@aol.com \
    --to=brchuckz@aol.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=qemu-devel@nongnu.org \
    --cc=roger@xenproject.org \
    --cc=teddy.astie@vates.tech \
    --cc=tomitamoeko@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.