hw/misc/iotkit-sysctl: Implement dummy version of SSE-300 PWRCTRL register
[qemu/ar7.git] / docs / system / deprecated.rst
blobcfabe6984677e729dd83c93feef1d4a5b1da6469
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 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.
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.
18 What follows is a list of all features currently marked as
19 deprecated.
21 System emulator command line arguments
22 --------------------------------------
24 ``-usbdevice`` (since 2.10.0)
25 '''''''''''''''''''''''''''''
27 The ``-usbdevice DEV`` argument is now a synonym for setting
28 the ``-device usb-DEV`` argument instead. The deprecated syntax
29 would automatically enable USB support on the machine type.
30 If using the new syntax, USB support must be explicitly
31 enabled via the ``-machine usb=on`` argument.
33 ``-drive file=json:{...{'driver':'file'}}`` (since 3.0)
34 '''''''''''''''''''''''''''''''''''''''''''''''''''''''
36 The 'file' driver for drives is no longer appropriate for character or host
37 devices and will only accept regular files (S_IFREG). The correct driver
38 for these file types is 'host_cdrom' or 'host_device' as appropriate.
40 ``-vnc acl`` (since 4.0.0)
41 ''''''''''''''''''''''''''
43 The ``acl`` option to the ``-vnc`` argument has been replaced
44 by the ``tls-authz`` and ``sasl-authz`` options.
46 ``QEMU_AUDIO_`` environment variables and ``-audio-help`` (since 4.0)
47 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
49 The ``-audiodev`` argument is now the preferred way to specify audio
50 backend settings instead of environment variables.  To ease migration to
51 the new format, the ``-audiodev-help`` option can be used to convert
52 the current values of the environment variables to ``-audiodev`` options.
54 Creating sound card devices and vnc without ``audiodev=`` property (since 4.2)
55 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
57 When not using the deprecated legacy audio config, each sound card
58 should specify an ``audiodev=`` property.  Additionally, when using
59 vnc, you should specify an ``audiodev=`` property if you plan to
60 transmit audio through the VNC protocol.
62 Creating sound card devices using ``-soundhw`` (since 5.1)
63 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
65 Sound card devices should be created using ``-device`` instead.  The
66 names are the same for most devices.  The exceptions are ``hda`` which
67 needs two devices (``-device intel-hda -device hda-duplex``) and
68 ``pcspk`` which can be activated using ``-machine
69 pcspk-audiodev=<name>``.
71 ``-mon ...,control=readline,pretty=on|off`` (since 4.1)
72 '''''''''''''''''''''''''''''''''''''''''''''''''''''''
74 The ``pretty=on|off`` switch has no effect for HMP monitors, but is
75 silently ignored. Using the switch with HMP monitors will become an
76 error in the future.
78 RISC-V ``-bios`` (since 5.1)
79 ''''''''''''''''''''''''''''
81 QEMU 4.1 introduced support for the -bios option in QEMU for RISC-V for the
82 RISC-V virt machine and sifive_u machine. QEMU 4.1 had no changes to the
83 default behaviour to avoid breakages.
85 QEMU 5.1 changes the default behaviour from ``-bios none`` to ``-bios default``.
87 QEMU 5.1 has three options:
88  1. ``-bios default`` - This is the current default behavior if no -bios option
89       is included. This option will load the default OpenSBI firmware automatically.
90       The firmware is included with the QEMU release and no user interaction is
91       required. All a user needs to do is specify the kernel they want to boot
92       with the -kernel option
93  2. ``-bios none`` - QEMU will not automatically load any firmware. It is up
94       to the user to load all the images they need.
95  3. ``-bios <file>`` - Tells QEMU to load the specified file as the firmwrae.
97 ``Configuring floppies with ``-global``
98 '''''''''''''''''''''''''''''''''''''''
100 Use ``-device floppy,...`` instead:
103     -global isa-fdc.driveA=...
104     -global sysbus-fdc.driveA=...
105     -global SUNW,fdtwo.drive=...
107 become
110     -device floppy,unit=0,drive=...
115     -global isa-fdc.driveB=...
116     -global sysbus-fdc.driveB=...
118 become
121     -device floppy,unit=1,drive=...
123 ``-drive`` with bogus interface type
124 ''''''''''''''''''''''''''''''''''''
126 Drives with interface types other than ``if=none`` are for onboard
127 devices.  It is possible to use drives the board doesn't pick up with
128 -device.  This usage is now deprecated.  Use ``if=none`` instead.
130 Short-form boolean options (since 6.0)
131 ''''''''''''''''''''''''''''''''''''''
133 Boolean options such as ``share=on``/``share=off`` could be written
134 in short form as ``share`` and ``noshare``.  This is now deprecated
135 and will cause a warning.
137 ``delay`` option for socket character devices (since 6.0)
138 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''
140 The replacement for the ``nodelay`` short-form boolean option is ``nodelay=on``
141 rather than ``delay=off``.
143 ``--enable-fips`` (since 6.0)
144 '''''''''''''''''''''''''''''
146 This option restricts usage of certain cryptographic algorithms when
147 the host is operating in FIPS mode.
149 If FIPS compliance is required, QEMU should be built with the ``libgcrypt``
150 library enabled as a cryptography provider.
152 Neither the ``nettle`` library, or the built-in cryptography provider are
153 supported on FIPS enabled hosts.
155 ``-writeconfig`` (since 6.0)
156 '''''''''''''''''''''''''''''
158 The ``-writeconfig`` option is not able to serialize the entire contents
159 of the QEMU command line.  It is thus considered a failed experiment
160 and deprecated, with no current replacement.
162 Userspace local APIC with KVM (x86, since 6.0)
163 ''''''''''''''''''''''''''''''''''''''''''''''
165 Using ``-M kernel-irqchip=off`` with x86 machine types that include a local
166 APIC is deprecated.  The ``split`` setting is supported, as is using
167 ``-M kernel-irqchip=off`` with the ISA PC machine type.
169 QEMU Machine Protocol (QMP) commands
170 ------------------------------------
172 ``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8.0)
173 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
175 Use argument ``id`` instead.
177 ``eject`` argument ``device`` (since 2.8.0)
178 '''''''''''''''''''''''''''''''''''''''''''
180 Use argument ``id`` instead.
182 ``blockdev-change-medium`` argument ``device`` (since 2.8.0)
183 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
185 Use argument ``id`` instead.
187 ``block_set_io_throttle`` argument ``device`` (since 2.8.0)
188 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
190 Use argument ``id`` instead.
192 ``migrate_set_downtime`` and ``migrate_set_speed`` (since 2.8.0)
193 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
195 Use ``migrate-set-parameters`` instead.
197 ``query-named-block-nodes`` result ``encryption_key_missing`` (since 2.10.0)
198 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
200 Always false.
202 ``query-block`` result ``inserted.encryption_key_missing`` (since 2.10.0)
203 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
205 Always false.
207 ``blockdev-add`` empty string argument ``backing`` (since 2.10.0)
208 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
210 Use argument value ``null`` instead.
212 ``migrate-set-cache-size`` and ``query-migrate-cache-size`` (since 2.11.0)
213 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
215 Use ``migrate-set-parameters`` and ``query-migrate-parameters`` instead.
217 ``block-commit`` arguments ``base`` and ``top`` (since 3.1.0)
218 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
220 Use arguments ``base-node`` and ``top-node`` instead.
222 ``object-add`` option ``props`` (since 5.0)
223 '''''''''''''''''''''''''''''''''''''''''''
225 Specify the properties for the object as top-level arguments instead.
227 ``query-named-block-nodes`` and ``query-block`` result dirty-bitmaps[i].status (since 4.0)
228 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
230 The ``status`` field of the ``BlockDirtyInfo`` structure, returned by
231 these commands is deprecated. Two new boolean fields, ``recording`` and
232 ``busy`` effectively replace it.
234 ``query-block`` result field ``dirty-bitmaps`` (Since 4.2)
235 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
237 The ``dirty-bitmaps`` field of the ``BlockInfo`` structure, returned by
238 the query-block command is itself now deprecated. The ``dirty-bitmaps``
239 field of the ``BlockDeviceInfo`` struct should be used instead, which is the
240 type of the ``inserted`` field in query-block replies, as well as the
241 type of array items in query-named-block-nodes.
243 Since the ``dirty-bitmaps`` field is optionally present in both the old and
244 new locations, clients must use introspection to learn where to anticipate
245 the field if/when it does appear in command output.
247 ``query-cpus`` (since 2.12.0)
248 '''''''''''''''''''''''''''''
250 The ``query-cpus`` command is replaced by the ``query-cpus-fast`` command.
252 ``query-cpus-fast`` ``arch`` output member (since 3.0.0)
253 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
255 The ``arch`` output member of the ``query-cpus-fast`` command is
256 replaced by the ``target`` output member.
258 ``query-events`` (since 4.0)
259 ''''''''''''''''''''''''''''
261 The ``query-events`` command has been superseded by the more powerful
262 and accurate ``query-qmp-schema`` command.
264 chardev client socket with ``wait`` option (since 4.0)
265 ''''''''''''''''''''''''''''''''''''''''''''''''''''''
267 Character devices creating sockets in client mode should not specify
268 the 'wait' field, which is only applicable to sockets in server mode
270 ``nbd-server-add`` and ``nbd-server-remove`` (since 5.2)
271 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
273 Use the more generic commands ``block-export-add`` and ``block-export-del``
274 instead.  As part of this deprecation, where ``nbd-server-add`` used a
275 single ``bitmap``, the new ``block-export-add`` uses a list of ``bitmaps``.
277 Human Monitor Protocol (HMP) commands
278 -------------------------------------
280 ``acl_show``, ``acl_reset``, ``acl_policy``, ``acl_add``, ``acl_remove`` (since 4.0.0)
281 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
283 The ``acl_show``, ``acl_reset``, ``acl_policy``, ``acl_add``, and
284 ``acl_remove`` commands are deprecated with no replacement. Authorization
285 for VNC should be performed using the pluggable QAuthZ objects.
287 System emulator CPUS
288 --------------------
290 ``moxie`` CPU (since 5.2.0)
291 '''''''''''''''''''''''''''
293 The ``moxie`` guest CPU support is deprecated and will be removed in
294 a future version of QEMU. It's unclear whether anybody is still using
295 CPU emulation in QEMU, and there are no test images available to make
296 sure that the code is still working.
298 ``lm32`` CPUs (since 5.2.0)
299 '''''''''''''''''''''''''''
301 The ``lm32`` guest CPU support is deprecated and will be removed in
302 a future version of QEMU. The only public user of this architecture
303 was the milkymist project, which has been dead for years; there was
304 never an upstream Linux port.
306 ``unicore32`` CPUs (since 5.2.0)
307 ''''''''''''''''''''''''''''''''
309 The ``unicore32`` guest CPU support is deprecated and will be removed in
310 a future version of QEMU. Support for this CPU was removed from the
311 upstream Linux kernel, and there is no available upstream toolchain
312 to build binaries for it.
314 ``Icelake-Client`` CPU Model (since 5.2.0)
315 ''''''''''''''''''''''''''''''''''''''''''
317 ``Icelake-Client`` CPU Models are deprecated. Use ``Icelake-Server`` CPU
318 Models instead.
320 MIPS ``I7200`` CPU Model (since 5.2)
321 ''''''''''''''''''''''''''''''''''''
323 The ``I7200`` guest CPU relies on the nanoMIPS ISA, which is deprecated
324 (the ISA has never been upstreamed to a compiler toolchain). Therefore
325 this CPU is also deprecated.
327 System emulator devices
328 -----------------------
330 ``ide-drive`` (since 4.2)
331 '''''''''''''''''''''''''
333 The 'ide-drive' device is deprecated. Users should use 'ide-hd' or
334 'ide-cd' as appropriate to get an IDE hard disk or CD-ROM as needed.
336 ``scsi-disk`` (since 4.2)
337 '''''''''''''''''''''''''
339 The 'scsi-disk' device is deprecated. Users should use 'scsi-hd' or
340 'scsi-cd' as appropriate to get a SCSI hard disk or CD-ROM as needed.
342 System emulator machines
343 ------------------------
345 Raspberry Pi ``raspi2`` and ``raspi3`` machines (since 5.2)
346 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
348 The Raspberry Pi machines come in various models (A, A+, B, B+). To be able
349 to distinguish which model QEMU is implementing, the ``raspi2`` and ``raspi3``
350 machines have been renamed ``raspi2b`` and ``raspi3b``.
352 Device options
353 --------------
355 Emulated device options
356 '''''''''''''''''''''''
358 ``-device virtio-blk,scsi=on|off`` (since 5.0.0)
359 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
361 The virtio-blk SCSI passthrough feature is a legacy VIRTIO feature.  VIRTIO 1.0
362 and later do not support it because the virtio-scsi device was introduced for
363 full SCSI support.  Use virtio-scsi instead when SCSI passthrough is required.
365 Note this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an
366 alias.
368 Block device options
369 ''''''''''''''''''''
371 ``"backing": ""`` (since 2.12.0)
372 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
374 In order to prevent QEMU from automatically opening an image's backing
375 chain, use ``"backing": null`` instead.
377 ``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1.0)
378 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
380 Options for ``rbd`` should be specified according to its runtime options,
381 like other block drivers.  Legacy parsing of keyvalue pair encoded
382 filenames is useful to open images with the old format for backing files;
383 These image files should be updated to use the current format.
385 Example of legacy encoding::
387   json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"}
389 The above, converted to the current supported format::
391   json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"}
393 ``sheepdog`` driver (since 5.2.0)
394 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
396 The ``sheepdog`` block device driver is deprecated. The corresponding upstream
397 server project is no longer actively maintained. Users are recommended to switch
398 to an alternative distributed block device driver such as RBD. The
399 ``qemu-img convert`` command can be used to liberate existing data by moving
400 it out of sheepdog volumes into an alternative storage backend.
402 linux-user mode CPUs
403 --------------------
405 ``tilegx`` CPUs (since 5.1.0)
406 '''''''''''''''''''''''''''''
408 The ``tilegx`` guest CPU support (which was only implemented in
409 linux-user mode) is deprecated and will be removed in a future version
410 of QEMU. Support for this CPU was removed from the upstream Linux
411 kernel in 2018, and has also been dropped from glibc.
413 ``ppc64abi32`` CPUs (since 5.2.0)
414 '''''''''''''''''''''''''''''''''
416 The ``ppc64abi32`` architecture has a number of issues which regularly
417 trip up our CI testing and is suspected to be quite broken. For that
418 reason the maintainers strongly suspect no one actually uses it.
420 MIPS ``I7200`` CPU (since 5.2)
421 ''''''''''''''''''''''''''''''
423 The ``I7200`` guest CPU relies on the nanoMIPS ISA, which is deprecated
424 (the ISA has never been upstreamed to a compiler toolchain). Therefore
425 this CPU is also deprecated.
427 Related binaries
428 ----------------
430 qemu-img amend to adjust backing file (since 5.1)
431 '''''''''''''''''''''''''''''''''''''''''''''''''
433 The use of ``qemu-img amend`` to modify the name or format of a qcow2
434 backing image is deprecated; this functionality was never fully
435 documented or tested, and interferes with other amend operations that
436 need access to the original backing image (such as deciding whether a
437 v3 zero cluster may be left unallocated when converting to a v2
438 image).  Rather, any changes to the backing chain should be performed
439 with ``qemu-img rebase -u`` either before or after the remaining
440 changes being performed by amend, as appropriate.
442 qemu-img backing file without format (since 5.1)
443 ''''''''''''''''''''''''''''''''''''''''''''''''
445 The use of ``qemu-img create``, ``qemu-img rebase``, or ``qemu-img
446 convert`` to create or modify an image that depends on a backing file
447 now recommends that an explicit backing format be provided.  This is
448 for safety: if QEMU probes a different format than what you thought,
449 the data presented to the guest will be corrupt; similarly, presenting
450 a raw image to a guest allows a potential security exploit if a future
451 probe sees a non-raw image based on guest writes.
453 To avoid the warning message, or even future refusal to create an
454 unsafe image, you must pass ``-o backing_fmt=`` (or the shorthand
455 ``-F`` during create) to specify the intended backing format.  You may
456 use ``qemu-img rebase -u`` to retroactively add a backing format to an
457 existing image.  However, be aware that there are already potential
458 security risks to blindly using ``qemu-img info`` to probe the format
459 of an untrusted backing image, when deciding what format to add into
460 an existing image.
462 Backwards compatibility
463 -----------------------
465 Runnability guarantee of CPU models (since 4.1.0)
466 '''''''''''''''''''''''''''''''''''''''''''''''''
468 Previous versions of QEMU never changed existing CPU models in
469 ways that introduced additional host software or hardware
470 requirements to the VM.  This allowed management software to
471 safely change the machine type of an existing VM without
472 introducing new requirements ("runnability guarantee").  This
473 prevented CPU models from being updated to include CPU
474 vulnerability mitigations, leaving guests vulnerable in the
475 default configuration.
477 The CPU model runnability guarantee won't apply anymore to
478 existing CPU models.  Management software that needs runnability
479 guarantees must resolve the CPU model aliases using the
480 ``alias-of`` field returned by the ``query-cpu-definitions`` QMP
481 command.
483 While those guarantees are kept, the return value of
484 ``query-cpu-definitions`` will have existing CPU model aliases
485 point to a version that doesn't break runnability guarantees
486 (specifically, version 1 of those CPU models).  In future QEMU
487 versions, aliases will point to newer CPU model versions
488 depending on the machine type, so management software must
489 resolve CPU model aliases before starting a virtual machine.
491 Guest Emulator ISAs
492 -------------------
494 nanoMIPS ISA
495 ''''''''''''
497 The ``nanoMIPS`` ISA has never been upstreamed to any compiler toolchain.
498 As it is hard to generate binaries for it, declare it deprecated.