Skip to contentSkip to conversation

qemu-options: document existance of versioned machine types

PATCH In review Daniel P. Berrange 3 participants 5 messages Jul 25, 2017 – Jul 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-options: document existance of versioned machine types

The -machine docs did not explain what the versioned machine types are for, nor that they'll be maintained across releases.

---
 qemu-options.hx | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
qemu-options.hx +14 -1
index 746b5fa75d..9f6e2adfff 100644
@@ -49,7 +49,20 @@ STEXI
 @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
 @findex -machine
 Select the emulated machine by @var{name}. Use @code{-machine help} to list
-available machines. Supported machine properties are:
+available machines.
+
+For architectures which aim to support live migration compatibility
+across releases, each release will introduce a new versioned machine
+type. For example, the 2.8.0 release introduced machine types
+``pc-i440fx-2.8'' and ``pc-q35-2.8'' for the x86_64/i686 architectures.
+
+To allow live migration of guests from QEMU version 2.8.0, to QEMU
+version 2.9.0, the 2.9.0 version must support the ``pc-i440fx-2.8''
+and ``pc-q35-2.8'' machines too. To allow users live migrating VMs
+to skip multiple intermediate releases when upgrading, new releases
+of QEMU will support machine types from many previous versions.
+
+Supported machine properties are:
 @table @option
 @item accel=@var{accels1}[:@var{accels2}[:...]]
 This is used to enable an accelerator. Depending on the target architecture,
Signature · 1 line
2.13.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Daniel P. Berrange

The -machine docs did not explain what the versioned machine types are for, nor that they'll be maintained across releases.

---
  qemu-options.hx | 15 ++++++++++++++-
  1 file changed, 14 insertions(+), 1 deletion(-)
qemu-options.hx +7 -1
index 746b5fa75d..9f6e2adfff 100644
@@ -49,7 +49,20 @@ STEXI
  @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
  @findex -machine
  Select the emulated machine by @var{name}. Use @code{-machine help} to list
-available machines. Supported machine properties are:
+available machines.
+
+For architectures which aim to support live migration compatibility
+across releases, each release will introduce a new versioned machine
+type. For example, the 2.8.0 release introduced machine types
+``pc-i440fx-2.8'' and ``pc-q35-2.8'' for the x86_64/i686 architectures.
+

qemu-options.hx STEXI · line 68

Quoted 10 lines
qemu-options.hx +7 -0
+To allow live migration of guests from QEMU version 2.8.0, to QEMU
+version 2.9.0, the 2.9.0 version must support the ``pc-i440fx-2.8''
+and ``pc-q35-2.8'' machines too. To allow users live migrating VMs
+to skip multiple intermediate releases when upgrading, new releases
+of QEMU will support machine types from many previous versions.
+
+Supported machine properties are:
  @table @option
  @item accel=@var{accels1}[:@var{accels2}[:...]]
  This is used to enable an accelerator. Depending on the target architecture,

Seems like an improvement to me, but do we have any formal policy on how long we support said machine types? The new wording prompts that question.

#2 lore raw
Quoted 23 lines · Daniel P. Berrange
Quoted 20 lines

The -machine docs did not explain what the versioned machine types are for, nor that they'll be maintained across releases.

---
  qemu-options.hx | 15 ++++++++++++++-
  1 file changed, 14 insertions(+), 1 deletion(-)
qemu-options.hx +1 -1
index 746b5fa75d..9f6e2adfff 100644
@@ -49,7 +49,20 @@ STEXI
  @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
  @findex -machine
  Select the emulated machine by @var{name}. Use @code{-machine help} to
  list
-available machines. Supported machine properties are:
+available machines.
Quoted 8 lines

qemu-options.hx STEXI · line 57

Quoted 5 lines
qemu-options.hx +5 -0
+
+For architectures which aim to support live migration compatibility
+across releases, each release will introduce a new versioned machine
+type. For example, the 2.8.0 release introduced machine types
+``pc-i440fx-2.8'' and ``pc-q35-2.8'' for the x86_64/i686 architectures.

Seems like an improvement to me, but do we have any formal policy on how long we support said machine types? The new wording prompts that question.

Forever, and ever...

Paolo

#3 lore raw
In reply to John Snow
Quoted 34 lines · John Snow
Quoted 31 lines · Daniel P. Berrange

The -machine docs did not explain what the versioned machine types are for, nor that they'll be maintained across releases.

---
  qemu-options.hx | 15 ++++++++++++++-
  1 file changed, 14 insertions(+), 1 deletion(-)
qemu-options.hx +13 -1
index 746b5fa75d..9f6e2adfff 100644
@@ -49,7 +49,20 @@ STEXI
  @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
  @findex -machine
  Select the emulated machine by @var{name}. Use @code{-machine help} to list
-available machines. Supported machine properties are:
+available machines.
+
+For architectures which aim to support live migration compatibility
+across releases, each release will introduce a new versioned machine
+type. For example, the 2.8.0 release introduced machine types
+``pc-i440fx-2.8'' and ``pc-q35-2.8'' for the x86_64/i686 architectures.
+
+To allow live migration of guests from QEMU version 2.8.0, to QEMU
+version 2.9.0, the 2.9.0 version must support the ``pc-i440fx-2.8''
+and ``pc-q35-2.8'' machines too. To allow users live migrating VMs
+to skip multiple intermediate releases when upgrading, new releases
+of QEMU will support machine types from many previous versions.
+
Quoted 8 lines

qemu-options.hx STEXI · line 68

Quoted 5 lines
qemu-options.hx +1 -0
+Supported machine properties are:
  @table @option
  @item accel=@var{accels1}[:@var{accels2}[:...]]
  This is used to enable an accelerator. Depending on the target architecture,

Seems like an improvement to me, but do we have any formal policy on how long we support said machine types? The new wording prompts that question.

I wasn't going to mention that in this patch, to avoid delay on getting it merged. I was going to send a further patch that makes it explicit that we will never delete machine types for as long as any active QEMU contributor has need for them in downstream version they maintain

Quoted 1 line

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#4 lore raw
Quoted 49 lines · Daniel P. Berrange
Quoted 34 lines · John Snow
Quoted 31 lines · Daniel P. Berrange

The -machine docs did not explain what the versioned machine types are for, nor that they'll be maintained across releases.

---
   qemu-options.hx | 15 ++++++++++++++-
   1 file changed, 14 insertions(+), 1 deletion(-)
qemu-options.hx +13 -1
index 746b5fa75d..9f6e2adfff 100644
@@ -49,7 +49,20 @@ STEXI
   @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
   @findex -machine
   Select the emulated machine by @var{name}. Use @code{-machine help} to list
-available machines. Supported machine properties are:
+available machines.
+
+For architectures which aim to support live migration compatibility
+across releases, each release will introduce a new versioned machine
+type. For example, the 2.8.0 release introduced machine types
+``pc-i440fx-2.8'' and ``pc-q35-2.8'' for the x86_64/i686 architectures.
+
+To allow live migration of guests from QEMU version 2.8.0, to QEMU
+version 2.9.0, the 2.9.0 version must support the ``pc-i440fx-2.8''
+and ``pc-q35-2.8'' machines too. To allow users live migrating VMs
+to skip multiple intermediate releases when upgrading, new releases
+of QEMU will support machine types from many previous versions.
+
Quoted 8 lines

qemu-options.hx STEXI · line 68

Quoted 5 lines
qemu-options.hx +1 -0
+Supported machine properties are:
   @table @option
   @item accel=@var{accels1}[:@var{accels2}[:...]]
   This is used to enable an accelerator. Depending on the target architecture,

Seems like an improvement to me, but do we have any formal policy on how long we support said machine types? The new wording prompts that question.

I wasn't going to mention that in this patch, to avoid delay on getting it merged. I was going to send a further patch that makes it explicit that we will never delete machine types for as long as any active QEMU contributor has need for them in downstream version they maintain

Quoted 5 lines
Quoted 1 line

Regards,
Daniel

OK, just asking. I agree we don't need to delay this patch if you want it in for 2.10, which is a worthwhile and good thing.

Thanks!

--js