[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 Thu, Mar 31, 2022 at 03:44:33PM -0400, Chuck Zmudzinski wrote: > On 3/31/22 10:19 AM, Jason Andryuk wrote: > > On Thu, Mar 31, 2022 at 10:05 AM Chuck Zmudzinski <brchuckz@xxxxxxxxxxxx> > > wrote: > > > > > > That still doesn't answer my question - will the Qemu upstream > > > accept the patches that move the hypercalls to the toolstack? If > > > not, we have to live with what we have now, which is that the > > > hypercalls are done in Qemu. > > Xen-associated people maintain hw/xen code in QEMU, so yes it could be > > accepted. > > > > Maybe it would need to be backwards compatible to have libxl check the > > QEMU version to decide who makes the hypercall? Unless it is broken > > today, in which case just make it work. > > > > Regards, > > Jason > > I know of another reason to check the Qemu upstream version, > and that is dealing with deprecated / removed device model > options that xl.cfg still uses. I looked at that a few years ago > with regard to the deprecated 'usbdevice tablet' Qemu option, > but I did not see anything in libxl to distinguish Qemu versions > except for upstream vs. traditional. AFAICT, detecting traditional > vs. upstream Qemu depends solely on the device_model_version > xl.cfg setting. So it might be useful for libxl to add the capability > to detect the upstream Qemu version or at least create an xl.cfg > setting to inform libxl about the Qemu version. Hi, There's already some code to deal with QEMU's version (QEMU = upstream Qemu) in libxl, but this code is dealing with an already running QEMU. When libxl interact with QEMU through QMP, to setup some more devices, QEMU also advertise it's version, which we can use on follow up qmp commands. I think adding passthrough pci devices is all done via QMP, so we can potentially move an hypercall from QEMU to libxl, and tell libxl that depending on which version of QEMU is talking to, it needs or not do the hypercall. Also, we could probably add a parameter so that QEMU know if it have to do the hypercall or not, and thus newer version of QEMU could also deal with older version of libxl. (There's maybe some example like that in both QEMU and libxl, when doing live migration, dm_state_save_to_fdset() in libxl as a pointer) Cheers, -- Anthony PERARD
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |