[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can xenfv-4.2 be removed nowadays?



On Thu, Dec 03, 2026 at 08:32:56AM +0100, Philippe Mathieu-Daudé wrote:
> On 3/12/26 00:27, Stefano Stabellini wrote:
> > On Tue, 1 Dec 2026, Daniel P. Berrangé wrote:
> > > On Mon, Nov 30, 2026 at 04:28:12PM -0800, Stefano Stabellini wrote:
> 
> 
> > > Compared to the regular i440fx machine type the only differences
> > > appear to be
> > > 
> > >      m->max_cpus = HVM_MAX_VCPUS;
> > >      m->default_machine_opts = "accel=xen,suppress-vmdesc=on";
> > > 
> > > The default_machine_opts are just syntax sugar, iow, from an machine
> > > ABI point of view
> > > 
> > >     -M xenfv-4.2
> > > 
> > > would be functionally identical to
> > > 
> > >     -M pc-i440fx-4.2,suppress-vmdesc=on  -accel xen
> > > 
> > > The 'max_cpus' field is used to provide error checking on the -smp
> > > value, and I would have thought the Xen mgmt tools would already
> > > sanity check the CPU count before launching QEMU.
> > > 
> > > Unless I'm missing something else that's significant about 'xenfv',
> > > it feels like it is redundant and the Xen tools could be updated
> > > to use the standard pc-i440fx machine types, allowing us to phase
> > > out 'xenfv', after a suitable time has passed to allow updated
> > > Xen tools to deploy across the ecosystem.
> 
> - TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE is used when
>   xen_igd_gfx_pt_enabled() is true,

xen_igd_gfx_pt_enabled() returns true, if xen_igd_gfx_pt_set(true)
was called, which is wired up to use of "-accel xen"

> - xen_igd_reserve_slot(pcms->pcibus) called,
> - pci_create_simple(pcms->pcibus, -1, "xen-platform") called.
> 
> We need to add "-device xen-platform" to the new command line.
> 
> No clue how to setup the IGD passthrough host bridge / slot reservation.

Sigh, I got confused by fact that we have two methods with almost
identical names xen_hvm_init_pc() and pc_xen_hvm_init().

The former is called from pc_init1(), so gets wired up correctly
in any pc-piix* / pc-q35* machines.

The latter is only called from the 'xenfv' machine.

I'm wondering why the logic that's in pc_xen_hvm_init() can't be
moved into the pc_init1() method, and toggled from xen_enabled()
like all the other Xen functionality is. Are the pc-piix* machines
already being used by Xen in other scenarios perhaps, which don't
want the extra xen-platform device.

The alternative to eliminating xenfv is to setup the versioned
machines so that we just track the regular piix versioned machines
in some more reliably automated manner.

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.