[PATCH] hw/i386/pc: xen: reinstate the "xenfv" machine alias

Dario Faggioli posted 1 patch 1 week, 2 days ago
Failed in applying to current master (apply log)
There is a newer version of this series
hw/i386/pc_piix.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] hw/i386/pc: xen: reinstate the "xenfv" machine alias
Posted by Dario Faggioli 1 week, 2 days ago
Commit 7d2778dea32a4924a469f1cc5767042c8f5b4eea ("hw/i386/pc:
Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines") removed
the Xen machine type that was providing the "xenfv" alias. As a
consequence, since the tools are apparently relying on such alias,
we're getting this, as soon as one tries to start a Xen (HVM) VM:

  qemu-system-i386: unsupported machine type: "xenfv"
  Use -machine help to list supported machines

Reinstate the alias and let it point to the only Xen machine we
still have.

Fixes: 7d2778dea3 hw/i386/pc: Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
---
 hw/i386/pc_piix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 82457bdb16..0a911ce59e 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -658,6 +658,7 @@ static void xenfv_machine_4_2_options(MachineClass *m)
 {
     pc_i440fx_machine_4_2_options(m);
     m->desc = "Xen Fully-virtualized PC";
+    m->alias = "xenfv";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen,suppress-vmdesc=on";
 }
-- 
2.55.0
Re: [PATCH] hw/i386/pc: xen: reinstate the "xenfv" machine alias
Posted by Daniel P. Berrangé 1 week, 2 days ago
On Thu, Jul 30, 2026 at 06:22:38PM +0200, Dario Faggioli wrote:
> Commit 7d2778dea32a4924a469f1cc5767042c8f5b4eea ("hw/i386/pc:
> Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines") removed
> the Xen machine type that was providing the "xenfv" alias. As a
> consequence, since the tools are apparently relying on such alias,
> we're getting this, as soon as one tries to start a Xen (HVM) VM:
> 
>   qemu-system-i386: unsupported machine type: "xenfv"
>   Use -machine help to list supported machines
> 
> Reinstate the alias and let it point to the only Xen machine we
> still have.
> 
> Fixes: 7d2778dea3 hw/i386/pc: Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines
> Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
> ---
>  hw/i386/pc_piix.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


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 :|


Re: [PATCH] hw/i386/pc: xen: reinstate the "xenfv" machine alias
Posted by Stefano Stabellini 1 week, 2 days ago
On Thu, 30 Jul 2026, Daniel P. Berrangé wrote:
> On Thu, Jul 30, 2026 at 06:22:38PM +0200, Dario Faggioli wrote:
> > Commit 7d2778dea32a4924a469f1cc5767042c8f5b4eea ("hw/i386/pc:
> > Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines") removed
> > the Xen machine type that was providing the "xenfv" alias. As a
> > consequence, since the tools are apparently relying on such alias,
> > we're getting this, as soon as one tries to start a Xen (HVM) VM:
> > 
> >   qemu-system-i386: unsupported machine type: "xenfv"
> >   Use -machine help to list supported machines
> > 
> > Reinstate the alias and let it point to the only Xen machine we
> > still have.
> > 
> > Fixes: 7d2778dea3 hw/i386/pc: Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines
> > Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
> > ---
> >  hw/i386/pc_piix.c | 1 +
> >  1 file changed, 1 insertion(+)
> 
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>