Skip to contentSkip to conversation

machines and versions - why so many?

Qemu-devel Alexey Kardashevskiy 6 participants 18 messages Jun 23, 2014 – Jun 24, 2014

lore
Share & tools
lore
#0 lore raw

Hi!

I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :)

My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others) are needed:

1) for the -nodefaults case when a lot of devices are still created and there is no other way to configure them;

in "pseries", only CPU + empty VIO + empty PCI buses are created, everything else can be created explicitly; nothing to tweak;

2) to enable/disable CPUID_EXT_xxx bits (saw in x86);

in "pseries", there is a "compat" property on CPU and that seems to be enough;

3) for devices which are created explicitly and for which we want some capabilities be disabled and we do not want to bother about this every time we run QEMU;

ok, this one makes some sense for "pseries" to have (and upcoming endianness register on VGA seems to be the case) but it seems that adding a "compat" or "feature" property to the VGA device (and other devices which deal with this kind of compatibility) is still more architecturally correct thing to do, and let libvirt deal with the rest.

Since I (almost) always miss the bigger picture, what do I miss now? :) Thanks!

Signature · 1 line
Alexey
#1 lore raw

Il 23/06/2014 16:15, Alexey Kardashevskiy ha scritto:

Quoted 4 lines

Hi!

I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :)

If you want to support live upgrades from QEMU 2.1 to QEMU 2.2, you should indeed prepare by adding a stable name such as pseries-2.1 already in QEMU 2.1.

Quoted 6 lines

My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others) are needed:

3) for devices which are created explicitly and for which we want some capabilities be disabled and we do not want to bother about this every time we run QEMU;

This is not the exact reason. What you wrote _could_ be a reason to use compat_properties, but it is not why x86 has multiple machine types.

The reason is because when you migrate from QEMU 1.7 to QEMU 2.1, the machine should behave exactly the same as it did in QEMU 1.7. Any guest-visible change introduced between QEMU 1.7 and QEMU 2.1 (*) must be removed from QEMU 2.1. This is the reason why x86 has one machine type per version.

(*) X got faster is not a guest-visible change. A guest-visible
change is something like:

- a register gets a new default value

- a register that was read-only is now read-write

- the size of a memory region changed (e.g. a ROM BAR grew from 128k to 256k)

Sometimes, if no known guest is using the register (e.g. only firmware uses it) it is okay to skip the creation of the compat property. However, if in doubt, better add it.

Quoted 5 lines

ok, this one makes some sense for "pseries" to have (and upcoming endianness register on VGA seems to be the case) but it seems that adding a "compat" or "feature" property to the VGA device (and other devices which deal with this kind of compatibility) is still more architecturally correct thing to do, and let libvirt deal with the rest.

Yes, this sounds sensible.

Paolo

Quoted 3 lines

Since I (almost) always miss the bigger picture, what do I miss now? :) Thanks!

#2 lore raw
Quoted 17 lines · Paolo Bonzini

Il 23/06/2014 16:15, Alexey Kardashevskiy ha scritto:

Quoted 4 lines

Hi!

I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :)

If you want to support live upgrades from QEMU 2.1 to QEMU 2.2, you should indeed prepare by adding a stable name such as pseries-2.1 already in QEMU 2.1.

Quoted 6 lines

My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others) are needed:

3) for devices which are created explicitly and for which we want some capabilities be disabled and we do not want to bother about this every time we run QEMU;

Quoted 8 lines

This is not the exact reason. What you wrote _could_ be a reason to use compat_properties, but it is not why x86 has multiple machine types.

The reason is because when you migrate from QEMU 1.7 to QEMU 2.1, the machine should behave exactly the same as it did in QEMU 1.7. Any guest-visible change introduced between QEMU 1.7 and QEMU 2.1 (*) must be removed from QEMU 2.1. This is the reason why x86 has one machine type per version.

Yes, migration is why I want this, correct.

Quoted 14 lines

(*) X got faster is not a guest-visible change. A guest-visible
change is something like:

- a register gets a new default value

- a register that was read-only is now read-write

- the size of a memory region changed (e.g. a ROM BAR grew from 128k to 256k)

Sometimes, if no known guest is using the register (e.g. only firmware uses it) it is okay to skip the creation of the compat property. However, if in doubt, better add it.

Quoted 7 lines
Quoted 5 lines

ok, this one makes some sense for "pseries" to have (and upcoming endianness register on VGA seems to be the case) but it seems that adding a "compat" or "feature" property to the VGA device (and other devices which deal with this kind of compatibility) is still more architecturally correct thing to do, and let libvirt deal with the rest.

Yes, this sounds sensible.

What does sound sensible exactly? :)

I understand that this is all needed for migration, I should have mentioned this :) I do not understand why it has to be a new machine type every time. No device has "compat" option yet because of legacy? Some global machine-independent property set per QEMU version would make sense and it would work for every machine in that QEMU version.

nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was broken in 1.3? Or nec-usb-xhci? If it is the latter, why is the tweak limited by PC?

Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or 1.7 - whichever starts supporting migration well enough on pseries) because pretty much of what they do is tweaking PCI devices and we can have all of these devices on pseries. And then keep an eye on what is happening in PC world to copy same tweaks to pseries as they come. Is that correct?

Others (ARM, s390) do not do that because they do not support PCI? Or migration? Or some other reason?

Quoted 7 lines

Paolo

Quoted 4 lines

Since I (almost) always miss the bigger picture, what do I miss now? :) Thanks!

Signature · 1 line
Alexey
#3 lore raw

Am 23.06.2014 23:35, schrieb Alexey Kardashevskiy:

Quoted 5 lines

Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or 1.7 - whichever starts supporting migration well enough on pseries) because pretty much of what they do is tweaking PCI devices and we can have all of these devices on pseries. And then keep an eye on what is happening in PC world to copy same tweaks to pseries as they come. Is that correct?

Please don't. There's a series by Marcel on the list converting those PC macros to QOM. You already have a QOM sPAPR machine, so you should just derive new legacy types as needed and override things there.

Also, -machine *is* the global mechanism we have to tell QEMU which version you want, it's a shorthand for setting a list of global properties. Don't forget that QEMU can be used without libvirt, so the knowledge of which properties to set for which version is kept in QEMU.

Cheers,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#4 lore raw
Quoted 10 lines · Andreas Färber

Am 23.06.2014 23:35, schrieb Alexey Kardashevskiy:

Quoted 5 lines

Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or 1.7 - whichever starts supporting migration well enough on pseries) because pretty much of what they do is tweaking PCI devices and we can have all of these devices on pseries. And then keep an eye on what is happening in PC world to copy same tweaks to pseries as they come. Is that correct?

Please don't. There's a series by Marcel on the list converting those PC macros to QOM. You already have a QOM sPAPR machine, so you should just derive new legacy types as needed and override things there.

I failed to find the series in patchworks, was it long time ago? What was the subject?

I actually wonder if it is not going to be "-machine pseries-2.0" then what will it look like? "-machine pseries,qemucompat=2.0"? I would think there will be TYPE_MACHINE_X_Y types which I would use as a parent TYPE_SPAPR_MACHINE (dynamically, as we do for the "host" CPU type) but this is not what you are saying, correct?

Quoted 4 lines

Also, -machine *is* the global mechanism we have to tell QEMU which version you want, it's a shorthand for setting a list of global properties. Don't forget that QEMU can be used without libvirt, so the knowledge of which properties to set for which version is kept in QEMU.

I do not forget, I use libvirt once a month :)

Signature · 1 line
Alexey
#5 lore raw

Il 24/06/2014 00:33, Alexey Kardashevskiy ha scritto:

Quoted 3 lines

I actually wonder if it is not going to be "-machine pseries-2.0" then what will it look like? "-machine pseries,qemucompat=2.0"?

I would keep using pseries-2.0.

There might be some class hierarchy, like

spapr-machine

     spapr-machine-2.2
       spapr-machine-2.1

I don't know what Andreas had in mind though, but you can check out Eduardo's patches for QOMifying the PC machines and take inspiration from there. That's probably a safe bet.

Paolo

#6 lore raw

Am 24.06.2014 07:21, schrieb Paolo Bonzini:

Quoted 10 lines

Il 24/06/2014 00:33, Alexey Kardashevskiy ha scritto:

Quoted 4 lines

I actually wonder if it is not going to be "-machine pseries-2.0" then what
will it look like? "-machine pseries,qemucompat=2.0"?

I would keep using pseries-2.0.

There might be some class hierarchy, like

Quoted 7 lines
   spapr-machine
     spapr-machine-2.2
       spapr-machine-2.1

I don't know what Andreas had in mind though, but you can check out Eduardo's patches for QOMifying the PC machines and take inspiration from there. That's probably a safe bet.

That's pretty much what I meant, yes. (Eduardo, not Marcel then. :)) Not sure about spapr-machine vs. spapr-machine-2.2, but pseries-2.1-machine inheriting from and overriding properties of pseries[-2.2]-machine definitely. Whatever works.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#7 lore raw
Quoted 15 lines · Andreas Färber

Am 24.06.2014 07:21, schrieb Paolo Bonzini:

Quoted 14 lines

Il 24/06/2014 00:33, Alexey Kardashevskiy ha scritto:

Quoted 4 lines

I actually wonder if it is not going to be "-machine pseries-2.0" then what
will it look like? "-machine pseries,qemucompat=2.0"?

I would keep using pseries-2.0.

There might be some class hierarchy, like

   spapr-machine
     spapr-machine-2.2
       spapr-machine-2.1
Quoted 5 lines
Quoted 3 lines

I don't know what Andreas had in mind though, but you can check out Eduardo's patches for QOMifying the PC machines and take inspiration from there. That's probably a safe bet.

That's pretty much what I meant, yes. (Eduardo, not Marcel then. :))

Aha. Eduardo, okaaaay :)

I looked there, I fail to see why I should not cut-n-paste PC_COMPAT_XXX stuff to pseries and how that patchset helps me at all so any clues are very appreciated :)

Quoted 3 lines

Not sure about spapr-machine vs. spapr-machine-2.2, but pseries-2.1-machine inheriting from and overriding properties of pseries[-2.2]-machine definitely. Whatever works.

Signature · 1 line
Alexey
#8 lore raw
In reply to Andreas Färber
Quoted 9 lines · Andreas Färber

Am 23.06.2014 23:35, schrieb Alexey Kardashevskiy:

Quoted 5 lines

Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or 1.7 - whichever starts supporting migration well enough on pseries) because pretty much of what they do is tweaking PCI devices and we can have all of these devices on pseries. And then keep an eye on what is happening in PC world to copy same tweaks to pseries as they come. Is that correct?

Please don't. There's a series by Marcel on the list converting those PC macros to QOM.

Actually, I think you are referring to is Eduardo's series :)
http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg03155.html

Thanks,
Marcel

Quoted 11 lines

You already have a QOM sPAPR machine, so you should just
derive new legacy types as needed and override things there.

Also, -machine *is* the global mechanism we have to tell QEMU which version you want, it's a shorthand for setting a list of global properties. Don't forget that QEMU can be used without libvirt, so the knowledge of which properties to set for which version is kept in QEMU.

Cheers,
Andreas

#9 lore raw
In reply to Alexey Kardashevskiy
Quoted 2 lines · Alexey Kardashevskiy

Others (ARM, s390) do not do that because they do not support PCI? Or migration? Or some other reason?

ARM doesn't have versioned machines because we do not yet support migration between QEMU versions; I think it's currently too early to commit to that, because it's a maintenance burden and it means you accumulate legacy cruft and there are some changes you can't make. At some point enough people will care about cross version migration for ARM that we'll have to do it, but not just yet...

thanks
-- PMM

#10 lore raw
In reply to Alexey Kardashevskiy

Il 23/06/2014 23:35, Alexey Kardashevskiy ha scritto:

Quoted 2 lines

nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was broken in 1.3? Or nec-usb-xhci?

nec-usb-xhci is not "off".

            .driver   = "nec-usb-xhci",\
            .property = "msi",\
            .value    = "off",\

What's off is MSI (and MSI-X), because it wasn't implemented.

Quoted 1 line

If it is the latter, why is the tweak limited by PC?

Because at the time nobody cared about migration compatibility (even now only pSeries is starting to care).

Quoted 4 lines

Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or 1.7 - whichever starts supporting migration well enough on pseries) because pretty much of what they do is tweaking PCI devices and we can have all of these devices on pseries.

It's not necessary to do this retroactively, unless you're planning to test forward migration from 1.6 to 2.1. Just start with 2.2 (and add pseries-2.1 now as an alias).

Note that firmware interfaces and CPU features should also be versioned if they're guest visible. That's the point of functions like pc_compat_1_6.

Quoted 2 lines

And then keep an eye on what is happening in PC
world to copy same tweaks to pseries as they come. Is that correct?

Yes. We should come up sooner or later with a way to share the tweaks though.

Quoted 2 lines

Others (ARM, s390) do not do that because they do not support PCI? Or migration? Or some other reason?

This is not limited to PCI. Others do not support migration across different QEMU versions.

Paolo

#11 lore raw
Quoted 5 lines · Paolo Bonzini

Il 23/06/2014 23:35, Alexey Kardashevskiy ha scritto:

Quoted 2 lines

nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was broken in 1.3? Or nec-usb-xhci?

nec-usb-xhci is not "off".

Yes, my bad, I understood (but explained this wrong) that XHCI is enabled but without MSI.

Quoted 11 lines
            .driver   = "nec-usb-xhci",\
            .property = "msi",\
            .value    = "off",\

What's off is MSI (and MSI-X), because it wasn't implemented.

Quoted 1 line

If it is the latter, why is the tweak limited by PC?

Because at the time nobody cared about migration compatibility (even now only pSeries is starting to care).

"only pSeries"? There are plenty of x86 machines already and if it is not for migration support, then what are they all for? :)

Quoted 15 lines
Quoted 4 lines

Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or 1.7 - whichever starts supporting migration well enough on pseries) because pretty much of what they do is tweaking PCI devices and we can have all of these devices on pseries.

It's not necessary to do this retroactively, unless you're planning to test forward migration from 1.6 to 2.1. Just start with 2.2 (and add pseries-2.1 now as an alias).

Note that firmware interfaces and CPU features should also be versioned if they're guest visible. That's the point of functions like pc_compat_1_6.

Quoted 2 lines

And then keep an eye on what is happening in PC
world to copy same tweaks to pseries as they come. Is that correct?

Quoted 7 lines

Yes. We should come up sooner or later with a way to share the tweaks though.

Quoted 2 lines

Others (ARM, s390) do not do that because they do not support PCI? Or migration? Or some other reason?

This is not limited to PCI. Others do not support migration across different QEMU versions.

Yeah, I got that now. Thanks!

Signature · 1 line
Alexey
#12 lore raw
Quoted 18 lines · Alexey Kardashevskiy
Quoted 5 lines · Paolo Bonzini

Il 23/06/2014 23:35, Alexey Kardashevskiy ha scritto:

Quoted 2 lines

nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was broken in 1.3? Or nec-usb-xhci?

nec-usb-xhci is not "off".

Yes, my bad, I understood (but explained this wrong) that XHCI is enabled but without MSI.

Quoted 7 lines
            .driver   = "nec-usb-xhci",\
            .property = "msi",\
            .value    = "off",\

What's off is MSI (and MSI-X), because it wasn't implemented.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

If it is the latter, why is the tweak limited by PC?

Because at the time nobody cared about migration compatibility (even now only pSeries is starting to care).

"only pSeries"? There are plenty of x86 machines already and if it is not for migration support, then what are they all for? :)

At the time, nobody *else* cared. Only PC did.

Back then gerd created a way to do the compatibility stuff without getting into the other target's hair: compat_props. They've served us well enough, but now that more targets get interested in migration, their shortcomings start to hurt. Having to duplicate device compatibility gunk in multiple places, all far away from the device, is decidedly suboptimal. Better ideas welcome.

[...]

#13 lore raw
Quoted 22 lines · Markus Armbruster
Quoted 20 lines · Alexey Kardashevskiy
Quoted 5 lines · Paolo Bonzini

Il 23/06/2014 23:35, Alexey Kardashevskiy ha scritto:

Quoted 2 lines

nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was broken in 1.3? Or nec-usb-xhci?

nec-usb-xhci is not "off".

Yes, my bad, I understood (but explained this wrong) that XHCI is enabled but without MSI.

Quoted 9 lines
            .driver   = "nec-usb-xhci",\
            .property = "msi",\
            .value    = "off",\

What's off is MSI (and MSI-X), because it wasn't implemented.

Quoted 1 line

If it is the latter, why is the tweak limited by PC?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Because at the time nobody cared about migration compatibility (even now only pSeries is starting to care).

"only pSeries"? There are plenty of x86 machines already and if it is not for migration support, then what are they all for? :)

At the time, nobody *else* cared. Only PC did.

Ah. Misinterpret. My bad. Ok.

Quoted 7 lines

Back then gerd created a way to do the compatibility stuff without getting into the other target's hair: compat_props. They've served us well enough, but now that more targets get interested in migration, their shortcomings start to hurt. Having to duplicate device compatibility gunk in multiple places, all far away from the device, is decidedly suboptimal. Better ideas welcome.

I would suggest moving PC_COMPAT_X_Y things to platform-independent place but "[RFC v2 00/39] Convert PC machine-types to QOM classes" is already huge and complicated, and also "pseries" does not really need stuff below 1.6, may be it is not worth it...

Signature · 1 line
Alexey
#14 lore raw
In reply to Markus Armbruster

Am 24.06.2014 10:17, schrieb Markus Armbruster:

Quoted 6 lines

Back then gerd created a way to do the compatibility stuff without getting into the other target's hair: compat_props. They've served us well enough, but now that more targets get interested in migration, their shortcomings start to hurt. Having to duplicate device compatibility gunk in multiple places, all far away from the device, is decidedly suboptimal. Better ideas welcome.

Might it make sense to reconsider the proposed machine type hierarchy and have machine-2.2 <- pc-i440fx-2.2, with global properties in machine-x.y types and pc_compat_x_y() taking care of PC inheritence? We can't inherit from both pc-x.y and machine-x.y though, so probably not, just throwing thoughts around.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#15 lore raw
Quoted 8 lines · Andreas Färber

Am 24.06.2014 10:17, schrieb Markus Armbruster:

Quoted 6 lines

Back then gerd created a way to do the compatibility stuff without getting into the other target's hair: compat_props. They've served us well enough, but now that more targets get interested in migration, their shortcomings start to hurt. Having to duplicate device compatibility gunk in multiple places, all far away from the device, is decidedly suboptimal. Better ideas welcome.

Quoted 5 lines

Might it make sense to reconsider the proposed machine type hierarchy and have machine-2.2 <- pc-i440fx-2.2, with global properties in machine-x.y types and pc_compat_x_y() taking care of PC inheritence? We can't inherit from both pc-x.y and machine-x.y though, so probably not, just throwing thoughts around.

I wanted to suggest this but I do not want even think about multiple inheritance in QOM :)

And in fact all I would possibly want for pseries from those versioned PCs is those PC_COMPAT_X_Y things with enforced device properties.

Signature · 1 line
Alexey
#16 lore raw
In reply to Alexey Kardashevskiy
Quoted 22 lines · Alexey Kardashevskiy

Hi!

I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :)

My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others) are needed:

1) for the -nodefaults case when a lot of devices are still created and there is no other way to configure them;

in "pseries", only CPU + empty VIO + empty PCI buses are created, everything else can be created explicitly; nothing to tweak;

2) to enable/disable CPUID_EXT_xxx bits (saw in x86);

in "pseries", there is a "compat" property on CPU and that seems to be enough;

3) for devices which are created explicitly and for which we want some capabilities be disabled and we do not want to bother about this every time we run QEMU;

Quoted 7 lines

ok, this one makes some sense for "pseries" to have (and upcoming endianness register on VGA seems to be the case) but it seems that adding a "compat" or "feature" property to the VGA device (and other devices which deal with this kind of compatibility) is still more architecturally correct thing to do, and let libvirt deal with the rest.

Since I (almost) always miss the bigger picture, what do I miss now? :) Thanks!

Actually, the true reasons for versioned machine types are stable guest ABI and migration compatibility.

All the stuff you mentioned above (presence of devices, CPUID bits, optional device capabilities) is guest ABI.

For some machines such as PCs, we want to keep the guest ABI stable. A release freezes the guest ABI. When we do something that affects it, we take care to change only the current, unfrozen ABI, and not the previously frozen ABIs.

Versioned machine types let you pick a guest ABI. Typical usage is to create a guest with the latest machine type, then stick to that machine type forever.

Migration turns "want to keep guest ABI stable" into "must keep guest ABI stable", and adds "must keep migration format compatible". Ensured by using the same versioned machine type on source and destination.

If you don't care for migration, you probably don't need to bother with versioned machine types.

If all you want is configure the board, check out machine options (the prop=value,... you can specify in addition to the machine type).

#17 lore raw
Quoted 43 lines · Markus Armbruster
Quoted 22 lines · Alexey Kardashevskiy

Hi!

I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :)

My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others) are needed:

1) for the -nodefaults case when a lot of devices are still created and there is no other way to configure them;

in "pseries", only CPU + empty VIO + empty PCI buses are created, everything else can be created explicitly; nothing to tweak;

2) to enable/disable CPUID_EXT_xxx bits (saw in x86);

in "pseries", there is a "compat" property on CPU and that seems to be enough;

3) for devices which are created explicitly and for which we want some capabilities be disabled and we do not want to bother about this every time we run QEMU;

Quoted 7 lines

ok, this one makes some sense for "pseries" to have (and upcoming endianness register on VGA seems to be the case) but it seems that adding a "compat" or "feature" property to the VGA device (and other devices which deal with this kind of compatibility) is still more architecturally correct thing to do, and let libvirt deal with the rest.

Since I (almost) always miss the bigger picture, what do I miss now? :) Thanks!

Actually, the true reasons for versioned machine types are stable guest ABI and migration compatibility.

All the stuff you mentioned above (presence of devices, CPUID bits, optional device capabilities) is guest ABI.

For some machines such as PCs, we want to keep the guest ABI stable. A release freezes the guest ABI. When we do something that affects it, we take care to change only the current, unfrozen ABI, and not the previously frozen ABIs.

Quoted 7 lines

Versioned machine types let you pick a guest ABI. Typical usage is to create a guest with the latest machine type, then stick to that machine type forever.

Migration turns "want to keep guest ABI stable" into "must keep guest ABI stable", and adds "must keep migration format compatible". Ensured by using the same versioned machine type on source and destination.

As I mentioned in another mail, I am aware of migration :)

It just does not seem right that when we choose some PC version, some device properties get tweaked, and these are not even devices which are always present on PC machine (like NEC USB) and this tweak would make perfect sense for other architectures but it is limited to PC anyway.

Quoted 6 lines

If you don't care for migration, you probably don't need to bother with versioned machine types.

If all you want is configure the board, check out machine options (the prop=value,... you can specify in addition to the machine type).

Signature · 1 line
Alexey