|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH] tools/libs/light/libxl_pci.c: explicitly grant access to Intel IGD opregion
On 3/31/22 2:32 PM, Chuck Zmudzinski wrote: On 3/30/22 1:15 PM, Anthony PERARD wrote:Hi Chuck, On Sun, Mar 13, 2022 at 11:41:37PM -0400, Chuck Zmudzinski wrote:When gfx_passthru is enabled for the Intel IGD, hvmloader maps the IGD opregion to the guest but libxl does not grant the guest permission to After discovering how the device model recovers the offset of the opregion from the page boundary, I am now certain that what we currently have in hvmloader is necessary. We do need to call pci_writel in hvmolader because that is where we write the mapped value of the page-aligned address of the opregion in the guest, and then the device model reads that value, recovers the offset of the opregion to the page boundary, and writes the address of the beginning of the opregion, not the page-aligned address that hvmloader wrote, into the config attribute of the Intel IGD that is passed through to the guest. That is why it seemed to me that the address was changed somewhere. The device model modifies it so it is the actual address of the opregion and not the address of the page boundary that immediately precedes the opregion. I hope this is an acceptable explanation of what we currently have in hvmloader. Regards, Chuck
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |