From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Thomas Huth <thuth@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Anthony PERARD <anthony@xenproject.org>,
xen-devel@lists.xenproject.org
Subject: Re: Can xenfv-4.2 be removed nowadays?
Date: Thu, 3 Dec 2026 09:09:17 +0000 [thread overview]
Message-ID: <axExvYd3wpn7tTvW@redhat.com> (raw)
In-Reply-To: <76de0429-b03f-436b-bc57-8aeeaf8eb9fd@oss.qualcomm.com>
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 :|
prev parent reply other threads:[~2026-12-03 9:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 15:45 Can xenfv-4.2 be removed nowadays? Thomas Huth
2026-12-01 0:28 ` Stefano Stabellini
2026-12-01 9:09 ` Thomas Huth
2026-12-01 9:33 ` Daniel P. Berrangé
2026-12-02 23:27 ` Stefano Stabellini
2026-12-03 7:32 ` Philippe Mathieu-Daudé
2026-12-03 9:09 ` Daniel P. Berrangé [this message]
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=axExvYd3wpn7tTvW@redhat.com \
--to=berrange@redhat.com \
--cc=anthony@xenproject.org \
--cc=edgar.iglesias@gmail.com \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=thuth@redhat.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.