xref: /openbmc/qemu/docs/about/deprecated.rst (revision 9ffcbe2a60d24fc20b98f010dbca244df1fe82c5)
17f800d34SMarc-André Lureau.. _Deprecated features:
27f800d34SMarc-André Lureau
3f3478392SPeter MaydellDeprecated features
4f3478392SPeter Maydell===================
5f3478392SPeter Maydell
6f3478392SPeter MaydellIn general features are intended to be supported indefinitely once
7f3478392SPeter Maydellintroduced into QEMU. In the event that a feature needs to be removed,
8f3478392SPeter Maydellit will be listed in this section. The feature will remain functional for the
9f3478392SPeter Maydellrelease in which it was deprecated and one further release. After these two
10f3478392SPeter Maydellreleases, the feature is liable to be removed. Deprecated features may also
11f3478392SPeter Maydellgenerate warnings on the console when QEMU starts up, or if activated via a
12f3478392SPeter Maydellmonitor command, however, this is not a mandatory requirement.
13f3478392SPeter Maydell
14f3478392SPeter MaydellPrior to the 2.10.0 release there was no official policy on how
15f3478392SPeter Maydelllong features would be deprecated prior to their removal, nor
16f3478392SPeter Maydellany documented list of which features were deprecated. Thus
17f3478392SPeter Maydellany features deprecated prior to 2.10.0 will be treated as if
18f3478392SPeter Maydellthey were first deprecated in the 2.10.0 release.
19f3478392SPeter Maydell
20f3478392SPeter MaydellWhat follows is a list of all features currently marked as
21f3478392SPeter Maydelldeprecated.
22f3478392SPeter Maydell
23bb9ecae7SAlex BennéeBuild options
24bb9ecae7SAlex Bennée-------------
25bb9ecae7SAlex Bennée
26bb9ecae7SAlex Bennée``gprof`` builds (since 8.0)
27bb9ecae7SAlex Bennée''''''''''''''''''''''''''''
28bb9ecae7SAlex Bennée
29bb9ecae7SAlex BennéeThe ``--enable-gprof`` configure setting relies on compiler
30bb9ecae7SAlex Bennéeinstrumentation to gather its data which can distort the generated
31bb9ecae7SAlex Bennéeprofile. As other non-instrumenting tools are available that give a
32bb9ecae7SAlex Bennéemore holistic view of the system with non-instrumented binaries we are
33bb9ecae7SAlex Bennéedeprecating the build option and no longer defend it in CI. The
34bb9ecae7SAlex Bennée``--enable-gcov`` build option remains for analysis test case
35bb9ecae7SAlex Bennéecoverage.
36bb9ecae7SAlex Bennée
37f3478392SPeter MaydellSystem emulator command line arguments
38f3478392SPeter Maydell--------------------------------------
39f3478392SPeter Maydell
40f3478392SPeter Maydell``QEMU_AUDIO_`` environment variables and ``-audio-help`` (since 4.0)
41f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
42f3478392SPeter Maydell
43f3478392SPeter MaydellThe ``-audiodev`` argument is now the preferred way to specify audio
44f3478392SPeter Maydellbackend settings instead of environment variables.  To ease migration to
45f3478392SPeter Maydellthe new format, the ``-audiodev-help`` option can be used to convert
46f3478392SPeter Maydellthe current values of the environment variables to ``-audiodev`` options.
47f3478392SPeter Maydell
48f3478392SPeter MaydellCreating sound card devices and vnc without ``audiodev=`` property (since 4.2)
49f3478392SPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
50f3478392SPeter Maydell
51f3478392SPeter MaydellWhen not using the deprecated legacy audio config, each sound card
52f3478392SPeter Maydellshould specify an ``audiodev=`` property.  Additionally, when using
53f3478392SPeter Maydellvnc, you should specify an ``audiodev=`` property if you plan to
54f3478392SPeter Maydelltransmit audio through the VNC protocol.
55f3478392SPeter Maydell
56f3478392SPeter MaydellShort-form boolean options (since 6.0)
57f3478392SPeter Maydell''''''''''''''''''''''''''''''''''''''
58f3478392SPeter Maydell
59f3478392SPeter MaydellBoolean options such as ``share=on``/``share=off`` could be written
60f3478392SPeter Maydellin short form as ``share`` and ``noshare``.  This is now deprecated
61f3478392SPeter Maydelland will cause a warning.
62f3478392SPeter Maydell
63f3478392SPeter Maydell``delay`` option for socket character devices (since 6.0)
64f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
65f3478392SPeter Maydell
66f3478392SPeter MaydellThe replacement for the ``nodelay`` short-form boolean option is ``nodelay=on``
67f3478392SPeter Maydellrather than ``delay=off``.
68f3478392SPeter Maydell
69c2511b16SYanan Wang``-smp`` ("parameter=0" SMP configurations) (since 6.2)
70c2511b16SYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''
71c2511b16SYanan Wang
72c2511b16SYanan WangSpecified CPU topology parameters must be greater than zero.
73c2511b16SYanan Wang
74c2511b16SYanan WangIn the SMP configuration, users should either provide a CPU topology
75c2511b16SYanan Wangparameter with a reasonable value (greater than zero) or just omit it
76c2511b16SYanan Wangand QEMU will compute the missing value.
77c2511b16SYanan Wang
78c2511b16SYanan WangHowever, historically it was implicitly allowed for users to provide
79c2511b16SYanan Wanga parameter with zero value, which is meaningless and could also possibly
80c2511b16SYanan Wangcause unexpected results in the -smp parsing. So support for this kind of
81c2511b16SYanan Wangconfigurations (e.g. -smp 8,sockets=0) is deprecated since 6.2 and will
82c2511b16SYanan Wangbe removed in the near future, users have to ensure that all the topology
83c2511b16SYanan Wangmembers described with -smp are greater than zero.
84f3478392SPeter Maydell
8567f14574SMahmoud MandourPlugin argument passing through ``arg=<string>`` (since 6.1)
8667f14574SMahmoud Mandour''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
8767f14574SMahmoud Mandour
8867f14574SMahmoud MandourPassing TCG plugins arguments through ``arg=`` is redundant is makes the
8967f14574SMahmoud Mandourcommand-line less readable, especially when the argument itself consist of a
9067f14574SMahmoud Mandourname and a value, e.g. ``-plugin plugin_name,arg="arg_name=arg_value"``.
9167f14574SMahmoud MandourTherefore, the usage of ``arg`` is redundant. Single-word arguments are treated
9267f14574SMahmoud Mandouras short-form boolean values, and passed to plugins as ``arg_name=on``.
9367f14574SMahmoud MandourHowever, short-form booleans are deprecated and full explicit ``arg_name=on``
9467f14574SMahmoud Mandourform is preferred.
9567f14574SMahmoud Mandour
96df37330cSThomas Huth``-no-hpet`` (since 8.0)
97df37330cSThomas Huth''''''''''''''''''''''''
98df37330cSThomas Huth
99df37330cSThomas HuthThe HPET setting has been turned into a machine property.
100df37330cSThomas HuthUse ``-machine hpet=off`` instead.
101df37330cSThomas Huth
102fffa36b6SThomas Huth``-no-acpi`` (since 8.0)
103fffa36b6SThomas Huth''''''''''''''''''''''''
104fffa36b6SThomas Huth
105fffa36b6SThomas HuthThe ``-no-acpi`` setting has been turned into a machine property.
106fffa36b6SThomas HuthUse ``-machine acpi=off`` instead.
107fffa36b6SThomas Huth
10890c167a1SThomas Huth``-accel hax`` (since 8.0)
10990c167a1SThomas Huth''''''''''''''''''''''''''
11090c167a1SThomas Huth
11190c167a1SThomas HuthThe HAXM project has been retired (see https://github.com/intel/haxm#status).
11290c167a1SThomas HuthUse "whpx" (on Windows) or "hvf" (on macOS) instead.
11390c167a1SThomas Huth
11480bd81caSClaudio Imbrenda``-async-teardown`` (since 8.1)
11580bd81caSClaudio Imbrenda'''''''''''''''''''''''''''''''
11680bd81caSClaudio Imbrenda
11780bd81caSClaudio ImbrendaUse ``-run-with async-teardown=on`` instead.
11880bd81caSClaudio Imbrenda
119*9ffcbe2aSThomas Huth``-chroot`` (since 8.1)
120*9ffcbe2aSThomas Huth'''''''''''''''''''''''
121*9ffcbe2aSThomas Huth
122*9ffcbe2aSThomas HuthUse ``-run-with chroot=dir`` instead.
123*9ffcbe2aSThomas Huth
12412fd0f41SPeter Maydell``-singlestep`` (since 8.1)
12512fd0f41SPeter Maydell'''''''''''''''''''''''''''
12612fd0f41SPeter Maydell
12712fd0f41SPeter MaydellThe ``-singlestep`` option has been turned into an accelerator property,
12812fd0f41SPeter Maydelland given a name that better reflects what it actually does.
12912fd0f41SPeter MaydellUse ``-accel tcg,one-insn-per-tb=on`` instead.
13012fd0f41SPeter Maydell
13112fd0f41SPeter MaydellUser-mode emulator command line arguments
13212fd0f41SPeter Maydell-----------------------------------------
13312fd0f41SPeter Maydell
13412fd0f41SPeter Maydell``-singlestep`` (since 8.1)
13512fd0f41SPeter Maydell'''''''''''''''''''''''''''
13612fd0f41SPeter Maydell
13712fd0f41SPeter MaydellThe ``-singlestep`` option has been given a name that better reflects
13812fd0f41SPeter Maydellwhat it actually does. For both linux-user and bsd-user, use the
13912fd0f41SPeter Maydellnew ``-one-insn-per-tb`` option instead.
14067f14574SMahmoud Mandour
141f3478392SPeter MaydellQEMU Machine Protocol (QMP) commands
142f3478392SPeter Maydell------------------------------------
143f3478392SPeter Maydell
144e2cc363bSYanan Wang``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8)
145e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
146f3478392SPeter Maydell
147f3478392SPeter MaydellUse argument ``id`` instead.
148f3478392SPeter Maydell
149e2cc363bSYanan Wang``eject`` argument ``device`` (since 2.8)
150e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''
151f3478392SPeter Maydell
152f3478392SPeter MaydellUse argument ``id`` instead.
153f3478392SPeter Maydell
154e2cc363bSYanan Wang``blockdev-change-medium`` argument ``device`` (since 2.8)
155e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
156f3478392SPeter Maydell
157f3478392SPeter MaydellUse argument ``id`` instead.
158f3478392SPeter Maydell
159e2cc363bSYanan Wang``block_set_io_throttle`` argument ``device`` (since 2.8)
160e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
161f3478392SPeter Maydell
162f3478392SPeter MaydellUse argument ``id`` instead.
163f3478392SPeter Maydell
164e2cc363bSYanan Wang``blockdev-add`` empty string argument ``backing`` (since 2.10)
165e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
166f3478392SPeter Maydell
167f3478392SPeter MaydellUse argument value ``null`` instead.
168f3478392SPeter Maydell
169e2cc363bSYanan Wang``block-commit`` arguments ``base`` and ``top`` (since 3.1)
170e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
171f3478392SPeter Maydell
172f3478392SPeter MaydellUse arguments ``base-node`` and ``top-node`` instead.
173f3478392SPeter Maydell
174f3478392SPeter Maydell``nbd-server-add`` and ``nbd-server-remove`` (since 5.2)
175f3478392SPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''''''''''
176f3478392SPeter Maydell
177f3478392SPeter MaydellUse the more generic commands ``block-export-add`` and ``block-export-del``
178f3478392SPeter Maydellinstead.  As part of this deprecation, where ``nbd-server-add`` used a
179f3478392SPeter Maydellsingle ``bitmap``, the new ``block-export-add`` uses a list of ``bitmaps``.
180f3478392SPeter Maydell
18175ecee72SMarkus Armbruster``query-qmp-schema`` return value member ``values`` (since 6.2)
18275ecee72SMarkus Armbruster'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
18375ecee72SMarkus Armbruster
18475ecee72SMarkus ArmbrusterMember ``values`` in return value elements with meta-type ``enum`` is
18575ecee72SMarkus Armbrusterdeprecated.  Use ``members`` instead.
18675ecee72SMarkus Armbruster
1871084159bSVladimir Sementsov-Ogievskiy``drive-backup`` (since 6.2)
1881084159bSVladimir Sementsov-Ogievskiy''''''''''''''''''''''''''''
1891084159bSVladimir Sementsov-Ogievskiy
1901084159bSVladimir Sementsov-OgievskiyUse ``blockdev-backup`` in combination with ``blockdev-add`` instead.
1911084159bSVladimir Sementsov-OgievskiyThis change primarily separates the creation/opening process of the backup
1921084159bSVladimir Sementsov-Ogievskiytarget with explicit, separate steps. ``blockdev-backup`` uses mostly the
1931084159bSVladimir Sementsov-Ogievskiysame arguments as ``drive-backup``, except the ``format`` and ``mode``
1941084159bSVladimir Sementsov-Ogievskiyoptions are removed in favor of using explicit ``blockdev-create`` and
1951084159bSVladimir Sementsov-Ogievskiy``blockdev-add`` calls. See :doc:`/interop/live-block-operations` for
1961084159bSVladimir Sementsov-Ogievskiydetails.
1971084159bSVladimir Sementsov-Ogievskiy
1984d8b0f0aSKevin WolfIncorrectly typed ``device_add`` arguments (since 6.2)
1994d8b0f0aSKevin Wolf''''''''''''''''''''''''''''''''''''''''''''''''''''''
2004d8b0f0aSKevin Wolf
2014d8b0f0aSKevin WolfDue to shortcomings in the internal implementation of ``device_add``, QEMU
2024d8b0f0aSKevin Wolfincorrectly accepts certain invalid arguments: Any object or list arguments are
2034d8b0f0aSKevin Wolfsilently ignored. Other argument types are not checked, but an implicit
2044d8b0f0aSKevin Wolfconversion happens, so that e.g. string values can be assigned to integer
2054d8b0f0aSKevin Wolfdevice properties or vice versa.
2064d8b0f0aSKevin Wolf
2074d8b0f0aSKevin WolfThis is a bug in QEMU that will be fixed in the future so that previously
2084d8b0f0aSKevin Wolfaccepted incorrect commands will return an error. Users should make sure that
2094d8b0f0aSKevin Wolfall arguments passed to ``device_add`` are consistent with the documented
2104d8b0f0aSKevin Wolfproperty types.
2114d8b0f0aSKevin Wolf
21234c18203SPeter Maydell``StatusInfo`` member ``singlestep`` (since 8.1)
21334c18203SPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''
21434c18203SPeter Maydell
21534c18203SPeter MaydellThe ``singlestep`` member of the ``StatusInfo`` returned from the
21634c18203SPeter Maydell``query-status`` command is deprecated. This member has a confusing
21734c18203SPeter Maydellname and it never did what the documentation claimed or what its name
21834c18203SPeter Maydellsuggests. We do not believe that anybody is actually using the
21934c18203SPeter Maydellinformation provided in this member.
22034c18203SPeter Maydell
22134c18203SPeter MaydellThe information it reports is whether the TCG JIT is in "one
22234c18203SPeter Maydellinstruction per translated block" mode (which can be set on the
22334c18203SPeter Maydellcommand line or via the HMP, but not via QMP). The information remains
22434c18203SPeter Maydellavailable via the HMP 'info jit' command.
22534c18203SPeter Maydell
2261a8fc850SAlex BennéeQEMU Machine Protocol (QMP) events
2271a8fc850SAlex Bennée----------------------------------
2281a8fc850SAlex Bennée
2291a8fc850SAlex Bennée``MEM_UNPLUG_ERROR`` (since 6.2)
2301a8fc850SAlex Bennée''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2311a8fc850SAlex Bennée
2321a8fc850SAlex BennéeUse the more generic event ``DEVICE_UNPLUG_GUEST_ERROR`` instead.
2331a8fc850SAlex Bennée
2345485e52aSAlex Bennée``vcpu`` trace events (since 8.1)
2355485e52aSAlex Bennée'''''''''''''''''''''''''''''''''
2365485e52aSAlex Bennée
2375485e52aSAlex BennéeThe ability to instrument QEMU helper functions with vCPU-aware trace
2385485e52aSAlex Bennéepoints was removed in 7.0. However QMP still exposed the vcpu
2395485e52aSAlex Bennéeparameter. This argument has now been deprecated and the remaining
2405485e52aSAlex Bennéeremaining trace points that used it are selected just by name.
2411a8fc850SAlex Bennée
242e9ccfdd9SPeter MaydellHuman Monitor Protocol (HMP) commands
243e9ccfdd9SPeter Maydell-------------------------------------
244e9ccfdd9SPeter Maydell
245e9ccfdd9SPeter Maydell``singlestep`` (since 8.1)
246e9ccfdd9SPeter Maydell''''''''''''''''''''''''''
247e9ccfdd9SPeter Maydell
248e9ccfdd9SPeter MaydellThe ``singlestep`` command has been replaced by the ``one-insn-per-tb``
249e9ccfdd9SPeter Maydellcommand, which has the same behaviour but a less misleading name.
250e9ccfdd9SPeter Maydell
25154ab3c3fSAlex BennéeHost Architectures
25254ab3c3fSAlex Bennée------------------
25354ab3c3fSAlex Bennée
25454ab3c3fSAlex BennéeBE MIPS (since 7.2)
25554ab3c3fSAlex Bennée'''''''''''''''''''
25654ab3c3fSAlex Bennée
25754ab3c3fSAlex BennéeAs Debian 10 ("Buster") moved into LTS the big endian 32 bit version of
25854ab3c3fSAlex BennéeMIPS moved out of support making it hard to maintain our
25954ab3c3fSAlex Bennéecross-compilation CI tests of the architecture. As we no longer have
26054ab3c3fSAlex BennéeCI coverage support may bitrot away before the deprecation process
26154ab3c3fSAlex Bennéecompletes. The little endian variants of MIPS (both 32 and 64 bit) are
26254ab3c3fSAlex Bennéestill a supported host architecture.
26354ab3c3fSAlex Bennée
2645c27baf9SThomas HuthSystem emulation on 32-bit x86 hosts (since 8.0)
2655c27baf9SThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''
2665c27baf9SThomas Huth
2675c27baf9SThomas HuthSupport for 32-bit x86 host deployments is increasingly uncommon in mainstream
2685c27baf9SThomas HuthOS distributions given the widespread availability of 64-bit x86 hardware.
2695c27baf9SThomas HuthThe QEMU project no longer considers 32-bit x86 support for system emulation to
2705c27baf9SThomas Huthbe an effective use of its limited resources, and thus intends to discontinue
2715c27baf9SThomas Huthit. Since all recent x86 hardware from the past >10 years is capable of the
2725c27baf9SThomas Huth64-bit x86 extensions, a corresponding 64-bit OS should be used instead.
2735c27baf9SThomas Huth
2745c27baf9SThomas Huth
275f3478392SPeter MaydellSystem emulator machines
276f3478392SPeter Maydell------------------------
277f3478392SPeter Maydell
278ac64ebbeSPeter MaydellArm ``virt`` machine ``dtb-kaslr-seed`` property (since 7.1)
279ac64ebbeSPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2805242876fSJason A. Donenfeld
2815242876fSJason A. DonenfeldThe ``dtb-kaslr-seed`` property on the ``virt`` board has been
2825242876fSJason A. Donenfelddeprecated; use the new name ``dtb-randomness`` instead. The new name
2835242876fSJason A. Donenfeldbetter reflects the way this property affects all random data within
2845242876fSJason A. Donenfeldthe device tree blob, not just the ``kaslr-seed`` node.
2855242876fSJason A. Donenfeld
286f59fb188SThomas Huth``pc-i440fx-1.4`` up to ``pc-i440fx-1.7`` (since 7.0)
287f59fb188SThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''''''''
288f59fb188SThomas Huth
289f59fb188SThomas HuthThese old machine types are quite neglected nowadays and thus might have
290f59fb188SThomas Huthvarious pitfalls with regards to live migration. Use a newer machine type
291f59fb188SThomas Huthinstead.
292f59fb188SThomas Huth
293f59fb188SThomas Huth
294f3478392SPeter MaydellBackend options
295f3478392SPeter Maydell---------------
296f3478392SPeter Maydell
297f3478392SPeter MaydellUsing non-persistent backing file with pmem=on (since 6.1)
298f3478392SPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
299f3478392SPeter Maydell
300f3478392SPeter MaydellThis option is used when ``memory-backend-file`` is consumed by emulated NVDIMM
301f3478392SPeter Maydelldevice. However enabling ``memory-backend-file.pmem`` option, when backing file
302f3478392SPeter Maydellis (a) not DAX capable or (b) not on a filesystem that support direct mapping
303f3478392SPeter Maydellof persistent memory, is not safe and may lead to data loss or corruption in case
304f3478392SPeter Maydellof host crash.
305f3478392SPeter MaydellOptions are:
306f3478392SPeter Maydell
307f3478392SPeter Maydell    - modify VM configuration to set ``pmem=off`` to continue using fake NVDIMM
308f3478392SPeter Maydell      (without persistence guaranties) with backing file on non DAX storage
309f3478392SPeter Maydell    - move backing file to NVDIMM storage and keep ``pmem=on``
310f3478392SPeter Maydell      (to have NVDIMM with persistence guaranties).
311f3478392SPeter Maydell
312f3478392SPeter MaydellDevice options
313f3478392SPeter Maydell--------------
314f3478392SPeter Maydell
315f3478392SPeter MaydellEmulated device options
316f3478392SPeter Maydell'''''''''''''''''''''''
317f3478392SPeter Maydell
318e2cc363bSYanan Wang``-device virtio-blk,scsi=on|off`` (since 5.0)
319e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
320f3478392SPeter Maydell
321f3478392SPeter MaydellThe virtio-blk SCSI passthrough feature is a legacy VIRTIO feature.  VIRTIO 1.0
322f3478392SPeter Maydelland later do not support it because the virtio-scsi device was introduced for
323f3478392SPeter Maydellfull SCSI support.  Use virtio-scsi instead when SCSI passthrough is required.
324f3478392SPeter Maydell
325f3478392SPeter MaydellNote this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an
326f3478392SPeter Maydellalias.
327f3478392SPeter Maydell
32836d83272SKlaus Jensen``-device nvme-ns,eui64-default=on|off`` (since 7.1)
32936d83272SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33036d83272SKlaus Jensen
33136d83272SKlaus JensenIn QEMU versions 6.1, 6.2 and 7.0, the ``nvme-ns`` generates an EUI-64
332120f765eSStefan Weilidentifier that is not globally unique. If an EUI-64 identifier is required, the
33336d83272SKlaus Jensenuser must set it explicitly using the ``nvme-ns`` device parameter ``eui64``.
33436d83272SKlaus Jensen
3358b1e59a6SKlaus Jensen``-device nvme,use-intel-id=on|off`` (since 7.1)
3368b1e59a6SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3378b1e59a6SKlaus Jensen
3388b1e59a6SKlaus JensenThe ``nvme`` device originally used a PCI Vendor/Device Identifier combination
3398b1e59a6SKlaus Jensenfrom Intel that was not properly allocated. Since version 5.2, the controller
3408b1e59a6SKlaus Jensenhas used a properly allocated identifier. Deprecate the ``use-intel-id``
3418b1e59a6SKlaus Jensenmachine compatibility parameter.
3428b1e59a6SKlaus Jensen
343adacc814SGregory Price``-device cxl-type3,memdev=xxxx`` (since 8.0)
344adacc814SGregory Price^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
345adacc814SGregory Price
346adacc814SGregory PriceThe ``cxl-type3`` device initially only used a single memory backend.  With
347adacc814SGregory Pricethe addition of volatile memory support, it is now necessary to distinguish
348adacc814SGregory Pricebetween persistent and volatile memory backends.  As such, memdev is deprecated
349adacc814SGregory Pricein favor of persistent-memdev.
350adacc814SGregory Price
35171d72eceSChristian Schoenebeck``-fsdev proxy`` and ``-virtfs proxy`` (since 8.1)
35271d72eceSChristian Schoenebeck^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35371d72eceSChristian Schoenebeck
35471d72eceSChristian SchoenebeckThe 9p ``proxy`` filesystem backend driver has been deprecated and will be
35571d72eceSChristian Schoenebeckremoved (along with its proxy helper daemon) in a future version of QEMU. Please
35671d72eceSChristian Schoenebeckuse ``-fsdev local`` or ``-virtfs local`` for using the 9p ``local`` filesystem
35771d72eceSChristian Schoenebeckbackend, or alternatively consider deploying virtiofsd instead.
35871d72eceSChristian Schoenebeck
35971d72eceSChristian SchoenebeckThe 9p ``proxy`` backend was originally developed as an alternative to the 9p
36071d72eceSChristian Schoenebeck``local`` backend. The idea was to enhance security by dispatching actual low
36171d72eceSChristian Schoenebecklevel filesystem operations from 9p server (QEMU process) over to a separate
36271d72eceSChristian Schoenebeckprocess (the virtfs-proxy-helper binary). However this alternative never gained
36371d72eceSChristian Schoenebeckmomentum. The proxy backend is much slower than the local backend, hasn't seen
36471d72eceSChristian Schoenebeckany development in years, and showed to be less secure, especially due to the
36571d72eceSChristian Schoenebeckfact that its helper daemon must be run as root, whereas with the local backend
36671d72eceSChristian SchoenebeckQEMU is typically run as unprivileged user and allows to tighten behaviour by
36771d72eceSChristian Schoenebeckmapping permissions et al by using its 'mapped' security model option.
36871d72eceSChristian Schoenebeck
36971d72eceSChristian SchoenebeckNowadays it would make sense to reimplement the ``proxy`` backend by using
37071d72eceSChristian SchoenebeckQEMU's ``vhost`` feature, which would eliminate the high latency costs under
37171d72eceSChristian Schoenebeckwhich the 9p ``proxy`` backend currently suffers. However as of to date nobody
37271d72eceSChristian Schoenebeckhas indicated plans for such kind of reimplemention unfortunately.
37371d72eceSChristian Schoenebeck
3747c8d295bSDaniel P. Berrangé
375f3478392SPeter MaydellBlock device options
376f3478392SPeter Maydell''''''''''''''''''''
377f3478392SPeter Maydell
378e2cc363bSYanan Wang``"backing": ""`` (since 2.12)
379e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
380f3478392SPeter Maydell
381f3478392SPeter MaydellIn order to prevent QEMU from automatically opening an image's backing
382f3478392SPeter Maydellchain, use ``"backing": null`` instead.
383f3478392SPeter Maydell
384e2cc363bSYanan Wang``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1)
385e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
386f3478392SPeter Maydell
387f3478392SPeter MaydellOptions for ``rbd`` should be specified according to its runtime options,
388f3478392SPeter Maydelllike other block drivers.  Legacy parsing of keyvalue pair encoded
389f3478392SPeter Maydellfilenames is useful to open images with the old format for backing files;
390f3478392SPeter MaydellThese image files should be updated to use the current format.
391f3478392SPeter Maydell
392f3478392SPeter MaydellExample of legacy encoding::
393f3478392SPeter Maydell
394f3478392SPeter Maydell  json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"}
395f3478392SPeter Maydell
396f3478392SPeter MaydellThe above, converted to the current supported format::
397f3478392SPeter Maydell
398f3478392SPeter Maydell  json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"}
399f3478392SPeter Maydell
400610783cbSDaniel P. Berrangé``iscsi,password=xxx`` (since 8.0)
401610783cbSDaniel P. Berrangé^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
402610783cbSDaniel P. Berrangé
403610783cbSDaniel P. BerrangéSpecifying the iSCSI password in plain text on the command line using the
404610783cbSDaniel P. Berrangé``password`` option is insecure. The ``password-secret`` option should be
405610783cbSDaniel P. Berrangéused instead, to refer to a ``--object secret...`` instance that provides
406610783cbSDaniel P. Berrangéa password via a file, or encrypted.
407610783cbSDaniel P. Berrangé
408f3478392SPeter MaydellBackwards compatibility
409f3478392SPeter Maydell-----------------------
410f3478392SPeter Maydell
411e2cc363bSYanan WangRunnability guarantee of CPU models (since 4.1)
412e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''
413f3478392SPeter Maydell
414f3478392SPeter MaydellPrevious versions of QEMU never changed existing CPU models in
415f3478392SPeter Maydellways that introduced additional host software or hardware
416f3478392SPeter Maydellrequirements to the VM.  This allowed management software to
417f3478392SPeter Maydellsafely change the machine type of an existing VM without
418f3478392SPeter Maydellintroducing new requirements ("runnability guarantee").  This
419f3478392SPeter Maydellprevented CPU models from being updated to include CPU
420f3478392SPeter Maydellvulnerability mitigations, leaving guests vulnerable in the
421f3478392SPeter Maydelldefault configuration.
422f3478392SPeter Maydell
423f3478392SPeter MaydellThe CPU model runnability guarantee won't apply anymore to
424f3478392SPeter Maydellexisting CPU models.  Management software that needs runnability
425f3478392SPeter Maydellguarantees must resolve the CPU model aliases using the
426f3478392SPeter Maydell``alias-of`` field returned by the ``query-cpu-definitions`` QMP
427f3478392SPeter Maydellcommand.
428f3478392SPeter Maydell
429f3478392SPeter MaydellWhile those guarantees are kept, the return value of
430f3478392SPeter Maydell``query-cpu-definitions`` will have existing CPU model aliases
431f3478392SPeter Maydellpoint to a version that doesn't break runnability guarantees
432f3478392SPeter Maydell(specifically, version 1 of those CPU models).  In future QEMU
433f3478392SPeter Maydellversions, aliases will point to newer CPU model versions
434f3478392SPeter Maydelldepending on the machine type, so management software must
435f3478392SPeter Maydellresolve CPU model aliases before starting a virtual machine.
436f3478392SPeter Maydell
437582a098eSThomas HuthQEMU guest agent
438582a098eSThomas Huth----------------
439582a098eSThomas Huth
440582a098eSThomas Huth``--blacklist`` command line option (since 7.2)
441582a098eSThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''
442582a098eSThomas Huth
443582a098eSThomas Huth``--blacklist`` has been replaced by ``--block-rpcs`` (which is a better
444582a098eSThomas Huthwording for what this option does). The short form ``-b`` still stays
445582a098eSThomas Huththe same and thus is the preferred way for scripts that should run with
446582a098eSThomas Huthboth, older and future versions of QEMU.
447582a098eSThomas Huth
448582a098eSThomas Huth``blacklist`` config file option (since 7.2)
449582a098eSThomas Huth''''''''''''''''''''''''''''''''''''''''''''
450582a098eSThomas Huth
451582a098eSThomas HuthThe ``blacklist`` config file option has been renamed to ``block-rpcs``
452582a098eSThomas Huth(to be in sync with the renaming of the corresponding command line
453582a098eSThomas Huthoption).
454