docs/system/deprecated: Move lm32 and unicore32 to the right section
[qemu/ar7.git] / docs / system / deprecated.rst
blobb2f383ce52e4b737e33da044ddfb37ae4ffd5176
1 Deprecated features
2 ===================
4 In general features are intended to be supported indefinitely once
5 introduced into QEMU. In the event that a feature needs to be removed,
6 it will be listed in this section. The feature will remain functional
7 for 2 releases prior to actual removal. Deprecated features may also
8 generate warnings on the console when QEMU starts up, or if activated
9 via a monitor command, however, this is not a mandatory requirement.
11 Prior to the 2.10.0 release there was no official policy on how
12 long features would be deprecated prior to their removal, nor
13 any documented list of which features were deprecated. Thus
14 any features deprecated prior to 2.10.0 will be treated as if
15 they were first deprecated in the 2.10.0 release.
17 What follows is a list of all features currently marked as
18 deprecated.
20 System emulator command line arguments
21 --------------------------------------
23 ``-machine enforce-config-section=on|off`` (since 3.1)
24 ''''''''''''''''''''''''''''''''''''''''''''''''''''''
26 The ``enforce-config-section`` parameter is replaced by the
27 ``-global migration.send-configuration={on|off}`` option.
29 ``-no-kvm`` (since 1.3.0)
30 '''''''''''''''''''''''''
32 The ``-no-kvm`` argument is now a synonym for setting ``-accel tcg``.
34 ``-usbdevice`` (since 2.10.0)
35 '''''''''''''''''''''''''''''
37 The ``-usbdevice DEV`` argument is now a synonym for setting
38 the ``-device usb-DEV`` argument instead. The deprecated syntax
39 would automatically enable USB support on the machine type.
40 If using the new syntax, USB support must be explicitly
41 enabled via the ``-machine usb=on`` argument.
43 ``-drive file=json:{...{'driver':'file'}}`` (since 3.0)
44 '''''''''''''''''''''''''''''''''''''''''''''''''''''''
46 The 'file' driver for drives is no longer appropriate for character or host
47 devices and will only accept regular files (S_IFREG). The correct driver
48 for these file types is 'host_cdrom' or 'host_device' as appropriate.
50 ``-smp`` (invalid topologies) (since 3.1)
51 '''''''''''''''''''''''''''''''''''''''''
53 CPU topology properties should describe whole machine topology including
54 possible CPUs.
56 However, historically it was possible to start QEMU with an incorrect topology
57 where *n* <= *sockets* * *cores* * *threads* < *maxcpus*,
58 which could lead to an incorrect topology enumeration by the guest.
59 Support for invalid topologies will be removed, the user must ensure
60 topologies described with -smp include all possible cpus, i.e.
61 *sockets* * *cores* * *threads* = *maxcpus*.
63 ``-vnc acl`` (since 4.0.0)
64 ''''''''''''''''''''''''''
66 The ``acl`` option to the ``-vnc`` argument has been replaced
67 by the ``tls-authz`` and ``sasl-authz`` options.
69 ``QEMU_AUDIO_`` environment variables and ``-audio-help`` (since 4.0)
70 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
72 The ``-audiodev`` argument is now the preferred way to specify audio
73 backend settings instead of environment variables.  To ease migration to
74 the new format, the ``-audiodev-help`` option can be used to convert
75 the current values of the environment variables to ``-audiodev`` options.
77 Creating sound card devices and vnc without ``audiodev=`` property (since 4.2)
78 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
80 When not using the deprecated legacy audio config, each sound card
81 should specify an ``audiodev=`` property.  Additionally, when using
82 vnc, you should specify an ``audiodev=`` property if you plan to
83 transmit audio through the VNC protocol.
85 Creating sound card devices using ``-soundhw`` (since 5.1)
86 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
88 Sound card devices should be created using ``-device`` instead.  The
89 names are the same for most devices.  The exceptions are ``hda`` which
90 needs two devices (``-device intel-hda -device hda-duplex``) and
91 ``pcspk`` which can be activated using ``-machine
92 pcspk-audiodev=<name>``.
94 ``-mon ...,control=readline,pretty=on|off`` (since 4.1)
95 '''''''''''''''''''''''''''''''''''''''''''''''''''''''
97 The ``pretty=on|off`` switch has no effect for HMP monitors, but is
98 silently ignored. Using the switch with HMP monitors will become an
99 error in the future.
101 ``-realtime`` (since 4.1)
102 '''''''''''''''''''''''''
104 The ``-realtime mlock=on|off`` argument has been replaced by the
105 ``-overcommit mem-lock=on|off`` argument.
107 ``-numa`` node (without memory specified) (since 4.1)
108 '''''''''''''''''''''''''''''''''''''''''''''''''''''
110 Splitting RAM by default between NUMA nodes has the same issues as ``mem``
111 parameter described above with the difference that the role of the user plays
112 QEMU using implicit generic or board specific splitting rule.
113 Use ``memdev`` with *memory-backend-ram* backend or ``mem`` (if
114 it's supported by used machine type) to define mapping explicitly instead.
116 ``-mem-path`` fallback to RAM (since 4.1)
117 '''''''''''''''''''''''''''''''''''''''''
119 Currently if guest RAM allocation from file pointed by ``mem-path``
120 fails, QEMU falls back to allocating from RAM, which might result
121 in unpredictable behavior since the backing file specified by the user
122 is ignored. In the future, users will be responsible for making sure
123 the backing storage specified with ``-mem-path`` can actually provide
124 the guest RAM configured with ``-m`` and QEMU will fail to start up if
125 RAM allocation is unsuccessful.
127 RISC-V ``-bios`` (since 5.1)
128 ''''''''''''''''''''''''''''
130 QEMU 4.1 introduced support for the -bios option in QEMU for RISC-V for the
131 RISC-V virt machine and sifive_u machine. QEMU 4.1 had no changes to the
132 default behaviour to avoid breakages.
134 QEMU 5.1 changes the default behaviour from ``-bios none`` to ``-bios default``.
136 QEMU 5.1 has three options:
137  1. ``-bios default`` - This is the current default behavior if no -bios option
138       is included. This option will load the default OpenSBI firmware automatically.
139       The firmware is included with the QEMU release and no user interaction is
140       required. All a user needs to do is specify the kernel they want to boot
141       with the -kernel option
142  2. ``-bios none`` - QEMU will not automatically load any firmware. It is up
143       to the user to load all the images they need.
144  3. ``-bios <file>`` - Tells QEMU to load the specified file as the firmwrae.
146 ``-tb-size`` option (since 5.0)
147 '''''''''''''''''''''''''''''''
149 QEMU 5.0 introduced an alternative syntax to specify the size of the translation
150 block cache, ``-accel tcg,tb-size=``.  The new syntax deprecates the
151 previously available ``-tb-size`` option.
153 ``-show-cursor`` option (since 5.0)
154 '''''''''''''''''''''''''''''''''''
156 Use ``-display sdl,show-cursor=on`` or
157  ``-display gtk,show-cursor=on`` instead.
159 ``Configuring floppies with ``-global``
160 '''''''''''''''''''''''''''''''''''''''
162 Use ``-device floppy,...`` instead:
165     -global isa-fdc.driveA=...
166     -global sysbus-fdc.driveA=...
167     -global SUNW,fdtwo.drive=...
169 become
172     -device floppy,unit=0,drive=...
177     -global isa-fdc.driveB=...
178     -global sysbus-fdc.driveB=...
180 become
183     -device floppy,unit=1,drive=...
185 ``-drive`` with bogus interface type
186 ''''''''''''''''''''''''''''''''''''
188 Drives with interface types other than ``if=none`` are for onboard
189 devices.  It is possible to use drives the board doesn't pick up with
190 -device.  This usage is now deprecated.  Use ``if=none`` instead.
193 QEMU Machine Protocol (QMP) commands
194 ------------------------------------
196 ``change`` (since 2.5.0)
197 ''''''''''''''''''''''''
199 Use ``blockdev-change-medium`` or ``change-vnc-password`` instead.
201 ``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8.0)
202 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
204 Use argument ``id`` instead.
206 ``eject`` argument ``device`` (since 2.8.0)
207 '''''''''''''''''''''''''''''''''''''''''''
209 Use argument ``id`` instead.
211 ``blockdev-change-medium`` argument ``device`` (since 2.8.0)
212 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
214 Use argument ``id`` instead.
216 ``block_set_io_throttle`` argument ``device`` (since 2.8.0)
217 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
219 Use argument ``id`` instead.
221 ``migrate_set_downtime`` and ``migrate_set_speed`` (since 2.8.0)
222 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
224 Use ``migrate-set-parameters`` instead.
226 ``query-named-block-nodes`` result ``encryption_key_missing`` (since 2.10.0)
227 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
229 Always false.
231 ``query-block`` result ``inserted.encryption_key_missing`` (since 2.10.0)
232 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
234 Always false.
236 ``blockdev-add`` empty string argument ``backing`` (since 2.10.0)
237 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
239 Use argument value ``null`` instead.
241 ``migrate-set-cache-size`` and ``query-migrate-cache-size`` (since 2.11.0)
242 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
244 Use ``migrate-set-parameters`` and ``query-migrate-parameters`` instead.
246 ``block-commit`` arguments ``base`` and ``top`` (since 3.1.0)
247 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
249 Use arguments ``base-node`` and ``top-node`` instead.
251 ``object-add`` option ``props`` (since 5.0)
252 '''''''''''''''''''''''''''''''''''''''''''
254 Specify the properties for the object as top-level arguments instead.
256 ``query-named-block-nodes`` and ``query-block`` result dirty-bitmaps[i].status (since 4.0)
257 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
259 The ``status`` field of the ``BlockDirtyInfo`` structure, returned by
260 these commands is deprecated. Two new boolean fields, ``recording`` and
261 ``busy`` effectively replace it.
263 ``query-block`` result field ``dirty-bitmaps`` (Since 4.2)
264 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
266 The ``dirty-bitmaps`` field of the ``BlockInfo`` structure, returned by
267 the query-block command is itself now deprecated. The ``dirty-bitmaps``
268 field of the ``BlockDeviceInfo`` struct should be used instead, which is the
269 type of the ``inserted`` field in query-block replies, as well as the
270 type of array items in query-named-block-nodes.
272 Since the ``dirty-bitmaps`` field is optionally present in both the old and
273 new locations, clients must use introspection to learn where to anticipate
274 the field if/when it does appear in command output.
276 ``query-cpus`` (since 2.12.0)
277 '''''''''''''''''''''''''''''
279 The ``query-cpus`` command is replaced by the ``query-cpus-fast`` command.
281 ``query-cpus-fast`` ``arch`` output member (since 3.0.0)
282 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
284 The ``arch`` output member of the ``query-cpus-fast`` command is
285 replaced by the ``target`` output member.
287 ``cpu-add`` (since 4.0)
288 '''''''''''''''''''''''
290 Use ``device_add`` for hotplugging vCPUs instead of ``cpu-add``.  See
291 documentation of ``query-hotpluggable-cpus`` for additional
292 details.
294 ``query-events`` (since 4.0)
295 ''''''''''''''''''''''''''''
297 The ``query-events`` command has been superseded by the more powerful
298 and accurate ``query-qmp-schema`` command.
300 chardev client socket with ``wait`` option (since 4.0)
301 ''''''''''''''''''''''''''''''''''''''''''''''''''''''
303 Character devices creating sockets in client mode should not specify
304 the 'wait' field, which is only applicable to sockets in server mode
306 Human Monitor Protocol (HMP) commands
307 -------------------------------------
309 ``cpu-add`` (since 4.0)
310 '''''''''''''''''''''''
312 Use ``device_add`` for hotplugging vCPUs instead of ``cpu-add``.  See
313 documentation of ``query-hotpluggable-cpus`` for additional details.
315 ``acl_show``, ``acl_reset``, ``acl_policy``, ``acl_add``, ``acl_remove`` (since 4.0.0)
316 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
318 The ``acl_show``, ``acl_reset``, ``acl_policy``, ``acl_add``, and
319 ``acl_remove`` commands are deprecated with no replacement. Authorization
320 for VNC should be performed using the pluggable QAuthZ objects.
322 System emulator CPUS
323 --------------------
325 ``compat`` property of server class POWER CPUs (since 5.0)
326 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
328 The ``compat`` property used to set backwards compatibility modes for
329 the processor has been deprecated. The ``max-cpu-compat`` property of
330 the ``pseries`` machine type should be used instead.
332 ``lm32`` CPUs (since 5.2.0)
333 '''''''''''''''''''''''''''
335 The ``lm32`` guest CPU support is deprecated and will be removed in
336 a future version of QEMU. The only public user of this architecture
337 was the milkymist project, which has been dead for years; there was
338 never an upstream Linux port.
340 ``unicore32`` CPUs (since 5.2.0)
341 ''''''''''''''''''''''''''''''''
343 The ``unicore32`` guest CPU support is deprecated and will be removed in
344 a future version of QEMU. Support for this CPU was removed from the
345 upstream Linux kernel, and there is no available upstream toolchain
346 to build binaries for it.
348 System emulator devices
349 -----------------------
351 ``ide-drive`` (since 4.2)
352 '''''''''''''''''''''''''
354 The 'ide-drive' device is deprecated. Users should use 'ide-hd' or
355 'ide-cd' as appropriate to get an IDE hard disk or CD-ROM as needed.
357 ``scsi-disk`` (since 4.2)
358 '''''''''''''''''''''''''
360 The 'scsi-disk' device is deprecated. Users should use 'scsi-hd' or
361 'scsi-cd' as appropriate to get a SCSI hard disk or CD-ROM as needed.
363 System emulator machines
364 ------------------------
366 mips ``r4k`` platform (since 5.0)
367 '''''''''''''''''''''''''''''''''
369 This machine type is very old and unmaintained. Users should use the ``malta``
370 machine type instead.
372 mips ``fulong2e`` machine (since 5.1)
373 '''''''''''''''''''''''''''''''''''''
375 This machine has been renamed ``fuloong2e``.
377 ``pc-1.0``, ``pc-1.1``, ``pc-1.2`` and ``pc-1.3`` (since 5.0)
378 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
380 These machine types are very old and likely can not be used for live migration
381 from old QEMU versions anymore. A newer machine type should be used instead.
383 Device options
384 --------------
386 Emulated device options
387 '''''''''''''''''''''''
389 ``-device virtio-blk,scsi=on|off`` (since 5.0.0)
390 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
392 The virtio-blk SCSI passthrough feature is a legacy VIRTIO feature.  VIRTIO 1.0
393 and later do not support it because the virtio-scsi device was introduced for
394 full SCSI support.  Use virtio-scsi instead when SCSI passthrough is required.
396 Note this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an
397 alias.
399 Block device options
400 ''''''''''''''''''''
402 ``"backing": ""`` (since 2.12.0)
403 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
405 In order to prevent QEMU from automatically opening an image's backing
406 chain, use ``"backing": null`` instead.
408 ``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1.0)
409 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
411 Options for ``rbd`` should be specified according to its runtime options,
412 like other block drivers.  Legacy parsing of keyvalue pair encoded
413 filenames is useful to open images with the old format for backing files;
414 These image files should be updated to use the current format.
416 Example of legacy encoding::
418   json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"}
420 The above, converted to the current supported format::
422   json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"}
424 linux-user mode CPUs
425 --------------------
427 ``tilegx`` CPUs (since 5.1.0)
428 '''''''''''''''''''''''''''''
430 The ``tilegx`` guest CPU support (which was only implemented in
431 linux-user mode) is deprecated and will be removed in a future version
432 of QEMU. Support for this CPU was removed from the upstream Linux
433 kernel in 2018, and has also been dropped from glibc.
435 ``ppc64abi32`` CPUs (since 5.2.0)
436 '''''''''''''''''''''''''''''''''
438 The ``ppc64abi32`` architecture has a number of issues which regularly
439 trip up our CI testing and is suspected to be quite broken. For that
440 reason the maintainers strongly suspect no one actually uses it.
442 Related binaries
443 ----------------
445 qemu-img amend to adjust backing file (since 5.1)
446 '''''''''''''''''''''''''''''''''''''''''''''''''
448 The use of ``qemu-img amend`` to modify the name or format of a qcow2
449 backing image is deprecated; this functionality was never fully
450 documented or tested, and interferes with other amend operations that
451 need access to the original backing image (such as deciding whether a
452 v3 zero cluster may be left unallocated when converting to a v2
453 image).  Rather, any changes to the backing chain should be performed
454 with ``qemu-img rebase -u`` either before or after the remaining
455 changes being performed by amend, as appropriate.
457 qemu-img backing file without format (since 5.1)
458 ''''''''''''''''''''''''''''''''''''''''''''''''
460 The use of ``qemu-img create``, ``qemu-img rebase``, or ``qemu-img
461 convert`` to create or modify an image that depends on a backing file
462 now recommends that an explicit backing format be provided.  This is
463 for safety: if QEMU probes a different format than what you thought,
464 the data presented to the guest will be corrupt; similarly, presenting
465 a raw image to a guest allows a potential security exploit if a future
466 probe sees a non-raw image based on guest writes.
468 To avoid the warning message, or even future refusal to create an
469 unsafe image, you must pass ``-o backing_fmt=`` (or the shorthand
470 ``-F`` during create) to specify the intended backing format.  You may
471 use ``qemu-img rebase -u`` to retroactively add a backing format to an
472 existing image.  However, be aware that there are already potential
473 security risks to blindly using ``qemu-img info`` to probe the format
474 of an untrusted backing image, when deciding what format to add into
475 an existing image.
477 Backwards compatibility
478 -----------------------
480 Runnability guarantee of CPU models (since 4.1.0)
481 '''''''''''''''''''''''''''''''''''''''''''''''''
483 Previous versions of QEMU never changed existing CPU models in
484 ways that introduced additional host software or hardware
485 requirements to the VM.  This allowed management software to
486 safely change the machine type of an existing VM without
487 introducing new requirements ("runnability guarantee").  This
488 prevented CPU models from being updated to include CPU
489 vulnerability mitigations, leaving guests vulnerable in the
490 default configuration.
492 The CPU model runnability guarantee won't apply anymore to
493 existing CPU models.  Management software that needs runnability
494 guarantees must resolve the CPU model aliases using te
495 ``alias-of`` field returned by the ``query-cpu-definitions`` QMP
496 command.
498 While those guarantees are kept, the return value of
499 ``query-cpu-definitions`` will have existing CPU model aliases
500 point to a version that doesn't break runnability guarantees
501 (specifically, version 1 of those CPU models).  In future QEMU
502 versions, aliases will point to newer CPU model versions
503 depending on the machine type, so management software must
504 resolve CPU model aliases before starting a virtual machine.
507 Recently removed features
508 =========================
510 What follows is a record of recently removed, formerly deprecated
511 features that serves as a record for users who have encountered
512 trouble after a recent upgrade.
514 System emulator command line arguments
515 --------------------------------------
517 ``-net ...,name=``\ *name* (removed in 5.1)
518 '''''''''''''''''''''''''''''''''''''''''''
520 The ``name`` parameter of the ``-net`` option was a synonym
521 for the ``id`` parameter, which should now be used instead.
523 QEMU Machine Protocol (QMP) commands
524 ------------------------------------
526 ``block-dirty-bitmap-add`` "autoload" parameter (since 4.2.0)
527 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
529 The "autoload" parameter has been ignored since 2.12.0. All bitmaps
530 are automatically loaded from qcow2 images.
532 Human Monitor Protocol (HMP) commands
533 -------------------------------------
535 The ``hub_id`` parameter of ``hostfwd_add`` / ``hostfwd_remove`` (removed in 5.0)
536 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
538 The ``[hub_id name]`` parameter tuple of the 'hostfwd_add' and
539 'hostfwd_remove' HMP commands has been replaced by ``netdev_id``.
541 Guest Emulator ISAs
542 -------------------
544 RISC-V ISA privilege specification version 1.09.1 (removed in 5.1)
545 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
547 The RISC-V ISA privilege specification version 1.09.1 has been removed.
548 QEMU supports both the newer version 1.10.0 and the ratified version 1.11.0, these
549 should be used instead of the 1.09.1 version.
551 System emulator CPUS
552 --------------------
554 KVM guest support on 32-bit Arm hosts (removed in 5.2)
555 ''''''''''''''''''''''''''''''''''''''''''''''''''''''
557 The Linux kernel has dropped support for allowing 32-bit Arm systems
558 to host KVM guests as of the 5.7 kernel. Accordingly, QEMU is deprecating
559 its support for this configuration and will remove it in a future version.
560 Running 32-bit guests on a 64-bit Arm host remains supported.
562 RISC-V ISA Specific CPUs (removed in 5.1)
563 '''''''''''''''''''''''''''''''''''''''''
565 The RISC-V cpus with the ISA version in the CPU name have been removed. The
566 four CPUs are: ``rv32gcsu-v1.9.1``, ``rv32gcsu-v1.10.0``, ``rv64gcsu-v1.9.1`` and
567 ``rv64gcsu-v1.10.0``. Instead the version can be specified via the CPU ``priv_spec``
568 option when using the ``rv32`` or ``rv64`` CPUs.
570 RISC-V no MMU CPUs (removed in 5.1)
571 '''''''''''''''''''''''''''''''''''
573 The RISC-V no MMU cpus have been removed. The two CPUs: ``rv32imacu-nommu`` and
574 ``rv64imacu-nommu`` can no longer be used. Instead the MMU status can be specified
575 via the CPU ``mmu`` option when using the ``rv32`` or ``rv64`` CPUs.
577 System emulator machines
578 ------------------------
580 ``spike_v1.9.1`` and ``spike_v1.10`` (removed in 5.1)
581 '''''''''''''''''''''''''''''''''''''''''''''''''''''
583 The version specific Spike machines have been removed in favour of the
584 generic ``spike`` machine. If you need to specify an older version of the RISC-V
585 spec you can use the ``-cpu rv64gcsu,priv_spec=v1.10.0`` command line argument.
587 Related binaries
588 ----------------
590 ``qemu-nbd --partition`` (removed in 5.0)
591 '''''''''''''''''''''''''''''''''''''''''
593 The ``qemu-nbd --partition $digit`` code (also spelled ``-P``)
594 could only handle MBR partitions, and never correctly handled logical
595 partitions beyond partition 5.  Exporting a partition can still be
596 done by utilizing the ``--image-opts`` option with a raw blockdev
597 using the ``offset`` and ``size`` parameters layered on top of
598 any other existing blockdev. For example, if partition 1 is 100MiB
599 long starting at 1MiB, the old command::
601   qemu-nbd -t -P 1 -f qcow2 file.qcow2
603 can be rewritten as::
605   qemu-nbd -t --image-opts driver=raw,offset=1M,size=100M,file.driver=qcow2,file.file.driver=file,file.file.filename=file.qcow2
607 ``qemu-img convert -n -o`` (removed in 5.1)
608 '''''''''''''''''''''''''''''''''''''''''''
610 All options specified in ``-o`` are image creation options, so
611 they are now rejected when used with ``-n`` to skip image creation.
614 ``qemu-img create -b bad file $size`` (removed in 5.1)
615 ''''''''''''''''''''''''''''''''''''''''''''''''''''''
617 When creating an image with a backing file that could not be opened,
618 ``qemu-img create`` used to issue a warning about the failure but
619 proceed with the image creation if an explicit size was provided.
620 However, as the ``-u`` option exists for this purpose, it is safer to
621 enforce that any failure to open the backing image (including if the
622 backing file is missing or an incorrect format was specified) is an
623 error when ``-u`` is not used.
625 Command line options
626 --------------------
628 ``-numa node,mem=``\ *size* (removed in 5.1)
629 ''''''''''''''''''''''''''''''''''''''''''''
631 The parameter ``mem`` of ``-numa node`` was used to assign a part of
632 guest RAM to a NUMA node. But when using it, it's impossible to manage a specified
633 RAM chunk on the host side (like bind it to a host node, setting bind policy, ...),
634 so the guest ends up with the fake NUMA configuration with suboptiomal performance.
635 However since 2014 there is an alternative way to assign RAM to a NUMA node
636 using parameter ``memdev``, which does the same as ``mem`` and adds
637 means to actually manage node RAM on the host side. Use parameter ``memdev``
638 with *memory-backend-ram* backend as replacement for parameter ``mem``
639 to achieve the same fake NUMA effect or a properly configured
640 *memory-backend-file* backend to actually benefit from NUMA configuration.
641 New machine versions (since 5.1) will not accept the option but it will still
642 work with old machine types. User can check the QAPI schema to see if the legacy
643 option is supported by looking at MachineInfo::numa-mem-supported property.
645 Block devices
646 -------------
648 VXHS backend (removed in 5.1)
649 '''''''''''''''''''''''''''''
651 The VXHS code does not compile since v2.12.0. It was removed in 5.1.