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 14ce80c4faSDaniel P. BerrangéAs a special exception to this general timeframe, rather than have an 15ce80c4faSDaniel P. Berrangéindefinite lifetime, versioned machine types are only intended to be 16ce80c4faSDaniel P. Berrangésupported for a period of 6 years, equivalent to 18 QEMU releases. All 17ce80c4faSDaniel P. Berrangéversioned machine types will be automatically marked deprecated after an 18ce80c4faSDaniel P. Berrangéinitial 3 years (9 QEMU releases) has passed, and will then be deleted after 19ce80c4faSDaniel P. Berrangéa further 3 year period has passed. It is recommended that a deprecated 20ce80c4faSDaniel P. Berrangémachine type is only used for incoming migrations and restore of saved state, 21ce80c4faSDaniel P. Berrangéfor pre-existing VM deployments. They should be scheduled for updating to a 22ce80c4faSDaniel P. Berrangénewer machine type during an appropriate service window. Newly deployed VMs 23ce80c4faSDaniel P. Berrangéshould exclusively use a non-deprecated machine type, with use of the most 24ce80c4faSDaniel P. Berrangérecent version highly recommended. Non-versioned machine types follow the 25ce80c4faSDaniel P. Berrangégeneral feature deprecation policy. 26ce80c4faSDaniel P. Berrangé 27f3478392SPeter MaydellPrior to the 2.10.0 release there was no official policy on how 28f3478392SPeter Maydelllong features would be deprecated prior to their removal, nor 29f3478392SPeter Maydellany documented list of which features were deprecated. Thus 30f3478392SPeter Maydellany features deprecated prior to 2.10.0 will be treated as if 31f3478392SPeter Maydellthey were first deprecated in the 2.10.0 release. 32f3478392SPeter Maydell 33f3478392SPeter MaydellWhat follows is a list of all features currently marked as 34f3478392SPeter Maydelldeprecated. 35f3478392SPeter Maydell 36f3478392SPeter MaydellSystem emulator command line arguments 37f3478392SPeter Maydell-------------------------------------- 38f3478392SPeter Maydell 39f3478392SPeter MaydellShort-form boolean options (since 6.0) 40f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''' 41f3478392SPeter Maydell 42f3478392SPeter MaydellBoolean options such as ``share=on``/``share=off`` could be written 43f3478392SPeter Maydellin short form as ``share`` and ``noshare``. This is now deprecated 44f3478392SPeter Maydelland will cause a warning. 45f3478392SPeter Maydell 46f3478392SPeter Maydell``delay`` option for socket character devices (since 6.0) 47f3478392SPeter Maydell''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 48f3478392SPeter Maydell 49f3478392SPeter MaydellThe replacement for the ``nodelay`` short-form boolean option is ``nodelay=on`` 50f3478392SPeter Maydellrather than ``delay=off``. 51f3478392SPeter Maydell 5267f14574SMahmoud MandourPlugin argument passing through ``arg=<string>`` (since 6.1) 5367f14574SMahmoud Mandour'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 5467f14574SMahmoud Mandour 5567f14574SMahmoud MandourPassing TCG plugins arguments through ``arg=`` is redundant is makes the 5667f14574SMahmoud Mandourcommand-line less readable, especially when the argument itself consist of a 5767f14574SMahmoud Mandourname and a value, e.g. ``-plugin plugin_name,arg="arg_name=arg_value"``. 5867f14574SMahmoud MandourTherefore, the usage of ``arg`` is redundant. Single-word arguments are treated 5967f14574SMahmoud Mandouras short-form boolean values, and passed to plugins as ``arg_name=on``. 6067f14574SMahmoud MandourHowever, short-form booleans are deprecated and full explicit ``arg_name=on`` 6167f14574SMahmoud Mandourform is preferred. 6267f14574SMahmoud Mandour 6354c4ea8fSZhao Liu``-smp`` (Unsupported "parameter=1" SMP configurations) (since 9.0) 6454c4ea8fSZhao Liu''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 6554c4ea8fSZhao Liu 6654c4ea8fSZhao LiuSpecified CPU topology parameters must be supported by the machine. 6754c4ea8fSZhao Liu 6854c4ea8fSZhao LiuIn the SMP configuration, users should provide the CPU topology parameters that 6954c4ea8fSZhao Liuare supported by the target machine. 7054c4ea8fSZhao Liu 7154c4ea8fSZhao LiuHowever, historically it was allowed for users to specify the unsupported 7254c4ea8fSZhao Liutopology parameter as "1", which is meaningless. So support for this kind of 7354c4ea8fSZhao Liuconfigurations (e.g. -smp drawers=1,books=1,clusters=1 for x86 PC machine) is 7454c4ea8fSZhao Liumarked deprecated since 9.0, users have to ensure that all the topology members 7554c4ea8fSZhao Liudescribed with -smp are supported by the target machine. 7654c4ea8fSZhao Liu 7795e0fb0aSThomas Huth``-runas`` (since 9.1) 7895e0fb0aSThomas Huth---------------------- 7995e0fb0aSThomas Huth 8095e0fb0aSThomas HuthUse ``-run-with user=..`` instead. 8195e0fb0aSThomas Huth 8295e0fb0aSThomas Huth 83afc8b05cSZhao LiuUser-mode emulator command line arguments 84afc8b05cSZhao Liu----------------------------------------- 85afc8b05cSZhao Liu 86afc8b05cSZhao Liu``-p`` (since 9.0) 87afc8b05cSZhao Liu'''''''''''''''''' 88afc8b05cSZhao Liu 89afc8b05cSZhao LiuThe ``-p`` option pretends to control the host page size. However, 90afc8b05cSZhao Liuit is not possible to change the host page size, and using the 91afc8b05cSZhao Liuoption only causes failures. 92afc8b05cSZhao Liu 93f3478392SPeter MaydellQEMU Machine Protocol (QMP) commands 94f3478392SPeter Maydell------------------------------------ 95f3478392SPeter Maydell 96e2cc363bSYanan Wang``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8) 97e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 98f3478392SPeter Maydell 99f3478392SPeter MaydellUse argument ``id`` instead. 100f3478392SPeter Maydell 101e2cc363bSYanan Wang``eject`` argument ``device`` (since 2.8) 102e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''' 103f3478392SPeter Maydell 104f3478392SPeter MaydellUse argument ``id`` instead. 105f3478392SPeter Maydell 106e2cc363bSYanan Wang``blockdev-change-medium`` argument ``device`` (since 2.8) 107e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 108f3478392SPeter Maydell 109f3478392SPeter MaydellUse argument ``id`` instead. 110f3478392SPeter Maydell 111e2cc363bSYanan Wang``block_set_io_throttle`` argument ``device`` (since 2.8) 112e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 113f3478392SPeter Maydell 114f3478392SPeter MaydellUse argument ``id`` instead. 115f3478392SPeter Maydell 116e2cc363bSYanan Wang``blockdev-add`` empty string argument ``backing`` (since 2.10) 117e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 118f3478392SPeter Maydell 119f3478392SPeter MaydellUse argument value ``null`` instead. 120f3478392SPeter Maydell 121e2cc363bSYanan Wang``block-commit`` arguments ``base`` and ``top`` (since 3.1) 122e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 123f3478392SPeter Maydell 124f3478392SPeter MaydellUse arguments ``base-node`` and ``top-node`` instead. 125f3478392SPeter Maydell 126f3478392SPeter Maydell``nbd-server-add`` and ``nbd-server-remove`` (since 5.2) 127f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''' 128f3478392SPeter Maydell 129f3478392SPeter MaydellUse the more generic commands ``block-export-add`` and ``block-export-del`` 130f3478392SPeter Maydellinstead. As part of this deprecation, where ``nbd-server-add`` used a 131f3478392SPeter Maydellsingle ``bitmap``, the new ``block-export-add`` uses a list of ``bitmaps``. 132f3478392SPeter Maydell 13375ecee72SMarkus Armbruster``query-qmp-schema`` return value member ``values`` (since 6.2) 13475ecee72SMarkus Armbruster''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 13575ecee72SMarkus Armbruster 13675ecee72SMarkus ArmbrusterMember ``values`` in return value elements with meta-type ``enum`` is 13775ecee72SMarkus Armbrusterdeprecated. Use ``members`` instead. 13875ecee72SMarkus Armbruster 1391084159bSVladimir Sementsov-Ogievskiy``drive-backup`` (since 6.2) 1401084159bSVladimir Sementsov-Ogievskiy'''''''''''''''''''''''''''' 1411084159bSVladimir Sementsov-Ogievskiy 1421084159bSVladimir Sementsov-OgievskiyUse ``blockdev-backup`` in combination with ``blockdev-add`` instead. 1431084159bSVladimir Sementsov-OgievskiyThis change primarily separates the creation/opening process of the backup 1441084159bSVladimir Sementsov-Ogievskiytarget with explicit, separate steps. ``blockdev-backup`` uses mostly the 1451084159bSVladimir Sementsov-Ogievskiysame arguments as ``drive-backup``, except the ``format`` and ``mode`` 1461084159bSVladimir Sementsov-Ogievskiyoptions are removed in favor of using explicit ``blockdev-create`` and 1471084159bSVladimir Sementsov-Ogievskiy``blockdev-add`` calls. See :doc:`/interop/live-block-operations` for 1481084159bSVladimir Sementsov-Ogievskiydetails. 1491084159bSVladimir Sementsov-Ogievskiy 150*228529d1SPeter Xu``query-migrationthreads`` (since 9.2) 151*228529d1SPeter Xu'''''''''''''''''''''''''''''''''''''' 152*228529d1SPeter Xu 153*228529d1SPeter XuTo be removed with no replacement, as it reports only a limited set of 154*228529d1SPeter Xuthreads (for example, it only reports source side of multifd threads, 155*228529d1SPeter Xuwithout reporting any destination threads, or non-multifd source threads). 156*228529d1SPeter XuFor debugging purpose, please use ``-name $VM,debug-threads=on`` instead. 157*228529d1SPeter Xu 1584d8b0f0aSKevin WolfIncorrectly typed ``device_add`` arguments (since 6.2) 1594d8b0f0aSKevin Wolf'''''''''''''''''''''''''''''''''''''''''''''''''''''' 1604d8b0f0aSKevin Wolf 1614d8b0f0aSKevin WolfDue to shortcomings in the internal implementation of ``device_add``, QEMU 1624d8b0f0aSKevin Wolfincorrectly accepts certain invalid arguments: Any object or list arguments are 1634d8b0f0aSKevin Wolfsilently ignored. Other argument types are not checked, but an implicit 1644d8b0f0aSKevin Wolfconversion happens, so that e.g. string values can be assigned to integer 1654d8b0f0aSKevin Wolfdevice properties or vice versa. 1664d8b0f0aSKevin Wolf 1674d8b0f0aSKevin WolfThis is a bug in QEMU that will be fixed in the future so that previously 1684d8b0f0aSKevin Wolfaccepted incorrect commands will return an error. Users should make sure that 1694d8b0f0aSKevin Wolfall arguments passed to ``device_add`` are consistent with the documented 1704d8b0f0aSKevin Wolfproperty types. 1714d8b0f0aSKevin Wolf 17254ab3c3fSAlex BennéeHost Architectures 17354ab3c3fSAlex Bennée------------------ 17454ab3c3fSAlex Bennée 17554ab3c3fSAlex BennéeBE MIPS (since 7.2) 17654ab3c3fSAlex Bennée''''''''''''''''''' 17754ab3c3fSAlex Bennée 17854ab3c3fSAlex BennéeAs Debian 10 ("Buster") moved into LTS the big endian 32 bit version of 17954ab3c3fSAlex BennéeMIPS moved out of support making it hard to maintain our 18054ab3c3fSAlex Bennéecross-compilation CI tests of the architecture. As we no longer have 18154ab3c3fSAlex BennéeCI coverage support may bitrot away before the deprecation process 18254ab3c3fSAlex Bennéecompletes. The little endian variants of MIPS (both 32 and 64 bit) are 18354ab3c3fSAlex Bennéestill a supported host architecture. 18454ab3c3fSAlex Bennée 1855c27baf9SThomas HuthSystem emulation on 32-bit x86 hosts (since 8.0) 1865c27baf9SThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''' 1875c27baf9SThomas Huth 1885c27baf9SThomas HuthSupport for 32-bit x86 host deployments is increasingly uncommon in mainstream 1895c27baf9SThomas HuthOS distributions given the widespread availability of 64-bit x86 hardware. 1905c27baf9SThomas HuthThe QEMU project no longer considers 32-bit x86 support for system emulation to 1915c27baf9SThomas Huthbe an effective use of its limited resources, and thus intends to discontinue 1925c27baf9SThomas Huthit. Since all recent x86 hardware from the past >10 years is capable of the 1935c27baf9SThomas Huth64-bit x86 extensions, a corresponding 64-bit OS should be used instead. 1945c27baf9SThomas Huth 195cf2a78cbSAlex BennéeTCG Plugin support not enabled by default on 32-bit hosts (since 9.2) 196cf2a78cbSAlex Bennée''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 197cf2a78cbSAlex Bennée 198cf2a78cbSAlex BennéeWhile it is still possible to enable TCG plugin support for 32-bit 199cf2a78cbSAlex Bennéehosts there are a number of potential pitfalls when instrumenting 200cf2a78cbSAlex Bennée64-bit guests. The plugin APIs typically pass most addresses as 201cf2a78cbSAlex Bennéeuint64_t but practices like encoding that address in a host pointer 202cf2a78cbSAlex Bennéefor passing as user-data will lose data. As most software analysis 203cf2a78cbSAlex Bennéebenefits from having plenty of host memory it seems reasonable to 204cf2a78cbSAlex Bennéeencourage users to use 64 bit builds of QEMU for analysis work 205cf2a78cbSAlex Bennéewhatever targets they are instrumenting. 2065c27baf9SThomas Huth 2077866b0f7SAlex BennéeTCG Plugin support not enabled by default with TCI (since 9.2) 2087866b0f7SAlex Bennée'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 2097866b0f7SAlex Bennée 2107866b0f7SAlex BennéeWhile the TCG interpreter can interpret the TCG ops used by plugins it 2117866b0f7SAlex Bennéeis going to be so much slower it wouldn't make sense for any serious 2127866b0f7SAlex Bennéeinstrumentation. Due to implementation differences there will also be 2137866b0f7SAlex Bennéeanomalies in things like memory instrumentation. 2147866b0f7SAlex Bennée 2159997771bSPhilippe Mathieu-DaudéSystem emulator CPUs 2169997771bSPhilippe Mathieu-Daudé-------------------- 2179997771bSPhilippe Mathieu-Daudé 2186a41a621SThomas Huth``power5+`` and ``power7+`` CPU names (since 9.0) 2196a41a621SThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''' 2206a41a621SThomas Huth 2216a41a621SThomas HuthThe character "+" in device (and thus also CPU) names is not allowed 2226a41a621SThomas Huthin the QEMU object model anymore. ``power5+``, ``power5+_v2.1``, 2236a41a621SThomas Huth``power7+`` and ``power7+_v2.1`` are currently still supported via 2246a41a621SThomas Huthan alias, but for consistency these will get removed in a future 2256a41a621SThomas Huthrelease, too. Use ``power5p_v2.1`` and ``power7p_v2.1`` instead. 2266a41a621SThomas Huth 227029171b5SThomas Huth``Sun-UltraSparc-IIIi+`` and ``Sun-UltraSparc-IV+`` CPU names (since 9.1) 228029171b5SThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 229029171b5SThomas Huth 230029171b5SThomas HuthThe character "+" in device (and thus also CPU) names is not allowed 231029171b5SThomas Huthin the QEMU object model anymore. ``Sun-UltraSparc-IIIi+`` and 232029171b5SThomas Huth``Sun-UltraSparc-IV+`` are currently still supported via a workaround, 233029171b5SThomas Huthbut for consistency these will get removed in a future release, too. 234029171b5SThomas HuthUse ``Sun-UltraSparc-IIIi-plus`` and ``Sun-UltraSparc-IV-plus`` instead. 235029171b5SThomas Huth 236f3478392SPeter MaydellSystem emulator machines 237f3478392SPeter Maydell------------------------ 238f3478392SPeter Maydell 239ac64ebbeSPeter MaydellArm ``virt`` machine ``dtb-kaslr-seed`` property (since 7.1) 240ac64ebbeSPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 2415242876fSJason A. Donenfeld 2425242876fSJason A. DonenfeldThe ``dtb-kaslr-seed`` property on the ``virt`` board has been 2435242876fSJason A. Donenfelddeprecated; use the new name ``dtb-randomness`` instead. The new name 2445242876fSJason A. Donenfeldbetter reflects the way this property affects all random data within 2455242876fSJason A. Donenfeldthe device tree blob, not just the ``kaslr-seed`` node. 2465242876fSJason A. Donenfeld 24746a2bd52SPhilippe Mathieu-Daudé``pc-i440fx-2.4`` up to ``pc-i440fx-2.12`` (since 9.1) 24846a2bd52SPhilippe Mathieu-Daudé'''''''''''''''''''''''''''''''''''''''''''''''''''''' 249c7437f0dSThomas Huth 250c7437f0dSThomas HuthThese old machine types are quite neglected nowadays and thus might have 251c7437f0dSThomas Huthvarious pitfalls with regards to live migration. Use a newer machine type 252c7437f0dSThomas Huthinstead. 253c7437f0dSThomas Huth 2540cac0f1bSPhilippe Mathieu-Daudé``pseries-2.1`` up to ``pseries-2.12`` (since 9.0) 2551392617dSCédric Le Goater'''''''''''''''''''''''''''''''''''''''''''''''''' 2561392617dSCédric Le Goater 2570cac0f1bSPhilippe Mathieu-DaudéOlder pseries machines before version 3.0 have undergone many changes 2581392617dSCédric Le Goaterto correct issues, mostly regarding migration compatibility. These are 2591392617dSCédric Le Goaterno longer maintained and removing them will make the code easier to 2600cac0f1bSPhilippe Mathieu-Daudéread and maintain. Use versions 3.0 and above as a replacement. 2611392617dSCédric Le Goater 262ed95bdd1SCédric Le GoaterPPC 405 ``ref405ep`` machine (since 9.1) 263ed95bdd1SCédric Le Goater'''''''''''''''''''''''''''''''''''''''' 264ed95bdd1SCédric Le Goater 265ed95bdd1SCédric Le GoaterThe ``ref405ep`` machine and PPC 405 CPU have no known users, firmware 266ed95bdd1SCédric Le Goaterimages are not available, OpenWRT dropped support in 2019, U-Boot in 267ed95bdd1SCédric Le Goater2017, Linux also is dropping support in 2024. It is time to let go of 268ed95bdd1SCédric Le Goaterthis ancient hardware and focus on newer CPUs and platforms. 269ed95bdd1SCédric Le Goater 27056a37edaSCédric Le GoaterArm ``tacoma-bmc`` machine (since 9.1) 27156a37edaSCédric Le Goater'''''''''''''''''''''''''''''''''''''''' 27256a37edaSCédric Le Goater 27356a37edaSCédric Le GoaterThe ``tacoma-bmc`` machine was a board including an AST2600 SoC based 27456a37edaSCédric Le GoaterBMC and a witherspoon like OpenPOWER system. It was used for bring up 27556a37edaSCédric Le Goaterof the AST2600 SoC in labs. It can be easily replaced by the 27656a37edaSCédric Le Goater``rainier-bmc`` machine which is a real product. 27756a37edaSCédric Le Goater 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 30236d83272SKlaus Jensen``-device nvme-ns,eui64-default=on|off`` (since 7.1) 30336d83272SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30436d83272SKlaus Jensen 30536d83272SKlaus JensenIn QEMU versions 6.1, 6.2 and 7.0, the ``nvme-ns`` generates an EUI-64 306120f765eSStefan Weilidentifier that is not globally unique. If an EUI-64 identifier is required, the 30736d83272SKlaus Jensenuser must set it explicitly using the ``nvme-ns`` device parameter ``eui64``. 30836d83272SKlaus Jensen 3098b1e59a6SKlaus Jensen``-device nvme,use-intel-id=on|off`` (since 7.1) 3108b1e59a6SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3118b1e59a6SKlaus Jensen 3128b1e59a6SKlaus JensenThe ``nvme`` device originally used a PCI Vendor/Device Identifier combination 3138b1e59a6SKlaus Jensenfrom Intel that was not properly allocated. Since version 5.2, the controller 3148b1e59a6SKlaus Jensenhas used a properly allocated identifier. Deprecate the ``use-intel-id`` 3158b1e59a6SKlaus Jensenmachine compatibility parameter. 3168b1e59a6SKlaus Jensen 317adacc814SGregory Price``-device cxl-type3,memdev=xxxx`` (since 8.0) 318adacc814SGregory Price^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 319adacc814SGregory Price 320adacc814SGregory PriceThe ``cxl-type3`` device initially only used a single memory backend. With 321adacc814SGregory Pricethe addition of volatile memory support, it is now necessary to distinguish 322adacc814SGregory Pricebetween persistent and volatile memory backends. As such, memdev is deprecated 323adacc814SGregory Pricein favor of persistent-memdev. 324adacc814SGregory Price 32571d72eceSChristian Schoenebeck 3268043effdSDaniel Henrique BarbozaRISC-V CPU properties which start with capital 'Z' (since 8.2) 3278043effdSDaniel Henrique Barboza^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3288043effdSDaniel Henrique Barboza 3298043effdSDaniel Henrique BarbozaAll RISC-V CPU properties which start with capital 'Z' are being deprecated 3308043effdSDaniel Henrique Barbozastarting in 8.2. The reason is that they were wrongly added with capital 'Z' 3318043effdSDaniel Henrique Barbozain the past. CPU properties were later added with lower-case names, which 3328043effdSDaniel Henrique Barbozais the format we want to use from now on. 3338043effdSDaniel Henrique Barboza 3348043effdSDaniel Henrique BarbozaUsers which try to use these deprecated properties will receive a warning 3358043effdSDaniel Henrique Barbozarecommending to switch to their stable counterparts: 3368043effdSDaniel Henrique Barboza 3378043effdSDaniel Henrique Barboza- "Zifencei" should be replaced with "zifencei" 3388043effdSDaniel Henrique Barboza- "Zicsr" should be replaced with "zicsr" 3398043effdSDaniel Henrique Barboza- "Zihintntl" should be replaced with "zihintntl" 3408043effdSDaniel Henrique Barboza- "Zihintpause" should be replaced with "zihintpause" 3418043effdSDaniel Henrique Barboza- "Zawrs" should be replaced with "zawrs" 3428043effdSDaniel Henrique Barboza- "Zfa" should be replaced with "zfa" 3438043effdSDaniel Henrique Barboza- "Zfh" should be replaced with "zfh" 3448043effdSDaniel Henrique Barboza- "Zfhmin" should be replaced with "zfhmin" 3458043effdSDaniel Henrique Barboza- "Zve32f" should be replaced with "zve32f" 3468043effdSDaniel Henrique Barboza- "Zve64f" should be replaced with "zve64f" 3478043effdSDaniel Henrique Barboza- "Zve64d" should be replaced with "zve64d" 3488043effdSDaniel Henrique Barboza 3496a414c01SPhilippe Mathieu-Daudé``-device sd-card,spec_version=1`` (since 9.1) 3506a414c01SPhilippe Mathieu-Daudé^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3516a414c01SPhilippe Mathieu-Daudé 3526a414c01SPhilippe Mathieu-DaudéSD physical layer specification v2.00 supersedes the v1.10 one. 3536a414c01SPhilippe Mathieu-Daudév2.00 is the default since QEMU 3.0.0. 3546a414c01SPhilippe Mathieu-Daudé 355f3478392SPeter MaydellBlock device options 356f3478392SPeter Maydell'''''''''''''''''''' 357f3478392SPeter Maydell 358e2cc363bSYanan Wang``"backing": ""`` (since 2.12) 359e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 360f3478392SPeter Maydell 361f3478392SPeter MaydellIn order to prevent QEMU from automatically opening an image's backing 362f3478392SPeter Maydellchain, use ``"backing": null`` instead. 363f3478392SPeter Maydell 364e2cc363bSYanan Wang``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1) 365e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 366f3478392SPeter Maydell 367f3478392SPeter MaydellOptions for ``rbd`` should be specified according to its runtime options, 368f3478392SPeter Maydelllike other block drivers. Legacy parsing of keyvalue pair encoded 369f3478392SPeter Maydellfilenames is useful to open images with the old format for backing files; 370f3478392SPeter MaydellThese image files should be updated to use the current format. 371f3478392SPeter Maydell 372f3478392SPeter MaydellExample of legacy encoding:: 373f3478392SPeter Maydell 374f3478392SPeter Maydell json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"} 375f3478392SPeter Maydell 376f3478392SPeter MaydellThe above, converted to the current supported format:: 377f3478392SPeter Maydell 378f3478392SPeter Maydell json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"} 379f3478392SPeter Maydell 380610783cbSDaniel P. Berrangé``iscsi,password=xxx`` (since 8.0) 381610783cbSDaniel P. Berrangé^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 382610783cbSDaniel P. Berrangé 383610783cbSDaniel P. BerrangéSpecifying the iSCSI password in plain text on the command line using the 384610783cbSDaniel P. Berrangé``password`` option is insecure. The ``password-secret`` option should be 385610783cbSDaniel P. Berrangéused instead, to refer to a ``--object secret...`` instance that provides 386610783cbSDaniel P. Berrangéa password via a file, or encrypted. 387610783cbSDaniel P. Berrangé 388b8734638SThomas Huth``gluster`` backend (since 9.2) 389b8734638SThomas Huth^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 390b8734638SThomas Huth 391b8734638SThomas HuthAccording to https://marc.info/?l=fedora-devel-list&m=171934833215726 392b8734638SThomas Huththe GlusterFS development effectively ended. Unless the development 393b8734638SThomas Huthgains momentum again, the QEMU project will remove the gluster backend 394b8734638SThomas Huthin a future release. 395b8734638SThomas Huth 396b8734638SThomas Huth 397b04c1228SMarkus ArmbrusterCharacter device options 398b04c1228SMarkus Armbruster'''''''''''''''''''''''' 399b04c1228SMarkus Armbruster 400b04c1228SMarkus ArmbrusterBackend ``memory`` (since 9.0) 401b04c1228SMarkus Armbruster^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 402b04c1228SMarkus Armbruster 403b04c1228SMarkus Armbruster``memory`` is a deprecated synonym for ``ringbuf``. 404b04c1228SMarkus Armbruster 405c8e2b6b4SDaniil Tatianin``reconnect`` (since 9.2) 406c8e2b6b4SDaniil Tatianin^^^^^^^^^^^^^^^^^^^^^^^^^ 407c8e2b6b4SDaniil Tatianin 408c8e2b6b4SDaniil TatianinThe ``reconnect`` option only allows specifiying second granularity timeouts, 409c8e2b6b4SDaniil Tatianinwhich is not enough for all types of use cases, use ``reconnect-ms`` instead. 410c8e2b6b4SDaniil Tatianin 411c40e962dSDaniil Tatianin 412c40e962dSDaniil TatianinNet device options 413c40e962dSDaniil Tatianin'''''''''''''''''' 414c40e962dSDaniil Tatianin 415c40e962dSDaniil TatianinStream ``reconnect`` (since 9.2) 416c40e962dSDaniil Tatianin^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 417c40e962dSDaniil Tatianin 418c40e962dSDaniil TatianinThe ``reconnect`` option only allows specifiying second granularity timeouts, 419c40e962dSDaniil Tatianinwhich is not enough for all types of use cases, use ``reconnect-ms`` instead. 420c40e962dSDaniil Tatianin 421bc5e8445SRob BradfordCPU device properties 422bc5e8445SRob Bradford''''''''''''''''''''' 423bc5e8445SRob Bradford 4249f07e47aSPaolo Bonzini``pcommit`` on x86 (since 9.1) 4259f07e47aSPaolo Bonzini^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4269f07e47aSPaolo Bonzini 4279f07e47aSPaolo BonziniThe PCOMMIT instruction was never included in any physical processor. 4289f07e47aSPaolo BonziniIt was implemented as a no-op instruction in TCG up to QEMU 9.0, but 4299f07e47aSPaolo Bonzinionly with ``-cpu max`` (which does not guarantee migration compatibility 4309f07e47aSPaolo Bonziniacross versions). 4319f07e47aSPaolo Bonzini 432bc5e8445SRob Bradford``pmu-num=n`` on RISC-V CPUs (since 8.2) 433bc5e8445SRob Bradford^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 434bc5e8445SRob Bradford 435bc5e8445SRob BradfordIn order to support more flexible counter configurations this has been replaced 436bc5e8445SRob Bradfordby a ``pmu-mask`` property. If set of counters is continuous then the mask can 437bc5e8445SRob Bradfordbe calculated with ``((2 ^ n) - 1) << 3``. The least significant three bits 438bc5e8445SRob Bradfordmust be left clear. 439bc5e8445SRob Bradford 440bc5e8445SRob Bradford 441f3478392SPeter MaydellBackwards compatibility 442f3478392SPeter Maydell----------------------- 443f3478392SPeter Maydell 444e2cc363bSYanan WangRunnability guarantee of CPU models (since 4.1) 445e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''' 446f3478392SPeter Maydell 447f3478392SPeter MaydellPrevious versions of QEMU never changed existing CPU models in 448f3478392SPeter Maydellways that introduced additional host software or hardware 449f3478392SPeter Maydellrequirements to the VM. This allowed management software to 450f3478392SPeter Maydellsafely change the machine type of an existing VM without 451f3478392SPeter Maydellintroducing new requirements ("runnability guarantee"). This 452f3478392SPeter Maydellprevented CPU models from being updated to include CPU 453f3478392SPeter Maydellvulnerability mitigations, leaving guests vulnerable in the 454f3478392SPeter Maydelldefault configuration. 455f3478392SPeter Maydell 456f3478392SPeter MaydellThe CPU model runnability guarantee won't apply anymore to 457f3478392SPeter Maydellexisting CPU models. Management software that needs runnability 458f3478392SPeter Maydellguarantees must resolve the CPU model aliases using the 459f3478392SPeter Maydell``alias-of`` field returned by the ``query-cpu-definitions`` QMP 460f3478392SPeter Maydellcommand. 461f3478392SPeter Maydell 462f3478392SPeter MaydellWhile those guarantees are kept, the return value of 463f3478392SPeter Maydell``query-cpu-definitions`` will have existing CPU model aliases 464f3478392SPeter Maydellpoint to a version that doesn't break runnability guarantees 465f3478392SPeter Maydell(specifically, version 1 of those CPU models). In future QEMU 466f3478392SPeter Maydellversions, aliases will point to newer CPU model versions 467f3478392SPeter Maydelldepending on the machine type, so management software must 468f3478392SPeter Maydellresolve CPU model aliases before starting a virtual machine. 469f3478392SPeter Maydell 47038facfa8SDaniel Henrique BarbozaRISC-V "virt" board "riscv,delegate" DT property (since 9.1) 47138facfa8SDaniel Henrique Barboza'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 47238facfa8SDaniel Henrique Barboza 47338facfa8SDaniel Henrique BarbozaThe "riscv,delegate" DT property was added in QEMU 7.0 as part of 47438facfa8SDaniel Henrique Barbozathe AIA APLIC support. The property changed name during the review 47538facfa8SDaniel Henrique Barbozaprocess in Linux and the correct name ended up being 47638facfa8SDaniel Henrique Barboza"riscv,delegation". Changing the DT property name will break all 47738facfa8SDaniel Henrique Barbozaavailable firmwares that are using the current (wrong) name. The 47838facfa8SDaniel Henrique Barbozaproperty is kept as is in 9.1, together with "riscv,delegation", to 47938facfa8SDaniel Henrique Barbozagive more time for firmware developers to change their code. 48038facfa8SDaniel Henrique Barboza 4817b24d326SJuan QuintelaMigration 4827b24d326SJuan Quintela--------- 4837b24d326SJuan Quintela 484c55deb86SFabiano Rosas``fd:`` URI when used for file migration (since 9.1) 485c55deb86SFabiano Rosas'''''''''''''''''''''''''''''''''''''''''''''''''''' 4867b24d326SJuan Quintela 487c55deb86SFabiano RosasThe ``fd:`` URI can currently provide a file descriptor that 488c55deb86SFabiano Rosasreferences either a socket or a plain file. These are two different 489c55deb86SFabiano Rosastypes of migration. In order to reduce ambiguity, the ``fd:`` URI 490c55deb86SFabiano Rosasusage of providing a file descriptor to a plain file has been 491c55deb86SFabiano Rosasdeprecated in favor of explicitly using the ``file:`` URI with the 492c55deb86SFabiano Rosasfile descriptor being passed as an ``fdset``. Refer to the ``add-fd`` 493c55deb86SFabiano Rosascommand documentation for details on the ``fdset`` usage. 49473581a04SFabiano Rosas 49573581a04SFabiano Rosas``zero-blocks`` capability (since 9.2) 49673581a04SFabiano Rosas'''''''''''''''''''''''''''''''''''''' 49773581a04SFabiano Rosas 49873581a04SFabiano RosasThe ``zero-blocks`` capability was part of the block migration which 49973581a04SFabiano Rosasdoesn't exist anymore since it was removed in QEMU v9.1. 500