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 3967f14574SMahmoud MandourPlugin argument passing through ``arg=<string>`` (since 6.1) 4067f14574SMahmoud Mandour'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 4167f14574SMahmoud Mandour 4267f14574SMahmoud MandourPassing TCG plugins arguments through ``arg=`` is redundant is makes the 4367f14574SMahmoud Mandourcommand-line less readable, especially when the argument itself consist of a 4467f14574SMahmoud Mandourname and a value, e.g. ``-plugin plugin_name,arg="arg_name=arg_value"``. 4567f14574SMahmoud MandourTherefore, the usage of ``arg`` is redundant. Single-word arguments are treated 4667f14574SMahmoud Mandouras short-form boolean values, and passed to plugins as ``arg_name=on``. 4767f14574SMahmoud MandourHowever, short-form booleans are deprecated and full explicit ``arg_name=on`` 4867f14574SMahmoud Mandourform is preferred. 4967f14574SMahmoud Mandour 5001e44980SRichard HendersonUser-mode emulator command line arguments 5101e44980SRichard Henderson----------------------------------------- 5201e44980SRichard Henderson 5301e44980SRichard Henderson``-p`` (since 9.0) 5401e44980SRichard Henderson'''''''''''''''''' 5501e44980SRichard Henderson 5601e44980SRichard HendersonThe ``-p`` option pretends to control the host page size. However, 5701e44980SRichard Hendersonit is not possible to change the host page size, and using the 5801e44980SRichard Hendersonoption only causes failures. 5901e44980SRichard Henderson 60*54c4ea8fSZhao Liu``-smp`` (Unsupported "parameter=1" SMP configurations) (since 9.0) 61*54c4ea8fSZhao Liu''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 62*54c4ea8fSZhao Liu 63*54c4ea8fSZhao LiuSpecified CPU topology parameters must be supported by the machine. 64*54c4ea8fSZhao Liu 65*54c4ea8fSZhao LiuIn the SMP configuration, users should provide the CPU topology parameters that 66*54c4ea8fSZhao Liuare supported by the target machine. 67*54c4ea8fSZhao Liu 68*54c4ea8fSZhao LiuHowever, historically it was allowed for users to specify the unsupported 69*54c4ea8fSZhao Liutopology parameter as "1", which is meaningless. So support for this kind of 70*54c4ea8fSZhao Liuconfigurations (e.g. -smp drawers=1,books=1,clusters=1 for x86 PC machine) is 71*54c4ea8fSZhao Liumarked deprecated since 9.0, users have to ensure that all the topology members 72*54c4ea8fSZhao Liudescribed with -smp are supported by the target machine. 73*54c4ea8fSZhao Liu 74f3478392SPeter MaydellQEMU Machine Protocol (QMP) commands 75f3478392SPeter Maydell------------------------------------ 76f3478392SPeter Maydell 77e2cc363bSYanan Wang``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8) 78e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 79f3478392SPeter Maydell 80f3478392SPeter MaydellUse argument ``id`` instead. 81f3478392SPeter Maydell 82e2cc363bSYanan Wang``eject`` argument ``device`` (since 2.8) 83e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''' 84f3478392SPeter Maydell 85f3478392SPeter MaydellUse argument ``id`` instead. 86f3478392SPeter Maydell 87e2cc363bSYanan Wang``blockdev-change-medium`` argument ``device`` (since 2.8) 88e2cc363bSYanan Wang'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 89f3478392SPeter Maydell 90f3478392SPeter MaydellUse argument ``id`` instead. 91f3478392SPeter Maydell 92e2cc363bSYanan Wang``block_set_io_throttle`` argument ``device`` (since 2.8) 93e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 94f3478392SPeter Maydell 95f3478392SPeter MaydellUse argument ``id`` instead. 96f3478392SPeter Maydell 97e2cc363bSYanan Wang``blockdev-add`` empty string argument ``backing`` (since 2.10) 98e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 99f3478392SPeter Maydell 100f3478392SPeter MaydellUse argument value ``null`` instead. 101f3478392SPeter Maydell 102e2cc363bSYanan Wang``block-commit`` arguments ``base`` and ``top`` (since 3.1) 103e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 104f3478392SPeter Maydell 105f3478392SPeter MaydellUse arguments ``base-node`` and ``top-node`` instead. 106f3478392SPeter Maydell 107f3478392SPeter Maydell``nbd-server-add`` and ``nbd-server-remove`` (since 5.2) 108f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''' 109f3478392SPeter Maydell 110f3478392SPeter MaydellUse the more generic commands ``block-export-add`` and ``block-export-del`` 111f3478392SPeter Maydellinstead. As part of this deprecation, where ``nbd-server-add`` used a 112f3478392SPeter Maydellsingle ``bitmap``, the new ``block-export-add`` uses a list of ``bitmaps``. 113f3478392SPeter Maydell 11475ecee72SMarkus Armbruster``query-qmp-schema`` return value member ``values`` (since 6.2) 11575ecee72SMarkus Armbruster''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 11675ecee72SMarkus Armbruster 11775ecee72SMarkus ArmbrusterMember ``values`` in return value elements with meta-type ``enum`` is 11875ecee72SMarkus Armbrusterdeprecated. Use ``members`` instead. 11975ecee72SMarkus Armbruster 1201084159bSVladimir Sementsov-Ogievskiy``drive-backup`` (since 6.2) 1211084159bSVladimir Sementsov-Ogievskiy'''''''''''''''''''''''''''' 1221084159bSVladimir Sementsov-Ogievskiy 1231084159bSVladimir Sementsov-OgievskiyUse ``blockdev-backup`` in combination with ``blockdev-add`` instead. 1241084159bSVladimir Sementsov-OgievskiyThis change primarily separates the creation/opening process of the backup 1251084159bSVladimir Sementsov-Ogievskiytarget with explicit, separate steps. ``blockdev-backup`` uses mostly the 1261084159bSVladimir Sementsov-Ogievskiysame arguments as ``drive-backup``, except the ``format`` and ``mode`` 1271084159bSVladimir Sementsov-Ogievskiyoptions are removed in favor of using explicit ``blockdev-create`` and 1281084159bSVladimir Sementsov-Ogievskiy``blockdev-add`` calls. See :doc:`/interop/live-block-operations` for 1291084159bSVladimir Sementsov-Ogievskiydetails. 1301084159bSVladimir Sementsov-Ogievskiy 1314d8b0f0aSKevin WolfIncorrectly typed ``device_add`` arguments (since 6.2) 1324d8b0f0aSKevin Wolf'''''''''''''''''''''''''''''''''''''''''''''''''''''' 1334d8b0f0aSKevin Wolf 1344d8b0f0aSKevin WolfDue to shortcomings in the internal implementation of ``device_add``, QEMU 1354d8b0f0aSKevin Wolfincorrectly accepts certain invalid arguments: Any object or list arguments are 1364d8b0f0aSKevin Wolfsilently ignored. Other argument types are not checked, but an implicit 1374d8b0f0aSKevin Wolfconversion happens, so that e.g. string values can be assigned to integer 1384d8b0f0aSKevin Wolfdevice properties or vice versa. 1394d8b0f0aSKevin Wolf 1404d8b0f0aSKevin WolfThis is a bug in QEMU that will be fixed in the future so that previously 1414d8b0f0aSKevin Wolfaccepted incorrect commands will return an error. Users should make sure that 1424d8b0f0aSKevin Wolfall arguments passed to ``device_add`` are consistent with the documented 1434d8b0f0aSKevin Wolfproperty types. 1444d8b0f0aSKevin Wolf 1451a8fc850SAlex BennéeQEMU Machine Protocol (QMP) events 1461a8fc850SAlex Bennée---------------------------------- 1471a8fc850SAlex Bennée 1481a8fc850SAlex Bennée``MEM_UNPLUG_ERROR`` (since 6.2) 1491a8fc850SAlex Bennée'''''''''''''''''''''''''''''''''''''''''''''''''''''''' 1501a8fc850SAlex Bennée 1511a8fc850SAlex BennéeUse the more generic event ``DEVICE_UNPLUG_GUEST_ERROR`` instead. 1521a8fc850SAlex Bennée 1535485e52aSAlex Bennée``vcpu`` trace events (since 8.1) 1545485e52aSAlex Bennée''''''''''''''''''''''''''''''''' 1555485e52aSAlex Bennée 1565485e52aSAlex BennéeThe ability to instrument QEMU helper functions with vCPU-aware trace 1575485e52aSAlex Bennéepoints was removed in 7.0. However QMP still exposed the vcpu 1585485e52aSAlex Bennéeparameter. This argument has now been deprecated and the remaining 1595485e52aSAlex Bennéeremaining trace points that used it are selected just by name. 1601a8fc850SAlex Bennée 16154ab3c3fSAlex BennéeHost Architectures 16254ab3c3fSAlex Bennée------------------ 16354ab3c3fSAlex Bennée 16454ab3c3fSAlex BennéeBE MIPS (since 7.2) 16554ab3c3fSAlex Bennée''''''''''''''''''' 16654ab3c3fSAlex Bennée 16754ab3c3fSAlex BennéeAs Debian 10 ("Buster") moved into LTS the big endian 32 bit version of 16854ab3c3fSAlex BennéeMIPS moved out of support making it hard to maintain our 16954ab3c3fSAlex Bennéecross-compilation CI tests of the architecture. As we no longer have 17054ab3c3fSAlex BennéeCI coverage support may bitrot away before the deprecation process 17154ab3c3fSAlex Bennéecompletes. The little endian variants of MIPS (both 32 and 64 bit) are 17254ab3c3fSAlex Bennéestill a supported host architecture. 17354ab3c3fSAlex Bennée 1745c27baf9SThomas HuthSystem emulation on 32-bit x86 hosts (since 8.0) 1755c27baf9SThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''' 1765c27baf9SThomas Huth 1775c27baf9SThomas HuthSupport for 32-bit x86 host deployments is increasingly uncommon in mainstream 1785c27baf9SThomas HuthOS distributions given the widespread availability of 64-bit x86 hardware. 1795c27baf9SThomas HuthThe QEMU project no longer considers 32-bit x86 support for system emulation to 1805c27baf9SThomas Huthbe an effective use of its limited resources, and thus intends to discontinue 1815c27baf9SThomas Huthit. Since all recent x86 hardware from the past >10 years is capable of the 1825c27baf9SThomas Huth64-bit x86 extensions, a corresponding 64-bit OS should be used instead. 1835c27baf9SThomas Huth 1845c27baf9SThomas Huth 1859997771bSPhilippe Mathieu-DaudéSystem emulator CPUs 1869997771bSPhilippe Mathieu-Daudé-------------------- 1879997771bSPhilippe Mathieu-Daudé 1889997771bSPhilippe Mathieu-DaudéNios II CPU (since 8.2) 1899997771bSPhilippe Mathieu-Daudé''''''''''''''''''''''' 1909997771bSPhilippe Mathieu-Daudé 1919997771bSPhilippe Mathieu-DaudéThe Nios II architecture is orphan. The ``nios2`` guest CPU support is 1929997771bSPhilippe Mathieu-Daudédeprecated and will be removed in a future version of QEMU. 1939997771bSPhilippe Mathieu-Daudé 1946a41a621SThomas Huth``power5+`` and ``power7+`` CPU names (since 9.0) 1956a41a621SThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''' 1966a41a621SThomas Huth 1976a41a621SThomas HuthThe character "+" in device (and thus also CPU) names is not allowed 1986a41a621SThomas Huthin the QEMU object model anymore. ``power5+``, ``power5+_v2.1``, 1996a41a621SThomas Huth``power7+`` and ``power7+_v2.1`` are currently still supported via 2006a41a621SThomas Huthan alias, but for consistency these will get removed in a future 2016a41a621SThomas Huthrelease, too. Use ``power5p_v2.1`` and ``power7p_v2.1`` instead. 2026a41a621SThomas Huth 203c7bbef40SAlex BennéeCRIS CPU architecture (since 9.0) 204c7bbef40SAlex Bennée''''''''''''''''''''''''''''''''' 205c7bbef40SAlex Bennée 206c7bbef40SAlex BennéeThe CRIS architecture was pulled from Linux in 4.17 and the compiler 207c7bbef40SAlex Bennéeis no longer packaged in any distro making it harder to run the 208c7bbef40SAlex Bennée``check-tcg`` tests. Unless we can improve the testing situation there 209c7bbef40SAlex Bennéeis a chance the code will bitrot without anyone noticing. 2109997771bSPhilippe Mathieu-Daudé 211f3478392SPeter MaydellSystem emulator machines 212f3478392SPeter Maydell------------------------ 213f3478392SPeter Maydell 214ac64ebbeSPeter MaydellArm ``virt`` machine ``dtb-kaslr-seed`` property (since 7.1) 215ac64ebbeSPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 2165242876fSJason A. Donenfeld 2175242876fSJason A. DonenfeldThe ``dtb-kaslr-seed`` property on the ``virt`` board has been 2185242876fSJason A. Donenfelddeprecated; use the new name ``dtb-randomness`` instead. The new name 2195242876fSJason A. Donenfeldbetter reflects the way this property affects all random data within 2205242876fSJason A. Donenfeldthe device tree blob, not just the ``kaslr-seed`` node. 2215242876fSJason A. Donenfeld 222c7437f0dSThomas Huth``pc-i440fx-2.0`` up to ``pc-i440fx-2.3`` (since 8.2) 223c7437f0dSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''' 224c7437f0dSThomas Huth 225c7437f0dSThomas HuthThese old machine types are quite neglected nowadays and thus might have 226c7437f0dSThomas Huthvarious pitfalls with regards to live migration. Use a newer machine type 227c7437f0dSThomas Huthinstead. 228c7437f0dSThomas Huth 2299997771bSPhilippe Mathieu-DaudéNios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (since 8.2) 2309997771bSPhilippe Mathieu-Daudé''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 2319997771bSPhilippe Mathieu-Daudé 2329997771bSPhilippe Mathieu-DaudéThe Nios II architecture is orphan. 2339997771bSPhilippe Mathieu-Daudé 234322b038cSSamuel Tardieu``shix`` (since 9.0) 235322b038cSSamuel Tardieu'''''''''''''''''''' 236322b038cSSamuel Tardieu 237322b038cSSamuel TardieuThe machine is no longer in existence and has been long unmaintained 238c8cdec74SSamuel Tardieuin QEMU. This also holds for the TC51828 16MiB flash that it uses. 239c7437f0dSThomas Huth 2401392617dSCédric Le Goater``pseries-2.1`` up to ``pseries-2.11`` (since 9.0) 2411392617dSCédric Le Goater'''''''''''''''''''''''''''''''''''''''''''''''''' 2421392617dSCédric Le Goater 2431392617dSCédric Le GoaterOlder pseries machines before version 2.12 have undergone many changes 2441392617dSCédric Le Goaterto correct issues, mostly regarding migration compatibility. These are 2451392617dSCédric Le Goaterno longer maintained and removing them will make the code easier to 2461392617dSCédric Le Goaterread and maintain. Use versions 2.12 and above as a replacement. 2471392617dSCédric Le Goater 248f3478392SPeter MaydellBackend options 249f3478392SPeter Maydell--------------- 250f3478392SPeter Maydell 251f3478392SPeter MaydellUsing non-persistent backing file with pmem=on (since 6.1) 252f3478392SPeter Maydell'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 253f3478392SPeter Maydell 254f3478392SPeter MaydellThis option is used when ``memory-backend-file`` is consumed by emulated NVDIMM 255f3478392SPeter Maydelldevice. However enabling ``memory-backend-file.pmem`` option, when backing file 256f3478392SPeter Maydellis (a) not DAX capable or (b) not on a filesystem that support direct mapping 257f3478392SPeter Maydellof persistent memory, is not safe and may lead to data loss or corruption in case 258f3478392SPeter Maydellof host crash. 259f3478392SPeter MaydellOptions are: 260f3478392SPeter Maydell 261f3478392SPeter Maydell - modify VM configuration to set ``pmem=off`` to continue using fake NVDIMM 262f3478392SPeter Maydell (without persistence guaranties) with backing file on non DAX storage 263f3478392SPeter Maydell - move backing file to NVDIMM storage and keep ``pmem=on`` 264f3478392SPeter Maydell (to have NVDIMM with persistence guaranties). 265f3478392SPeter Maydell 266f3478392SPeter MaydellDevice options 267f3478392SPeter Maydell-------------- 268f3478392SPeter Maydell 269f3478392SPeter MaydellEmulated device options 270f3478392SPeter Maydell''''''''''''''''''''''' 271f3478392SPeter Maydell 272e2cc363bSYanan Wang``-device virtio-blk,scsi=on|off`` (since 5.0) 273e2cc363bSYanan Wang^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 274f3478392SPeter Maydell 275f3478392SPeter MaydellThe virtio-blk SCSI passthrough feature is a legacy VIRTIO feature. VIRTIO 1.0 276f3478392SPeter Maydelland later do not support it because the virtio-scsi device was introduced for 277f3478392SPeter Maydellfull SCSI support. Use virtio-scsi instead when SCSI passthrough is required. 278f3478392SPeter Maydell 279f3478392SPeter MaydellNote this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an 280f3478392SPeter Maydellalias. 281f3478392SPeter Maydell 28236d83272SKlaus Jensen``-device nvme-ns,eui64-default=on|off`` (since 7.1) 28336d83272SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 28436d83272SKlaus Jensen 28536d83272SKlaus JensenIn QEMU versions 6.1, 6.2 and 7.0, the ``nvme-ns`` generates an EUI-64 286120f765eSStefan Weilidentifier that is not globally unique. If an EUI-64 identifier is required, the 28736d83272SKlaus Jensenuser must set it explicitly using the ``nvme-ns`` device parameter ``eui64``. 28836d83272SKlaus Jensen 2898b1e59a6SKlaus Jensen``-device nvme,use-intel-id=on|off`` (since 7.1) 2908b1e59a6SKlaus Jensen^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2918b1e59a6SKlaus Jensen 2928b1e59a6SKlaus JensenThe ``nvme`` device originally used a PCI Vendor/Device Identifier combination 2938b1e59a6SKlaus Jensenfrom Intel that was not properly allocated. Since version 5.2, the controller 2948b1e59a6SKlaus Jensenhas used a properly allocated identifier. Deprecate the ``use-intel-id`` 2958b1e59a6SKlaus Jensenmachine compatibility parameter. 2968b1e59a6SKlaus Jensen 297adacc814SGregory Price``-device cxl-type3,memdev=xxxx`` (since 8.0) 298adacc814SGregory Price^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 299adacc814SGregory Price 300adacc814SGregory PriceThe ``cxl-type3`` device initially only used a single memory backend. With 301adacc814SGregory Pricethe addition of volatile memory support, it is now necessary to distinguish 302adacc814SGregory Pricebetween persistent and volatile memory backends. As such, memdev is deprecated 303adacc814SGregory Pricein favor of persistent-memdev. 304adacc814SGregory Price 30571d72eceSChristian Schoenebeck``-fsdev proxy`` and ``-virtfs proxy`` (since 8.1) 30671d72eceSChristian Schoenebeck^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30771d72eceSChristian Schoenebeck 30871d72eceSChristian SchoenebeckThe 9p ``proxy`` filesystem backend driver has been deprecated and will be 30971d72eceSChristian Schoenebeckremoved (along with its proxy helper daemon) in a future version of QEMU. Please 31071d72eceSChristian Schoenebeckuse ``-fsdev local`` or ``-virtfs local`` for using the 9p ``local`` filesystem 31171d72eceSChristian Schoenebeckbackend, or alternatively consider deploying virtiofsd instead. 31271d72eceSChristian Schoenebeck 31371d72eceSChristian SchoenebeckThe 9p ``proxy`` backend was originally developed as an alternative to the 9p 31471d72eceSChristian Schoenebeck``local`` backend. The idea was to enhance security by dispatching actual low 31571d72eceSChristian Schoenebecklevel filesystem operations from 9p server (QEMU process) over to a separate 31671d72eceSChristian Schoenebeckprocess (the virtfs-proxy-helper binary). However this alternative never gained 31771d72eceSChristian Schoenebeckmomentum. The proxy backend is much slower than the local backend, hasn't seen 31871d72eceSChristian Schoenebeckany development in years, and showed to be less secure, especially due to the 31971d72eceSChristian Schoenebeckfact that its helper daemon must be run as root, whereas with the local backend 32071d72eceSChristian SchoenebeckQEMU is typically run as unprivileged user and allows to tighten behaviour by 32171d72eceSChristian Schoenebeckmapping permissions et al by using its 'mapped' security model option. 32271d72eceSChristian Schoenebeck 32371d72eceSChristian SchoenebeckNowadays it would make sense to reimplement the ``proxy`` backend by using 32471d72eceSChristian SchoenebeckQEMU's ``vhost`` feature, which would eliminate the high latency costs under 32571d72eceSChristian Schoenebeckwhich the 9p ``proxy`` backend currently suffers. However as of to date nobody 326313e1629SStefan Weilhas indicated plans for such kind of reimplementation unfortunately. 32771d72eceSChristian Schoenebeck 328f57d5f80SDaniel Henrique BarbozaRISC-V 'any' CPU type ``-cpu any`` (since 8.2) 329f57d5f80SDaniel Henrique Barboza^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 330f57d5f80SDaniel Henrique Barboza 331f57d5f80SDaniel Henrique BarbozaThe 'any' CPU type was introduced back in 2018 and has been around since the 332f57d5f80SDaniel Henrique Barbozainitial RISC-V QEMU port. Its usage has always been unclear: users don't know 333f57d5f80SDaniel Henrique Barbozawhat to expect from a CPU called 'any', and in fact the CPU does not do anything 334f57d5f80SDaniel Henrique Barbozaspecial that isn't already done by the default CPUs rv32/rv64. 335f57d5f80SDaniel Henrique Barboza 336f57d5f80SDaniel Henrique BarbozaAfter the introduction of the 'max' CPU type, RISC-V now has a good coverage 337f57d5f80SDaniel Henrique Barbozaof generic CPUs: rv32 and rv64 as default CPUs and 'max' as a feature complete 338f57d5f80SDaniel Henrique BarbozaCPU for both 32 and 64 bit builds. Users are then discouraged to use the 'any' 339f57d5f80SDaniel Henrique BarbozaCPU type starting in 8.2. 3407c8d295bSDaniel P. Berrangé 3418043effdSDaniel Henrique BarbozaRISC-V CPU properties which start with capital 'Z' (since 8.2) 3428043effdSDaniel Henrique Barboza^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3438043effdSDaniel Henrique Barboza 3448043effdSDaniel Henrique BarbozaAll RISC-V CPU properties which start with capital 'Z' are being deprecated 3458043effdSDaniel Henrique Barbozastarting in 8.2. The reason is that they were wrongly added with capital 'Z' 3468043effdSDaniel Henrique Barbozain the past. CPU properties were later added with lower-case names, which 3478043effdSDaniel Henrique Barbozais the format we want to use from now on. 3488043effdSDaniel Henrique Barboza 3498043effdSDaniel Henrique BarbozaUsers which try to use these deprecated properties will receive a warning 3508043effdSDaniel Henrique Barbozarecommending to switch to their stable counterparts: 3518043effdSDaniel Henrique Barboza 3528043effdSDaniel Henrique Barboza- "Zifencei" should be replaced with "zifencei" 3538043effdSDaniel Henrique Barboza- "Zicsr" should be replaced with "zicsr" 3548043effdSDaniel Henrique Barboza- "Zihintntl" should be replaced with "zihintntl" 3558043effdSDaniel Henrique Barboza- "Zihintpause" should be replaced with "zihintpause" 3568043effdSDaniel Henrique Barboza- "Zawrs" should be replaced with "zawrs" 3578043effdSDaniel Henrique Barboza- "Zfa" should be replaced with "zfa" 3588043effdSDaniel Henrique Barboza- "Zfh" should be replaced with "zfh" 3598043effdSDaniel Henrique Barboza- "Zfhmin" should be replaced with "zfhmin" 3608043effdSDaniel Henrique Barboza- "Zve32f" should be replaced with "zve32f" 3618043effdSDaniel Henrique Barboza- "Zve64f" should be replaced with "zve64f" 3628043effdSDaniel Henrique Barboza- "Zve64d" should be replaced with "zve64d" 3638043effdSDaniel Henrique Barboza 364e9a54265SThomas Huth``-device pvrdma`` and the rdma subsystem (since 8.2) 365e9a54265SThomas Huth^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 366e9a54265SThomas Huth 367e9a54265SThomas HuthThe pvrdma device and the whole rdma subsystem are in a bad shape and 368e9a54265SThomas Huthwithout active maintenance. The QEMU project intends to remove this 369e9a54265SThomas Huthdevice and subsystem from the code base in a future release without 370e9a54265SThomas Huthreplacement unless somebody steps up and improves the situation. 371e9a54265SThomas Huth 372e2cc363bSYanan Wang 373e2cc363bSYanan WangBlock device options 374f3478392SPeter Maydell'''''''''''''''''''' 375f3478392SPeter Maydell 376f3478392SPeter Maydell``"backing": ""`` (since 2.12) 377f3478392SPeter Maydell^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 378f3478392SPeter Maydell 379f3478392SPeter MaydellIn order to prevent QEMU from automatically opening an image's backing 380f3478392SPeter Maydellchain, use ``"backing": null`` instead. 381f3478392SPeter Maydell 382f3478392SPeter Maydell``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1) 383f3478392SPeter Maydell^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 384f3478392SPeter Maydell 385f3478392SPeter MaydellOptions for ``rbd`` should be specified according to its runtime options, 386f3478392SPeter Maydelllike other block drivers. Legacy parsing of keyvalue pair encoded 387f3478392SPeter Maydellfilenames is useful to open images with the old format for backing files; 388f3478392SPeter MaydellThese image files should be updated to use the current format. 389f3478392SPeter Maydell 390f3478392SPeter MaydellExample of legacy encoding:: 391e2cc363bSYanan Wang 392e2cc363bSYanan Wang json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"} 393f3478392SPeter Maydell 394f3478392SPeter MaydellThe above, converted to the current supported format:: 395f3478392SPeter Maydell 396f3478392SPeter Maydell json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"} 397f3478392SPeter Maydell 398610783cbSDaniel P. Berrangé``iscsi,password=xxx`` (since 8.0) 399610783cbSDaniel P. Berrangé^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 400610783cbSDaniel P. Berrangé 401610783cbSDaniel P. BerrangéSpecifying the iSCSI password in plain text on the command line using the 402610783cbSDaniel P. Berrangé``password`` option is insecure. The ``password-secret`` option should be 403610783cbSDaniel P. Berrangéused instead, to refer to a ``--object secret...`` instance that provides 404610783cbSDaniel P. Berrangéa password via a file, or encrypted. 405610783cbSDaniel P. Berrangé 406b04c1228SMarkus ArmbrusterCharacter device options 407b04c1228SMarkus Armbruster'''''''''''''''''''''''' 408b04c1228SMarkus Armbruster 409b04c1228SMarkus ArmbrusterBackend ``memory`` (since 9.0) 410b04c1228SMarkus Armbruster^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 411b04c1228SMarkus Armbruster 412b04c1228SMarkus Armbruster``memory`` is a deprecated synonym for ``ringbuf``. 413b04c1228SMarkus Armbruster 414bc5e8445SRob BradfordCPU device properties 415bc5e8445SRob Bradford''''''''''''''''''''' 416bc5e8445SRob Bradford 417bc5e8445SRob Bradford``pmu-num=n`` on RISC-V CPUs (since 8.2) 418bc5e8445SRob Bradford^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 419bc5e8445SRob Bradford 420bc5e8445SRob BradfordIn order to support more flexible counter configurations this has been replaced 421bc5e8445SRob Bradfordby a ``pmu-mask`` property. If set of counters is continuous then the mask can 422bc5e8445SRob Bradfordbe calculated with ``((2 ^ n) - 1) << 3``. The least significant three bits 423bc5e8445SRob Bradfordmust be left clear. 424bc5e8445SRob Bradford 425bc5e8445SRob Bradford 426f3478392SPeter MaydellBackwards compatibility 427f3478392SPeter Maydell----------------------- 428f3478392SPeter Maydell 429e2cc363bSYanan WangRunnability guarantee of CPU models (since 4.1) 430e2cc363bSYanan Wang''''''''''''''''''''''''''''''''''''''''''''''' 431f3478392SPeter Maydell 432f3478392SPeter MaydellPrevious versions of QEMU never changed existing CPU models in 433f3478392SPeter Maydellways that introduced additional host software or hardware 434f3478392SPeter Maydellrequirements to the VM. This allowed management software to 435f3478392SPeter Maydellsafely change the machine type of an existing VM without 436f3478392SPeter Maydellintroducing new requirements ("runnability guarantee"). This 437f3478392SPeter Maydellprevented CPU models from being updated to include CPU 438f3478392SPeter Maydellvulnerability mitigations, leaving guests vulnerable in the 439f3478392SPeter Maydelldefault configuration. 440f3478392SPeter Maydell 441f3478392SPeter MaydellThe CPU model runnability guarantee won't apply anymore to 442f3478392SPeter Maydellexisting CPU models. Management software that needs runnability 443f3478392SPeter Maydellguarantees must resolve the CPU model aliases using the 444f3478392SPeter Maydell``alias-of`` field returned by the ``query-cpu-definitions`` QMP 445f3478392SPeter Maydellcommand. 446f3478392SPeter Maydell 447f3478392SPeter MaydellWhile those guarantees are kept, the return value of 448f3478392SPeter Maydell``query-cpu-definitions`` will have existing CPU model aliases 449f3478392SPeter Maydellpoint to a version that doesn't break runnability guarantees 450f3478392SPeter Maydell(specifically, version 1 of those CPU models). In future QEMU 451f3478392SPeter Maydellversions, aliases will point to newer CPU model versions 452f3478392SPeter Maydelldepending on the machine type, so management software must 453f3478392SPeter Maydellresolve CPU model aliases before starting a virtual machine. 454f3478392SPeter Maydell 455582a098eSThomas HuthQEMU guest agent 456582a098eSThomas Huth---------------- 457582a098eSThomas Huth 458582a098eSThomas Huth``--blacklist`` command line option (since 7.2) 459582a098eSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''' 460582a098eSThomas Huth 461582a098eSThomas Huth``--blacklist`` has been replaced by ``--block-rpcs`` (which is a better 462582a098eSThomas Huthwording for what this option does). The short form ``-b`` still stays 463582a098eSThomas Huththe same and thus is the preferred way for scripts that should run with 464582a098eSThomas Huthboth, older and future versions of QEMU. 465582a098eSThomas Huth 466582a098eSThomas Huth``blacklist`` config file option (since 7.2) 467582a098eSThomas Huth'''''''''''''''''''''''''''''''''''''''''''' 468582a098eSThomas Huth 469582a098eSThomas HuthThe ``blacklist`` config file option has been renamed to ``block-rpcs`` 470582a098eSThomas Huth(to be in sync with the renaming of the corresponding command line 471582a098eSThomas Huthoption). 4727b24d326SJuan Quintela 4737b24d326SJuan QuintelaMigration 4747b24d326SJuan Quintela--------- 4757b24d326SJuan Quintela 4767b24d326SJuan Quintela``skipped`` MigrationStats field (since 8.1) 4777b24d326SJuan Quintela'''''''''''''''''''''''''''''''''''''''''''' 4787b24d326SJuan Quintela 4797b24d326SJuan Quintela``skipped`` field in Migration stats has been deprecated. It hasn't 4807b24d326SJuan Quintelabeen used for more than 10 years. 4817b24d326SJuan Quintela 48240101f32SJuan Quintela``inc`` migrate command option (since 8.2) 48340101f32SJuan Quintela'''''''''''''''''''''''''''''''''''''''''' 48440101f32SJuan Quintela 48540101f32SJuan QuintelaUse blockdev-mirror with NBD instead. 48640101f32SJuan Quintela 48740101f32SJuan QuintelaAs an intermediate step the ``inc`` functionality can be achieved by 48840101f32SJuan Quintelasetting the ``block-incremental`` migration parameter to ``true``. 48940101f32SJuan QuintelaBut this parameter is also deprecated. 4908846b5bfSJuan Quintela 4918846b5bfSJuan Quintela``blk`` migrate command option (since 8.2) 4928846b5bfSJuan Quintela'''''''''''''''''''''''''''''''''''''''''' 4938846b5bfSJuan Quintela 4948846b5bfSJuan QuintelaUse blockdev-mirror with NBD instead. 4958846b5bfSJuan Quintela 4968846b5bfSJuan QuintelaAs an intermediate step the ``blk`` functionality can be achieved by 4978846b5bfSJuan Quintelasetting the ``block`` migration capability to ``true``. But this 4988846b5bfSJuan Quintelacapability is also deprecated. 49966db46caSJuan Quintela 50066db46caSJuan Quintelablock migration (since 8.2) 50166db46caSJuan Quintela''''''''''''''''''''''''''' 50266db46caSJuan Quintela 50366db46caSJuan QuintelaBlock migration is too inflexible. It needs to migrate all block 50466db46caSJuan Quinteladevices or none. 50566db46caSJuan Quintela 50666db46caSJuan QuintelaPlease see "QMP invocation for live storage migration with 50766db46caSJuan Quintela``blockdev-mirror`` + NBD" in docs/interop/live-block-operations.rst 50866db46caSJuan Quintelafor a detailed explanation. 509864128dfSJuan Quintela 510864128dfSJuan Quintelaold compression method (since 8.2) 511864128dfSJuan Quintela'''''''''''''''''''''''''''''''''' 512864128dfSJuan Quintela 513864128dfSJuan QuintelaCompression method fails too much. Too many races. We are going to 514864128dfSJuan Quintelaremove it if nobody fixes it. For starters, migration-test 5156477366fSMichael Tokarevcompression tests are disabled because they fail randomly. If you need 516864128dfSJuan Quintelacompression, use multifd compression methods. 517