[libvirt] FYI: qemu -M option deprecated upstream, removed from -help output

I guess this may affect the qemu driver in future ... Thanks to Markus Armbruster for bringing this to my/our attention. commit 80f52a6694423da7a40e2ec39e14a5817184c7ef Author: Jan Kiszka <> Date: Sat Jul 23 12:39:46 2011 +0200 Deprecate -M command line options Superseded by -machine. Therefore, this patch removes -M from the help list and pushes -machine at the same place in the output. commit 9052ea6bf4962b1342aa56d4341bb55176ed9e45 Author: Jan Kiszka <> Date: Sat Jul 23 12:38:37 2011 +0200 Generalize -machine command line option -machine somehow suggests that it selects the machine, but it doesn't. Fix that before this command is set in stone. Actually, -machine should supersede -M and allow to introduce arbitrary per-machine options to the command line. That will change the internal realization again, but we will be able to keep the user interface stable. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/

On 07/25/2011 11:12 AM, Richard W.M. Jones wrote:
I guess this may affect the qemu driver in future ... Thanks to Markus Armbruster for bringing this to my/our attention.
As long as QEMU supports -M ? it should not be a problem. The -M option is not scraped from -help output. Paolo

On 07/25/2011 05:57 AM, Paolo Bonzini wrote:
On 07/25/2011 11:12 AM, Richard W.M. Jones wrote:
I guess this may affect the qemu driver in future ... Thanks to Markus Armbruster for bringing this to my/our attention.
As long as QEMU supports -M ? it should not be a problem. The -M option is not scraped from -help output.
If -M is going away, then libvirt _should_ scrape -help output to see whether to use -M or -machine, rather than blindly using -M. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On 07/25/2011 10:22 PM, Eric Blake wrote:
As long as QEMU supports -M ? it should not be a problem. The -M option is not scraped from -help output.
If -M is going away, then libvirt _should_ scrape -help output to see whether to use -M or -machine, rather than blindly using -M.
-M going away will take a while (and will likely never happen). Paolo

On 07/26/2011 02:53 AM, Paolo Bonzini wrote:
On 07/25/2011 10:22 PM, Eric Blake wrote:
As long as QEMU supports -M ? it should not be a problem. The -M option is not scraped from -help output.
If -M is going away, then libvirt _should_ scrape -help output to see whether to use -M or -machine, rather than blindly using -M.
-M going away will take a while (and will likely never happen).
While that may be true, we've already been bitten in the past by using undocumented commands. See for example commit e997c268efd, where qemu-img silently quit supporting -e, but libvirt had been using it under the assumption that it would continue to work. I'll work up a patch for this. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (3)
-
Eric Blake
-
Paolo Bonzini
-
Richard W.M. Jones