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