Skip to contentSkip to conversation

Can xenfv-4.2 be removed nowadays?

DISCUSSION Thomas Huth 2 participants 2 messages Nov 27 – Dec 1

lore
Share & tools
lore
#0 lore raw

Hi!

As you might know, since a couple of releases, QEMU has the policy to treat all versioned machine types older than 6 years as obsolete and disables them automatically. The code then can be removed.

This week, I started looking into removing the code of the old pc-q35-4.2 and pc-i440fx-4.2 machine types - but I got stuck with the "xenfv-4.2" machine since this is still calling the pc_i440fx_machine_4_2_options() function.

Being a Xen ignorant, this was quite confusing for me: Why is there this old "xenfv-4.2" machine, but not a newer one? Is it still used, or could it be removed nowadays, too? Or if it could not get removed completely, could it get replaced by a newer variant or non-versioned machine type instead?

Thomas

#1 lore raw

+xen-devel

Quoted 6 lines · Thomas Huth

Hi!

As you might know, since a couple of releases, QEMU has the policy to treat all versioned machine types older than 6 years as obsolete and disables them automatically. The code then can be removed.

Quoted 8 lines

This week, I started looking into removing the code of the old pc-q35-4.2 and pc-i440fx-4.2 machine types - but I got stuck with the "xenfv-4.2" machine since this is still calling the pc_i440fx_machine_4_2_options() function.

Being a Xen ignorant, this was quite confusing for me: Why is there this old "xenfv-4.2" machine, but not a newer one? Is it still used, or could it be removed nowadays, too? Or if it could not get removed completely, could it get replaced by a newer variant or non-versioned machine type instead?

Upstream Xen (libxl) does not use versioned machine types: it always passes "-machine xenfv". From that point of view, xenfv-4.2 as such could be removed.

However, since the removal of xenfv-3.1, "xenfv" is an alias of xenfv-4.2 (see 6ccf1e73fc). If we remove xenfv-4.2, "xenfv" goes away with it and HVM guests started by libxl fail with:

qemu-system-i386: unsupported machine type: "xenfv"

So xenfv-4.2 cannot simply be dropped, but we could turn it into a non-versioned machine type. It would need to keep the current 4.2 properties so that live migration and save/restore of existing guests keep working.