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 23f3478392SPeter MaydellSystem emulator command line arguments 24f3478392SPeter Maydell-------------------------------------- 25f3478392SPeter Maydell 26f3478392SPeter MaydellShort-form boolean options (since 6.0) 27f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''' 28f3478392SPeter Maydell 29f3478392SPeter MaydellBoolean options such as ``share=on``/``share=off`` could be written 30f3478392SPeter Maydellin short form as ``share`` and ``noshare``. This is now deprecated 31f3478392SPeter Maydelland will cause a warning. 32f3478392SPeter Maydell 33f3478392SPeter Maydell``delay`` option for socket character devices (since 6.0) 34f3478392SPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 35f3478392SPeter Maydell 36f3478392SPeter MaydellThe replacement for the ``nodelay`` short-form boolean option is ``nodelay=on`` 37f3478392SPeter Maydellrather than ``delay=off``. 38f3478392SPeter Maydell 39c2511b16SYanan Wang``-smp`` ("parameter=0" SMP configurations) (since 6.2) 40c2511b16SYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''' 41c2511b16SYanan Wang 42c2511b16SYanan WangSpecified CPU topology parameters must be greater than zero. 43c2511b16SYanan Wang 44c2511b16SYanan WangIn the SMP configuration, users should either provide a CPU topology 45c2511b16SYanan Wangparameter with a reasonable value (greater than zero) or just omit it 46c2511b16SYanan Wangand QEMU will compute the missing value. 47c2511b16SYanan Wang 48c2511b16SYanan WangHowever, historically it was implicitly allowed for users to provide 49c2511b16SYanan Wanga parameter with zero value, which is meaningless and could also possibly 50c2511b16SYanan Wangcause unexpected results in the -smp parsing. So support for this kind of 51c2511b16SYanan Wangconfigurations (e.g. -smp 8,sockets=0) is deprecated since 6.2 and will 52c2511b16SYanan Wangbe removed in the near future, users have to ensure that all the topology 53c2511b16SYanan Wangmembers described with -smp are greater than zero. 54f3478392SPeter Maydell 5567f14574SMahmoud MandourPlugin argument passing through ``arg=<string>`` (since 6.1) 5667f14574SMahmoud Mandour'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 5767f14574SMahmoud Mandour 5867f14574SMahmoud MandourPassing TCG plugins arguments through ``arg=`` is redundant is makes the 5967f14574SMahmoud Mandourcommand-line less readable, especially when the argument itself consist of a 6067f14574SMahmoud Mandourname and a value, e.g. ``-plugin plugin_name,arg="arg_name=arg_value"``. 6167f14574SMahmoud MandourTherefore, the usage of ``arg`` is redundant. Single-word arguments are treated 6267f14574SMahmoud Mandouras short-form boolean values, and passed to plugins as ``arg_name=on``. 6367f14574SMahmoud MandourHowever, short-form booleans are deprecated and full explicit ``arg_name=on`` 6467f14574SMahmoud Mandourform is preferred. 6567f14574SMahmoud Mandour 66df37330cSThomas Huth``-no-hpet`` (since 8.0) 67df37330cSThomas Huth'''''''''''''''''''''''' 68df37330cSThomas Huth 69df37330cSThomas HuthThe HPET setting has been turned into a machine property. 70df37330cSThomas HuthUse ``-machine hpet=off`` instead. 71df37330cSThomas Huth 72fffa36b6SThomas Huth``-no-acpi`` (since 8.0) 73fffa36b6SThomas Huth'''''''''''''''''''''''' 74fffa36b6SThomas Huth 75fffa36b6SThomas HuthThe ``-no-acpi`` setting has been turned into a machine property. 76fffa36b6SThomas HuthUse ``-machine acpi=off`` instead. 77fffa36b6SThomas Huth 7880bd81caSClaudio Imbrenda``-async-teardown`` (since 8.1) 7980bd81caSClaudio Imbrenda''''''''''''''''''''''''''''''' 8080bd81caSClaudio Imbrenda 8180bd81caSClaudio ImbrendaUse ``-run-with async-teardown=on`` instead. 8280bd81caSClaudio Imbrenda 839ffcbe2aSThomas Huth``-chroot`` (since 8.1) 849ffcbe2aSThomas Huth''''''''''''''''''''''' 859ffcbe2aSThomas Huth 869ffcbe2aSThomas HuthUse ``-run-with chroot=dir`` instead. 879ffcbe2aSThomas Huth 8812fd0f41SPeter Maydell``-singlestep`` (since 8.1) 8912fd0f41SPeter Maydell''''''''''''''''''''''''''' 9012fd0f41SPeter Maydell 9112fd0f41SPeter MaydellThe ``-singlestep`` option has been turned into an accelerator property, 9212fd0f41SPeter Maydelland given a name that better reflects what it actually does. 9312fd0f41SPeter MaydellUse ``-accel tcg,one-insn-per-tb=on`` instead. 9412fd0f41SPeter Maydell 9512fd0f41SPeter MaydellUser-mode emulator command line arguments 9612fd0f41SPeter Maydell----------------------------------------- 9712fd0f41SPeter Maydell 9812fd0f41SPeter Maydell``-singlestep`` (since 8.1) 9912fd0f41SPeter Maydell''''''''''''''''''''''''''' 10012fd0f41SPeter Maydell 10112fd0f41SPeter MaydellThe ``-singlestep`` option has been given a name that better reflects 10212fd0f41SPeter Maydellwhat it actually does. For both linux-user and bsd-user, use the 10312fd0f41SPeter Maydellnew ``-one-insn-per-tb`` option instead. 10467f14574SMahmoud Mandour 105f3478392SPeter MaydellQEMU Machine Protocol (QMP) commands 106f3478392SPeter Maydell------------------------------------ 107f3478392SPeter Maydell 108e2cc363bSYanan Wang``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8) 109e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 110f3478392SPeter Maydell 111f3478392SPeter MaydellUse argument ``id`` instead. 112f3478392SPeter Maydell 113e2cc363bSYanan Wang``eject`` argument ``device`` (since 2.8) 114e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''' 115f3478392SPeter Maydell 116f3478392SPeter MaydellUse argument ``id`` instead. 117f3478392SPeter Maydell 118e2cc363bSYanan Wang``blockdev-change-medium`` argument ``device`` (since 2.8) 119e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 120f3478392SPeter Maydell 121f3478392SPeter MaydellUse argument ``id`` instead. 122f3478392SPeter Maydell 123e2cc363bSYanan Wang``block_set_io_throttle`` argument ``device`` (since 2.8) 124e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 125f3478392SPeter Maydell 126f3478392SPeter MaydellUse argument ``id`` instead. 127f3478392SPeter Maydell 128e2cc363bSYanan Wang``blockdev-add`` empty string argument ``backing`` (since 2.10) 129e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 130f3478392SPeter Maydell 131f3478392SPeter MaydellUse argument value ``null`` instead. 132f3478392SPeter Maydell 133e2cc363bSYanan Wang``block-commit`` arguments ``base`` and ``top`` (since 3.1) 134e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 135f3478392SPeter Maydell 136f3478392SPeter MaydellUse arguments ``base-node`` and ``top-node`` instead. 137f3478392SPeter Maydell 138f3478392SPeter Maydell``nbd-server-add`` and ``nbd-server-remove`` (since 5.2) 139f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''' 140f3478392SPeter Maydell 141f3478392SPeter MaydellUse the more generic commands ``block-export-add`` and ``block-export-del`` 142f3478392SPeter Maydellinstead. As part of this deprecation, where ``nbd-server-add`` used a 143f3478392SPeter Maydellsingle ``bitmap``, the new ``block-export-add`` uses a list of ``bitmaps``. 144f3478392SPeter Maydell 14575ecee72SMarkus Armbruster``query-qmp-schema`` return value member ``values`` (since 6.2) 14675ecee72SMarkus Armbruster''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 14775ecee72SMarkus Armbruster 14875ecee72SMarkus ArmbrusterMember ``values`` in return value elements with meta-type ``enum`` is 14975ecee72SMarkus Armbrusterdeprecated. Use ``members`` instead. 15075ecee72SMarkus Armbruster 1511084159bSVladimir Sementsov-Ogievskiy``drive-backup`` (since 6.2) 1521084159bSVladimir Sementsov-Ogievskiy'''''''''''''''''''''''''''' 1531084159bSVladimir Sementsov-Ogievskiy 1541084159bSVladimir Sementsov-OgievskiyUse ``blockdev-backup`` in combination with ``blockdev-add`` instead. 1551084159bSVladimir Sementsov-OgievskiyThis change primarily separates the creation/opening process of the backup 1561084159bSVladimir Sementsov-Ogievskiytarget with explicit, separate steps. ``blockdev-backup`` uses mostly the 1571084159bSVladimir Sementsov-Ogievskiysame arguments as ``drive-backup``, except the ``format`` and ``mode`` 1581084159bSVladimir Sementsov-Ogievskiyoptions are removed in favor of using explicit ``blockdev-create`` and 1591084159bSVladimir Sementsov-Ogievskiy``blockdev-add`` calls. See :doc:`/interop/live-block-operations` for 1601084159bSVladimir Sementsov-Ogievskiydetails. 1611084159bSVladimir Sementsov-Ogievskiy 1624d8b0f0aSKevin WolfIncorrectly typed ``device_add`` arguments (since 6.2) 1634d8b0f0aSKevin Wolf'''''''''''''''''''''''''''''''''''''''''''''''''''''' 1644d8b0f0aSKevin Wolf 1654d8b0f0aSKevin WolfDue to shortcomings in the internal implementation of ``device_add``, QEMU 1664d8b0f0aSKevin Wolfincorrectly accepts certain invalid arguments: Any object or list arguments are 1674d8b0f0aSKevin Wolfsilently ignored. Other argument types are not checked, but an implicit 1684d8b0f0aSKevin Wolfconversion happens, so that e.g. string values can be assigned to integer 1694d8b0f0aSKevin Wolfdevice properties or vice versa. 1704d8b0f0aSKevin Wolf 1714d8b0f0aSKevin WolfThis is a bug in QEMU that will be fixed in the future so that previously 1724d8b0f0aSKevin Wolfaccepted incorrect commands will return an error. Users should make sure that 1734d8b0f0aSKevin Wolfall arguments passed to ``device_add`` are consistent with the documented 1744d8b0f0aSKevin Wolfproperty types. 1754d8b0f0aSKevin Wolf 17634c18203SPeter Maydell``StatusInfo`` member ``singlestep`` (since 8.1) 17734c18203SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''' 17834c18203SPeter Maydell 17934c18203SPeter MaydellThe ``singlestep`` member of the ``StatusInfo`` returned from the 18034c18203SPeter Maydell``query-status`` command is deprecated. This member has a confusing 18134c18203SPeter Maydellname and it never did what the documentation claimed or what its name 18234c18203SPeter Maydellsuggests. We do not believe that anybody is actually using the 18334c18203SPeter Maydellinformation provided in this member. 18434c18203SPeter Maydell 18534c18203SPeter MaydellThe information it reports is whether the TCG JIT is in "one 18634c18203SPeter Maydellinstruction per translated block" mode (which can be set on the 18734c18203SPeter Maydellcommand line or via the HMP, but not via QMP). The information remains 18834c18203SPeter Maydellavailable via the HMP 'info jit' command. 18934c18203SPeter Maydell 1901a8fc850SAlex BennéeQEMU Machine Protocol (QMP) events 1911a8fc850SAlex Bennée---------------------------------- 1921a8fc850SAlex Bennée 1931a8fc850SAlex Bennée``MEM_UNPLUG_ERROR`` (since 6.2) 1941a8fc850SAlex Bennée'''''''''''''''''''''''''''''''''''''''''''''''''''''''' 1951a8fc850SAlex Bennée 1961a8fc850SAlex BennéeUse the more generic event ``DEVICE_UNPLUG_GUEST_ERROR`` instead. 1971a8fc850SAlex Bennée 1985485e52aSAlex Bennée``vcpu`` trace events (since 8.1) 1995485e52aSAlex Bennée''''''''''''''''''''''''''''''''' 2005485e52aSAlex Bennée 2015485e52aSAlex BennéeThe ability to instrument QEMU helper functions with vCPU-aware trace 2025485e52aSAlex Bennéepoints was removed in 7.0. However QMP still exposed the vcpu 2035485e52aSAlex Bennéeparameter. This argument has now been deprecated and the remaining 2045485e52aSAlex Bennéeremaining trace points that used it are selected just by name. 2051a8fc850SAlex Bennée 206e9ccfdd9SPeter MaydellHuman Monitor Protocol (HMP) commands 207e9ccfdd9SPeter Maydell------------------------------------- 208e9ccfdd9SPeter Maydell 209e9ccfdd9SPeter Maydell``singlestep`` (since 8.1) 210e9ccfdd9SPeter Maydell'''''''''''''''''''''''''' 211e9ccfdd9SPeter Maydell 212e9ccfdd9SPeter MaydellThe ``singlestep`` command has been replaced by the ``one-insn-per-tb`` 213e9ccfdd9SPeter Maydellcommand, which has the same behaviour but a less misleading name. 214e9ccfdd9SPeter Maydell 21554ab3c3fSAlex BennéeHost Architectures 21654ab3c3fSAlex Bennée------------------ 21754ab3c3fSAlex Bennée 21854ab3c3fSAlex BennéeBE MIPS (since 7.2) 21954ab3c3fSAlex Bennée''''''''''''''''''' 22054ab3c3fSAlex Bennée 22154ab3c3fSAlex BennéeAs Debian 10 ("Buster") moved into LTS the big endian 32 bit version of 22254ab3c3fSAlex BennéeMIPS moved out of support making it hard to maintain our 22354ab3c3fSAlex Bennéecross-compilation CI tests of the architecture. As we no longer have 22454ab3c3fSAlex BennéeCI coverage support may bitrot away before the deprecation process 22554ab3c3fSAlex Bennéecompletes. The little endian variants of MIPS (both 32 and 64 bit) are 22654ab3c3fSAlex Bennéestill a supported host architecture. 22754ab3c3fSAlex Bennée 2285c27baf9SThomas HuthSystem emulation on 32-bit x86 hosts (since 8.0) 2295c27baf9SThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''' 2305c27baf9SThomas Huth 2315c27baf9SThomas HuthSupport for 32-bit x86 host deployments is increasingly uncommon in mainstream 2325c27baf9SThomas HuthOS distributions given the widespread availability of 64-bit x86 hardware. 2335c27baf9SThomas HuthThe QEMU project no longer considers 32-bit x86 support for system emulation to 2345c27baf9SThomas Huthbe an effective use of its limited resources, and thus intends to discontinue 2355c27baf9SThomas Huthit. Since all recent x86 hardware from the past >10 years is capable of the 2365c27baf9SThomas Huth64-bit x86 extensions, a corresponding 64-bit OS should be used instead. 2375c27baf9SThomas Huth 2385c27baf9SThomas Huth 2399997771bSPhilippe Mathieu-DaudéSystem emulator CPUs 2409997771bSPhilippe Mathieu-Daudé-------------------- 2419997771bSPhilippe Mathieu-Daudé 2429997771bSPhilippe Mathieu-DaudéNios II CPU (since 8.2) 2439997771bSPhilippe Mathieu-Daudé''''''''''''''''''''''' 2449997771bSPhilippe Mathieu-Daudé 2459997771bSPhilippe Mathieu-DaudéThe Nios II architecture is orphan. The ``nios2`` guest CPU support is 2469997771bSPhilippe Mathieu-Daudédeprecated and will be removed in a future version of QEMU. 2479997771bSPhilippe Mathieu-Daudé 2489997771bSPhilippe Mathieu-Daudé 249f3478392SPeter MaydellSystem emulator machines 250f3478392SPeter Maydell------------------------ 251f3478392SPeter Maydell 252ac64ebbeSPeter MaydellArm ``virt`` machine ``dtb-kaslr-seed`` property (since 7.1) 253ac64ebbeSPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 2545242876fSJason A. Donenfeld 2555242876fSJason A. DonenfeldThe ``dtb-kaslr-seed`` property on the ``virt`` board has been 2565242876fSJason A. Donenfelddeprecated; use the new name ``dtb-randomness`` instead. The new name 2575242876fSJason A. Donenfeldbetter reflects the way this property affects all random data within 2585242876fSJason A. Donenfeldthe device tree blob, not just the ``kaslr-seed`` node. 2595242876fSJason A. Donenfeld 260c7437f0dSThomas Huth``pc-i440fx-2.0`` up to ``pc-i440fx-2.3`` (since 8.2) 261c7437f0dSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''' 262c7437f0dSThomas Huth 263c7437f0dSThomas HuthThese old machine types are quite neglected nowadays and thus might have 264c7437f0dSThomas Huthvarious pitfalls with regards to live migration. Use a newer machine type 265c7437f0dSThomas Huthinstead. 266c7437f0dSThomas Huth 2679997771bSPhilippe Mathieu-DaudéNios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (since 8.2) 2689997771bSPhilippe Mathieu-Daudé''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 2699997771bSPhilippe Mathieu-Daudé 2709997771bSPhilippe Mathieu-DaudéThe Nios II architecture is orphan. 2719997771bSPhilippe Mathieu-Daudé 272322b038cSSamuel Tardieu``shix`` (since 9.0) 273322b038cSSamuel Tardieu'''''''''''''''''''' 274322b038cSSamuel Tardieu 275322b038cSSamuel TardieuThe machine is no longer in existence and has been long unmaintained 276*c8cdec74SSamuel Tardieuin QEMU. This also holds for the TC51828 16MiB flash that it uses. 277c7437f0dSThomas Huth 278f3478392SPeter MaydellBackend options 279f3478392SPeter Maydell--------------- 280f3478392SPeter Maydell 281f3478392SPeter MaydellUsing non-persistent backing file with pmem=on (since 6.1) 282f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 283f3478392SPeter Maydell 284f3478392SPeter MaydellThis option is used when ``memory-backend-file`` is consumed by emulated NVDIMM 285f3478392SPeter Maydelldevice. However enabling ``memory-backend-file.pmem`` option, when backing file 286f3478392SPeter Maydellis (a) not DAX capable or (b) not on a filesystem that support direct mapping 287f3478392SPeter Maydellof persistent memory, is not safe and may lead to data loss or corruption in case 288f3478392SPeter Maydellof host crash. 289f3478392SPeter MaydellOptions are: 290f3478392SPeter Maydell 291f3478392SPeter Maydell - modify VM configuration to set ``pmem=off`` to continue using fake NVDIMM 292f3478392SPeter Maydell (without persistence guaranties) with backing file on non DAX storage 293f3478392SPeter Maydell - move backing file to NVDIMM storage and keep ``pmem=on`` 294f3478392SPeter Maydell (to have NVDIMM with persistence guaranties). 295f3478392SPeter Maydell 296f3478392SPeter MaydellDevice options 297f3478392SPeter Maydell-------------- 298f3478392SPeter Maydell 299f3478392SPeter MaydellEmulated device options 300f3478392SPeter Maydell''''''''''''''''''''''' 301f3478392SPeter Maydell 302e2cc363bSYanan Wang``-device virtio-blk,scsi=on|off`` (since 5.0) 303e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 304f3478392SPeter Maydell 305f3478392SPeter MaydellThe virtio-blk SCSI passthrough feature is a legacy VIRTIO feature. VIRTIO 1.0 306f3478392SPeter Maydelland later do not support it because the virtio-scsi device was introduced for 307f3478392SPeter Maydellfull SCSI support. Use virtio-scsi instead when SCSI passthrough is required. 308f3478392SPeter Maydell 309f3478392SPeter MaydellNote this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an 310f3478392SPeter Maydellalias. 311f3478392SPeter Maydell 31236d83272SKlaus Jensen``-device nvme-ns,eui64-default=on|off`` (since 7.1) 31336d83272SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 31436d83272SKlaus Jensen 31536d83272SKlaus JensenIn QEMU versions 6.1, 6.2 and 7.0, the ``nvme-ns`` generates an EUI-64 316120f765eSStefan Weilidentifier that is not globally unique. If an EUI-64 identifier is required, the 31736d83272SKlaus Jensenuser must set it explicitly using the ``nvme-ns`` device parameter ``eui64``. 31836d83272SKlaus Jensen 3198b1e59a6SKlaus Jensen``-device nvme,use-intel-id=on|off`` (since 7.1) 3208b1e59a6SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3218b1e59a6SKlaus Jensen 3228b1e59a6SKlaus JensenThe ``nvme`` device originally used a PCI Vendor/Device Identifier combination 3238b1e59a6SKlaus Jensenfrom Intel that was not properly allocated. Since version 5.2, the controller 3248b1e59a6SKlaus Jensenhas used a properly allocated identifier. Deprecate the ``use-intel-id`` 3258b1e59a6SKlaus Jensenmachine compatibility parameter. 3268b1e59a6SKlaus Jensen 327adacc814SGregory Price``-device cxl-type3,memdev=xxxx`` (since 8.0) 328adacc814SGregory Price^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329adacc814SGregory Price 330adacc814SGregory PriceThe ``cxl-type3`` device initially only used a single memory backend. With 331adacc814SGregory Pricethe addition of volatile memory support, it is now necessary to distinguish 332adacc814SGregory Pricebetween persistent and volatile memory backends. As such, memdev is deprecated 333adacc814SGregory Pricein favor of persistent-memdev. 334adacc814SGregory Price 33571d72eceSChristian Schoenebeck``-fsdev proxy`` and ``-virtfs proxy`` (since 8.1) 33671d72eceSChristian Schoenebeck^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 33771d72eceSChristian Schoenebeck 33871d72eceSChristian SchoenebeckThe 9p ``proxy`` filesystem backend driver has been deprecated and will be 33971d72eceSChristian Schoenebeckremoved (along with its proxy helper daemon) in a future version of QEMU. Please 34071d72eceSChristian Schoenebeckuse ``-fsdev local`` or ``-virtfs local`` for using the 9p ``local`` filesystem 34171d72eceSChristian Schoenebeckbackend, or alternatively consider deploying virtiofsd instead. 34271d72eceSChristian Schoenebeck 34371d72eceSChristian SchoenebeckThe 9p ``proxy`` backend was originally developed as an alternative to the 9p 34471d72eceSChristian Schoenebeck``local`` backend. The idea was to enhance security by dispatching actual low 34571d72eceSChristian Schoenebecklevel filesystem operations from 9p server (QEMU process) over to a separate 34671d72eceSChristian Schoenebeckprocess (the virtfs-proxy-helper binary). However this alternative never gained 34771d72eceSChristian Schoenebeckmomentum. The proxy backend is much slower than the local backend, hasn't seen 34871d72eceSChristian Schoenebeckany development in years, and showed to be less secure, especially due to the 34971d72eceSChristian Schoenebeckfact that its helper daemon must be run as root, whereas with the local backend 35071d72eceSChristian SchoenebeckQEMU is typically run as unprivileged user and allows to tighten behaviour by 35171d72eceSChristian Schoenebeckmapping permissions et al by using its 'mapped' security model option. 35271d72eceSChristian Schoenebeck 35371d72eceSChristian SchoenebeckNowadays it would make sense to reimplement the ``proxy`` backend by using 35471d72eceSChristian SchoenebeckQEMU's ``vhost`` feature, which would eliminate the high latency costs under 35571d72eceSChristian Schoenebeckwhich the 9p ``proxy`` backend currently suffers. However as of to date nobody 356313e1629SStefan Weilhas indicated plans for such kind of reimplementation unfortunately. 35771d72eceSChristian Schoenebeck 358f57d5f80SDaniel Henrique BarbozaRISC-V 'any' CPU type ``-cpu any`` (since 8.2) 359f57d5f80SDaniel Henrique Barboza^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 360f57d5f80SDaniel Henrique Barboza 361f57d5f80SDaniel Henrique BarbozaThe 'any' CPU type was introduced back in 2018 and has been around since the 362f57d5f80SDaniel Henrique Barbozainitial RISC-V QEMU port. Its usage has always been unclear: users don't know 363f57d5f80SDaniel Henrique Barbozawhat to expect from a CPU called 'any', and in fact the CPU does not do anything 364f57d5f80SDaniel Henrique Barbozaspecial that isn't already done by the default CPUs rv32/rv64. 365f57d5f80SDaniel Henrique Barboza 366f57d5f80SDaniel Henrique BarbozaAfter the introduction of the 'max' CPU type, RISC-V now has a good coverage 367f57d5f80SDaniel Henrique Barbozaof generic CPUs: rv32 and rv64 as default CPUs and 'max' as a feature complete 368f57d5f80SDaniel Henrique BarbozaCPU for both 32 and 64 bit builds. Users are then discouraged to use the 'any' 369f57d5f80SDaniel Henrique BarbozaCPU type starting in 8.2. 3707c8d295bSDaniel P. Berrangé 3718043effdSDaniel Henrique BarbozaRISC-V CPU properties which start with capital 'Z' (since 8.2) 3728043effdSDaniel Henrique Barboza^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3738043effdSDaniel Henrique Barboza 3748043effdSDaniel Henrique BarbozaAll RISC-V CPU properties which start with capital 'Z' are being deprecated 3758043effdSDaniel Henrique Barbozastarting in 8.2. The reason is that they were wrongly added with capital 'Z' 3768043effdSDaniel Henrique Barbozain the past. CPU properties were later added with lower-case names, which 3778043effdSDaniel Henrique Barbozais the format we want to use from now on. 3788043effdSDaniel Henrique Barboza 3798043effdSDaniel Henrique BarbozaUsers which try to use these deprecated properties will receive a warning 3808043effdSDaniel Henrique Barbozarecommending to switch to their stable counterparts: 3818043effdSDaniel Henrique Barboza 3828043effdSDaniel Henrique Barboza- "Zifencei" should be replaced with "zifencei" 3838043effdSDaniel Henrique Barboza- "Zicsr" should be replaced with "zicsr" 3848043effdSDaniel Henrique Barboza- "Zihintntl" should be replaced with "zihintntl" 3858043effdSDaniel Henrique Barboza- "Zihintpause" should be replaced with "zihintpause" 3868043effdSDaniel Henrique Barboza- "Zawrs" should be replaced with "zawrs" 3878043effdSDaniel Henrique Barboza- "Zfa" should be replaced with "zfa" 3888043effdSDaniel Henrique Barboza- "Zfh" should be replaced with "zfh" 3898043effdSDaniel Henrique Barboza- "Zfhmin" should be replaced with "zfhmin" 3908043effdSDaniel Henrique Barboza- "Zve32f" should be replaced with "zve32f" 3918043effdSDaniel Henrique Barboza- "Zve64f" should be replaced with "zve64f" 3928043effdSDaniel Henrique Barboza- "Zve64d" should be replaced with "zve64d" 3938043effdSDaniel Henrique Barboza 394e9a54265SThomas Huth``-device pvrdma`` and the rdma subsystem (since 8.2) 395e9a54265SThomas Huth^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 396e9a54265SThomas Huth 397e9a54265SThomas HuthThe pvrdma device and the whole rdma subsystem are in a bad shape and 398e9a54265SThomas Huthwithout active maintenance. The QEMU project intends to remove this 399e9a54265SThomas Huthdevice and subsystem from the code base in a future release without 400e9a54265SThomas Huthreplacement unless somebody steps up and improves the situation. 401e9a54265SThomas Huth 402e2cc363bSYanan Wang 403e2cc363bSYanan WangBlock device options 404f3478392SPeter Maydell'''''''''''''''''''' 405f3478392SPeter Maydell 406f3478392SPeter Maydell``"backing": ""`` (since 2.12) 407f3478392SPeter Maydell^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 408f3478392SPeter Maydell 409f3478392SPeter MaydellIn order to prevent QEMU from automatically opening an image's backing 410f3478392SPeter Maydellchain, use ``"backing": null`` instead. 411f3478392SPeter Maydell 412f3478392SPeter Maydell``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1) 413f3478392SPeter Maydell^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 414f3478392SPeter Maydell 415f3478392SPeter MaydellOptions for ``rbd`` should be specified according to its runtime options, 416f3478392SPeter Maydelllike other block drivers. Legacy parsing of keyvalue pair encoded 417f3478392SPeter Maydellfilenames is useful to open images with the old format for backing files; 418f3478392SPeter MaydellThese image files should be updated to use the current format. 419f3478392SPeter Maydell 420f3478392SPeter MaydellExample of legacy encoding:: 421e2cc363bSYanan Wang 422e2cc363bSYanan Wang json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"} 423f3478392SPeter Maydell 424f3478392SPeter MaydellThe above, converted to the current supported format:: 425f3478392SPeter Maydell 426f3478392SPeter Maydell json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"} 427f3478392SPeter Maydell 428610783cbSDaniel P. Berrangé``iscsi,password=xxx`` (since 8.0) 429610783cbSDaniel P. Berrangé^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 430610783cbSDaniel P. Berrangé 431610783cbSDaniel P. BerrangéSpecifying the iSCSI password in plain text on the command line using the 432610783cbSDaniel P. Berrangé``password`` option is insecure. The ``password-secret`` option should be 433610783cbSDaniel P. Berrangéused instead, to refer to a ``--object secret...`` instance that provides 434610783cbSDaniel P. Berrangéa password via a file, or encrypted. 435610783cbSDaniel P. Berrangé 436bc5e8445SRob BradfordCPU device properties 437bc5e8445SRob Bradford''''''''''''''''''''' 438bc5e8445SRob Bradford 439bc5e8445SRob Bradford``pmu-num=n`` on RISC-V CPUs (since 8.2) 440bc5e8445SRob Bradford^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 441bc5e8445SRob Bradford 442bc5e8445SRob BradfordIn order to support more flexible counter configurations this has been replaced 443bc5e8445SRob Bradfordby a ``pmu-mask`` property. If set of counters is continuous then the mask can 444bc5e8445SRob Bradfordbe calculated with ``((2 ^ n) - 1) << 3``. The least significant three bits 445bc5e8445SRob Bradfordmust be left clear. 446bc5e8445SRob Bradford 447bc5e8445SRob Bradford 448f3478392SPeter MaydellBackwards compatibility 449f3478392SPeter Maydell----------------------- 450f3478392SPeter Maydell 451e2cc363bSYanan WangRunnability guarantee of CPU models (since 4.1) 452e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''' 453f3478392SPeter Maydell 454f3478392SPeter MaydellPrevious versions of QEMU never changed existing CPU models in 455f3478392SPeter Maydellways that introduced additional host software or hardware 456f3478392SPeter Maydellrequirements to the VM. This allowed management software to 457f3478392SPeter Maydellsafely change the machine type of an existing VM without 458f3478392SPeter Maydellintroducing new requirements ("runnability guarantee"). This 459f3478392SPeter Maydellprevented CPU models from being updated to include CPU 460f3478392SPeter Maydellvulnerability mitigations, leaving guests vulnerable in the 461f3478392SPeter Maydelldefault configuration. 462f3478392SPeter Maydell 463f3478392SPeter MaydellThe CPU model runnability guarantee won't apply anymore to 464f3478392SPeter Maydellexisting CPU models. Management software that needs runnability 465f3478392SPeter Maydellguarantees must resolve the CPU model aliases using the 466f3478392SPeter Maydell``alias-of`` field returned by the ``query-cpu-definitions`` QMP 467f3478392SPeter Maydellcommand. 468f3478392SPeter Maydell 469f3478392SPeter MaydellWhile those guarantees are kept, the return value of 470f3478392SPeter Maydell``query-cpu-definitions`` will have existing CPU model aliases 471f3478392SPeter Maydellpoint to a version that doesn't break runnability guarantees 472f3478392SPeter Maydell(specifically, version 1 of those CPU models). In future QEMU 473f3478392SPeter Maydellversions, aliases will point to newer CPU model versions 474f3478392SPeter Maydelldepending on the machine type, so management software must 475f3478392SPeter Maydellresolve CPU model aliases before starting a virtual machine. 476f3478392SPeter Maydell 477582a098eSThomas HuthQEMU guest agent 478582a098eSThomas Huth---------------- 479582a098eSThomas Huth 480582a098eSThomas Huth``--blacklist`` command line option (since 7.2) 481582a098eSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''' 482582a098eSThomas Huth 483582a098eSThomas Huth``--blacklist`` has been replaced by ``--block-rpcs`` (which is a better 484582a098eSThomas Huthwording for what this option does). The short form ``-b`` still stays 485582a098eSThomas Huththe same and thus is the preferred way for scripts that should run with 486582a098eSThomas Huthboth, older and future versions of QEMU. 487582a098eSThomas Huth 488582a098eSThomas Huth``blacklist`` config file option (since 7.2) 489582a098eSThomas Huth'''''''''''''''''''''''''''''''''''''''''''' 490582a098eSThomas Huth 491582a098eSThomas HuthThe ``blacklist`` config file option has been renamed to ``block-rpcs`` 492582a098eSThomas Huth(to be in sync with the renaming of the corresponding command line 493582a098eSThomas Huthoption). 4947b24d326SJuan Quintela 4957b24d326SJuan QuintelaMigration 4967b24d326SJuan Quintela--------- 4977b24d326SJuan Quintela 4987b24d326SJuan Quintela``skipped`` MigrationStats field (since 8.1) 4997b24d326SJuan Quintela'''''''''''''''''''''''''''''''''''''''''''' 5007b24d326SJuan Quintela 5017b24d326SJuan Quintela``skipped`` field in Migration stats has been deprecated. It hasn't 5027b24d326SJuan Quintelabeen used for more than 10 years. 5037b24d326SJuan Quintela 50440101f32SJuan Quintela``inc`` migrate command option (since 8.2) 50540101f32SJuan Quintela'''''''''''''''''''''''''''''''''''''''''' 50640101f32SJuan Quintela 50740101f32SJuan QuintelaUse blockdev-mirror with NBD instead. 50840101f32SJuan Quintela 50940101f32SJuan QuintelaAs an intermediate step the ``inc`` functionality can be achieved by 51040101f32SJuan Quintelasetting the ``block-incremental`` migration parameter to ``true``. 51140101f32SJuan QuintelaBut this parameter is also deprecated. 5128846b5bfSJuan Quintela 5138846b5bfSJuan Quintela``blk`` migrate command option (since 8.2) 5148846b5bfSJuan Quintela'''''''''''''''''''''''''''''''''''''''''' 5158846b5bfSJuan Quintela 5168846b5bfSJuan QuintelaUse blockdev-mirror with NBD instead. 5178846b5bfSJuan Quintela 5188846b5bfSJuan QuintelaAs an intermediate step the ``blk`` functionality can be achieved by 5198846b5bfSJuan Quintelasetting the ``block`` migration capability to ``true``. But this 5208846b5bfSJuan Quintelacapability is also deprecated. 52166db46caSJuan Quintela 52266db46caSJuan Quintelablock migration (since 8.2) 52366db46caSJuan Quintela''''''''''''''''''''''''''' 52466db46caSJuan Quintela 52566db46caSJuan QuintelaBlock migration is too inflexible. It needs to migrate all block 52666db46caSJuan Quinteladevices or none. 52766db46caSJuan Quintela 52866db46caSJuan QuintelaPlease see "QMP invocation for live storage migration with 52966db46caSJuan Quintela``blockdev-mirror`` + NBD" in docs/interop/live-block-operations.rst 53066db46caSJuan Quintelafor a detailed explanation. 531864128dfSJuan Quintela 532864128dfSJuan Quintelaold compression method (since 8.2) 533864128dfSJuan Quintela'''''''''''''''''''''''''''''''''' 534864128dfSJuan Quintela 535864128dfSJuan QuintelaCompression method fails too much. Too many races. We are going to 536864128dfSJuan Quintelaremove it if nobody fixes it. For starters, migration-test 5376477366fSMichael Tokarevcompression tests are disabled because they fail randomly. If you need 538864128dfSJuan Quintelacompression, use multifd compression methods. 539