deprecated.rst 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. .. _Deprecated features:
  2. Deprecated features
  3. ===================
  4. In general features are intended to be supported indefinitely once
  5. introduced into QEMU. In the event that a feature needs to be removed,
  6. it will be listed in this section. The feature will remain functional for the
  7. release in which it was deprecated and one further release. After these two
  8. releases, the feature is liable to be removed. Deprecated features may also
  9. generate warnings on the console when QEMU starts up, or if activated via a
  10. monitor command, however, this is not a mandatory requirement.
  11. As a special exception to this general timeframe, rather than have an
  12. indefinite lifetime, versioned machine types are only intended to be
  13. supported for a period of 6 years, equivalent to 18 QEMU releases. All
  14. versioned machine types will be automatically marked deprecated after an
  15. initial 3 years (9 QEMU releases) has passed, and will then be deleted after
  16. a further 3 year period has passed. It is recommended that a deprecated
  17. machine type is only used for incoming migrations and restore of saved state,
  18. for pre-existing VM deployments. They should be scheduled for updating to a
  19. newer machine type during an appropriate service window. Newly deployed VMs
  20. should exclusively use a non-deprecated machine type, with use of the most
  21. recent version highly recommended. Non-versioned machine types follow the
  22. general feature deprecation policy.
  23. What follows is a list of all features currently marked as
  24. deprecated.
  25. System emulator command line arguments
  26. --------------------------------------
  27. Short-form boolean options (since 6.0)
  28. ''''''''''''''''''''''''''''''''''''''
  29. Boolean options such as ``share=on``/``share=off`` could be written
  30. in short form as ``share`` and ``noshare``. This is now deprecated
  31. and will cause a warning.
  32. ``delay`` option for socket character devices (since 6.0)
  33. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  34. The replacement for the ``nodelay`` short-form boolean option is ``nodelay=on``
  35. rather than ``delay=off``.
  36. Plugin argument passing through ``arg=<string>`` (since 6.1)
  37. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  38. Passing TCG plugins arguments through ``arg=`` is redundant is makes the
  39. command-line less readable, especially when the argument itself consist of a
  40. name and a value, e.g. ``-plugin plugin_name,arg="arg_name=arg_value"``.
  41. Therefore, the usage of ``arg`` is redundant. Single-word arguments are treated
  42. as short-form boolean values, and passed to plugins as ``arg_name=on``.
  43. However, short-form booleans are deprecated and full explicit ``arg_name=on``
  44. form is preferred.
  45. ``-smp`` (Unsupported "parameter=1" SMP configurations) (since 9.0)
  46. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  47. Specified CPU topology parameters must be supported by the machine.
  48. In the SMP configuration, users should provide the CPU topology parameters that
  49. are supported by the target machine.
  50. However, historically it was allowed for users to specify the unsupported
  51. topology parameter as "1", which is meaningless. So support for this kind of
  52. configurations (e.g. -smp drawers=1,books=1,clusters=1 for x86 PC machine) is
  53. marked deprecated since 9.0, users have to ensure that all the topology members
  54. described with -smp are supported by the target machine.
  55. ``-old-param`` option for booting Arm kernels via param_struct (since 10.0)
  56. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  57. The ``-old-param`` command line option is specific to Arm targets:
  58. it is used when directly booting a guest kernel to pass it the
  59. command line and other information via the old ``param_struct`` ABI,
  60. rather than the newer ATAGS or DTB mechanisms. This option was only
  61. ever needed to support ancient kernels on some old board types
  62. like the ``akita`` or ``terrier``; it has been deprecated in the
  63. kernel since 2001. None of the board types QEMU supports need
  64. ``param_struct`` support, so this option has been deprecated and will
  65. be removed in a future QEMU version.
  66. User-mode emulator command line arguments
  67. -----------------------------------------
  68. ``-p`` (since 9.0)
  69. ''''''''''''''''''
  70. The ``-p`` option pretends to control the host page size. However,
  71. it is not possible to change the host page size, and using the
  72. option only causes failures.
  73. QEMU Machine Protocol (QMP) commands
  74. ------------------------------------
  75. ``blockdev-open-tray``, ``blockdev-close-tray`` argument ``device`` (since 2.8)
  76. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  77. Use argument ``id`` instead.
  78. ``eject`` argument ``device`` (since 2.8)
  79. '''''''''''''''''''''''''''''''''''''''''
  80. Use argument ``id`` instead.
  81. ``blockdev-change-medium`` argument ``device`` (since 2.8)
  82. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  83. Use argument ``id`` instead.
  84. ``block_set_io_throttle`` argument ``device`` (since 2.8)
  85. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  86. Use argument ``id`` instead.
  87. ``blockdev-add`` empty string argument ``backing`` (since 2.10)
  88. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  89. Use argument value ``null`` instead.
  90. ``block-commit`` arguments ``base`` and ``top`` (since 3.1)
  91. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  92. Use arguments ``base-node`` and ``top-node`` instead.
  93. ``nbd-server-add`` and ``nbd-server-remove`` (since 5.2)
  94. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  95. Use the more generic commands ``block-export-add`` and ``block-export-del``
  96. instead. As part of this deprecation, where ``nbd-server-add`` used a
  97. single ``bitmap``, the new ``block-export-add`` uses a list of ``bitmaps``.
  98. ``query-qmp-schema`` return value member ``values`` (since 6.2)
  99. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  100. Member ``values`` in return value elements with meta-type ``enum`` is
  101. deprecated. Use ``members`` instead.
  102. ``drive-backup`` (since 6.2)
  103. ''''''''''''''''''''''''''''
  104. Use ``blockdev-backup`` in combination with ``blockdev-add`` instead.
  105. This change primarily separates the creation/opening process of the backup
  106. target with explicit, separate steps. ``blockdev-backup`` uses mostly the
  107. same arguments as ``drive-backup``, except the ``format`` and ``mode``
  108. options are removed in favor of using explicit ``blockdev-create`` and
  109. ``blockdev-add`` calls. See :doc:`/interop/live-block-operations` for
  110. details.
  111. ``query-migrationthreads`` (since 9.2)
  112. ''''''''''''''''''''''''''''''''''''''
  113. To be removed with no replacement, as it reports only a limited set of
  114. threads (for example, it only reports source side of multifd threads,
  115. without reporting any destination threads, or non-multifd source threads).
  116. For debugging purpose, please use ``-name $VM,debug-threads=on`` instead.
  117. Incorrectly typed ``device_add`` arguments (since 6.2)
  118. ''''''''''''''''''''''''''''''''''''''''''''''''''''''
  119. Due to shortcomings in the internal implementation of ``device_add``, QEMU
  120. incorrectly accepts certain invalid arguments: Any object or list arguments are
  121. silently ignored. Other argument types are not checked, but an implicit
  122. conversion happens, so that e.g. string values can be assigned to integer
  123. device properties or vice versa.
  124. This is a bug in QEMU that will be fixed in the future so that previously
  125. accepted incorrect commands will return an error. Users should make sure that
  126. all arguments passed to ``device_add`` are consistent with the documented
  127. property types.
  128. Host Architectures
  129. ------------------
  130. Big endian MIPS since 7.2; 32-bit little endian MIPS since 9.2
  131. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  132. As Debian 10 ("Buster") moved into LTS the big endian 32 bit version of
  133. MIPS moved out of support making it hard to maintain our
  134. cross-compilation CI tests of the architecture. As we no longer have
  135. CI coverage support may bitrot away before the deprecation process
  136. completes.
  137. Likewise, the little endian variant of 32 bit MIPS is not supported by
  138. Debian 13 ("Trixie") and newer.
  139. 64 bit little endian MIPS is still a supported host architecture.
  140. System emulation on 32-bit x86 hosts (since 8.0)
  141. ''''''''''''''''''''''''''''''''''''''''''''''''
  142. Support for 32-bit x86 host deployments is increasingly uncommon in mainstream
  143. OS distributions given the widespread availability of 64-bit x86 hardware.
  144. The QEMU project no longer considers 32-bit x86 support for system emulation to
  145. be an effective use of its limited resources, and thus intends to discontinue
  146. it. Since all recent x86 hardware from the past >10 years is capable of the
  147. 64-bit x86 extensions, a corresponding 64-bit OS should be used instead.
  148. TCG Plugin support not enabled by default on 32-bit hosts (since 9.2)
  149. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  150. While it is still possible to enable TCG plugin support for 32-bit
  151. hosts there are a number of potential pitfalls when instrumenting
  152. 64-bit guests. The plugin APIs typically pass most addresses as
  153. uint64_t but practices like encoding that address in a host pointer
  154. for passing as user-data will lose data. As most software analysis
  155. benefits from having plenty of host memory it seems reasonable to
  156. encourage users to use 64 bit builds of QEMU for analysis work
  157. whatever targets they are instrumenting.
  158. TCG Plugin support not enabled by default with TCI (since 9.2)
  159. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  160. While the TCG interpreter can interpret the TCG ops used by plugins it
  161. is going to be so much slower it wouldn't make sense for any serious
  162. instrumentation. Due to implementation differences there will also be
  163. anomalies in things like memory instrumentation.
  164. 32-bit host operating systems (since 10.0)
  165. ''''''''''''''''''''''''''''''''''''''''''
  166. Keeping 32-bit host support alive is a substantial burden for the
  167. QEMU project. Thus QEMU will in future drop the support for all
  168. 32-bit host systems.
  169. linux-user mode CPUs
  170. --------------------
  171. iwMMXt emulation and the ``pxa`` CPUs (since 10.0)
  172. ''''''''''''''''''''''''''''''''''''''''''''''''''
  173. The ``pxa`` CPU family (``pxa250``, ``pxa255``, ``pxa260``,
  174. ``pxa261``, ``pxa262``, ``pxa270-a0``, ``pxa270-a1``, ``pxa270``,
  175. ``pxa270-b0``, ``pxa270-b1``, ``pxa270-c0``, ``pxa270-c5``) are no
  176. longer used in system emulation, because all the machine types which
  177. used these CPUs were removed in the QEMU 9.2 release. These CPUs can
  178. now only be used in linux-user mode, and to do that you would have to
  179. explicitly select one of these CPUs with the ``-cpu`` command line
  180. option or the ``QEMU_CPU`` environment variable.
  181. We don't believe that anybody is using the iwMMXt emulation, and we do
  182. not have any tests to validate it or any real hardware or similar
  183. known-good implementation to test against. GCC is in the process of
  184. dropping their support for iwMMXt codegen. These CPU types are
  185. therefore deprecated in QEMU, and will be removed in a future release.
  186. System emulator CPUs
  187. --------------------
  188. ``power5+`` and ``power7+`` CPU names (since 9.0)
  189. '''''''''''''''''''''''''''''''''''''''''''''''''
  190. The character "+" in device (and thus also CPU) names is not allowed
  191. in the QEMU object model anymore. ``power5+``, ``power5+_v2.1``,
  192. ``power7+`` and ``power7+_v2.1`` are currently still supported via
  193. an alias, but for consistency these will get removed in a future
  194. release, too. Use ``power5p_v2.1`` and ``power7p_v2.1`` instead.
  195. ``Sun-UltraSparc-IIIi+`` and ``Sun-UltraSparc-IV+`` CPU names (since 9.1)
  196. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  197. The character "+" in device (and thus also CPU) names is not allowed
  198. in the QEMU object model anymore. ``Sun-UltraSparc-IIIi+`` and
  199. ``Sun-UltraSparc-IV+`` are currently still supported via a workaround,
  200. but for consistency these will get removed in a future release, too.
  201. Use ``Sun-UltraSparc-IIIi-plus`` and ``Sun-UltraSparc-IV-plus`` instead.
  202. PPC 405 CPUs (since 10.0)
  203. '''''''''''''''''''''''''
  204. The PPC 405 CPU has no known users and the ``ref405ep`` machine was
  205. removed in QEMU 10.0. Since the IBM POWER [8-11] processors uses an
  206. embedded 405 for power management (OCC) and other internal tasks, it
  207. is theoretically possible to use QEMU to model them. Let's keep the
  208. CPU implementation for a while before removing all support.
  209. System emulator machines
  210. ------------------------
  211. Arm ``virt`` machine ``dtb-kaslr-seed`` property (since 7.1)
  212. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  213. The ``dtb-kaslr-seed`` property on the ``virt`` board has been
  214. deprecated; use the new name ``dtb-randomness`` instead. The new name
  215. better reflects the way this property affects all random data within
  216. the device tree blob, not just the ``kaslr-seed`` node.
  217. Big-Endian variants of MicroBlaze ``petalogix-ml605`` and ``xlnx-zynqmp-pmu`` machines (since 9.2)
  218. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  219. Both ``petalogix-ml605`` and ``xlnx-zynqmp-pmu`` were added for little endian
  220. CPUs. Big endian support is not tested.
  221. Mips ``mipssim`` machine (since 10.0)
  222. '''''''''''''''''''''''''''''''''''''
  223. Linux dropped support for this virtual machine type in kernel v3.7, and
  224. there does not seem to be anybody around who is still using this board
  225. in QEMU: Most former MIPS-related people are working on other architectures
  226. in their everyday job nowadays, and we are also not aware of anybody still
  227. using old binaries with this board (i.e. there is also no binary available
  228. online to check that this board did not completely bitrot yet). It is
  229. recommended to use another MIPS machine for future MIPS code development
  230. instead.
  231. RISC-V default machine option (since 10.0)
  232. ''''''''''''''''''''''''''''''''''''''''''
  233. RISC-V defines ``spike`` as the default machine if no machine option is
  234. given in the command line. This happens because ``spike`` is the first
  235. RISC-V machine implemented in QEMU and setting it as default was
  236. convenient at that time. Now we have 7 riscv64 and 6 riscv32 machines
  237. and having ``spike`` as a default is no longer justified. This default
  238. will also promote situations where users think they're running ``virt``
  239. (the most used RISC-V machine type in 10.0) when in fact they're
  240. running ``spike``.
  241. Removing the default machine option forces users to always set the machine
  242. they want to use and avoids confusion. Existing users of the ``spike``
  243. machine must ensure that they're setting the ``spike`` machine in the
  244. command line (``-M spike``).
  245. Backend options
  246. ---------------
  247. Using non-persistent backing file with pmem=on (since 6.1)
  248. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  249. This option is used when ``memory-backend-file`` is consumed by emulated NVDIMM
  250. device. However enabling ``memory-backend-file.pmem`` option, when backing file
  251. is (a) not DAX capable or (b) not on a filesystem that support direct mapping
  252. of persistent memory, is not safe and may lead to data loss or corruption in case
  253. of host crash.
  254. Options are:
  255. - modify VM configuration to set ``pmem=off`` to continue using fake NVDIMM
  256. (without persistence guaranties) with backing file on non DAX storage
  257. - move backing file to NVDIMM storage and keep ``pmem=on``
  258. (to have NVDIMM with persistence guaranties).
  259. Device options
  260. --------------
  261. Emulated device options
  262. '''''''''''''''''''''''
  263. ``-device nvme-ns,eui64-default=on|off`` (since 7.1)
  264. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  265. In QEMU versions 6.1, 6.2 and 7.0, the ``nvme-ns`` generates an EUI-64
  266. identifier that is not globally unique. If an EUI-64 identifier is required, the
  267. user must set it explicitly using the ``nvme-ns`` device parameter ``eui64``.
  268. ``-device nvme,use-intel-id=on|off`` (since 7.1)
  269. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  270. The ``nvme`` device originally used a PCI Vendor/Device Identifier combination
  271. from Intel that was not properly allocated. Since version 5.2, the controller
  272. has used a properly allocated identifier. Deprecate the ``use-intel-id``
  273. machine compatibility parameter.
  274. ``-device cxl-type3,memdev=xxxx`` (since 8.0)
  275. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  276. The ``cxl-type3`` device initially only used a single memory backend. With
  277. the addition of volatile memory support, it is now necessary to distinguish
  278. between persistent and volatile memory backends. As such, memdev is deprecated
  279. in favor of persistent-memdev.
  280. RISC-V CPU properties which start with capital 'Z' (since 8.2)
  281. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  282. All RISC-V CPU properties which start with capital 'Z' are being deprecated
  283. starting in 8.2. The reason is that they were wrongly added with capital 'Z'
  284. in the past. CPU properties were later added with lower-case names, which
  285. is the format we want to use from now on.
  286. Users which try to use these deprecated properties will receive a warning
  287. recommending to switch to their stable counterparts:
  288. - "Zifencei" should be replaced with "zifencei"
  289. - "Zicsr" should be replaced with "zicsr"
  290. - "Zihintntl" should be replaced with "zihintntl"
  291. - "Zihintpause" should be replaced with "zihintpause"
  292. - "Zawrs" should be replaced with "zawrs"
  293. - "Zfa" should be replaced with "zfa"
  294. - "Zfh" should be replaced with "zfh"
  295. - "Zfhmin" should be replaced with "zfhmin"
  296. - "Zve32f" should be replaced with "zve32f"
  297. - "Zve64f" should be replaced with "zve64f"
  298. - "Zve64d" should be replaced with "zve64d"
  299. ``-device sd-card,spec_version=1`` (since 9.1)
  300. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  301. SD physical layer specification v2.00 supersedes the v1.10 one.
  302. v2.00 is the default since QEMU 3.0.0.
  303. Block device options
  304. ''''''''''''''''''''
  305. ``"backing": ""`` (since 2.12)
  306. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  307. In order to prevent QEMU from automatically opening an image's backing
  308. chain, use ``"backing": null`` instead.
  309. ``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1)
  310. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  311. Options for ``rbd`` should be specified according to its runtime options,
  312. like other block drivers. Legacy parsing of keyvalue pair encoded
  313. filenames is useful to open images with the old format for backing files;
  314. These image files should be updated to use the current format.
  315. Example of legacy encoding::
  316. json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"}
  317. The above, converted to the current supported format::
  318. json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"}
  319. ``iscsi,password=xxx`` (since 8.0)
  320. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  321. Specifying the iSCSI password in plain text on the command line using the
  322. ``password`` option is insecure. The ``password-secret`` option should be
  323. used instead, to refer to a ``--object secret...`` instance that provides
  324. a password via a file, or encrypted.
  325. ``gluster`` backend (since 9.2)
  326. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  327. According to https://marc.info/?l=fedora-devel-list&m=171934833215726
  328. the GlusterFS development effectively ended. Unless the development
  329. gains momentum again, the QEMU project will remove the gluster backend
  330. in a future release.
  331. Character device options
  332. ''''''''''''''''''''''''
  333. Backend ``memory`` (since 9.0)
  334. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  335. ``memory`` is a deprecated synonym for ``ringbuf``.
  336. ``reconnect`` (since 9.2)
  337. ^^^^^^^^^^^^^^^^^^^^^^^^^
  338. The ``reconnect`` option only allows specifying second granularity timeouts,
  339. which is not enough for all types of use cases, use ``reconnect-ms`` instead.
  340. Net device options
  341. ''''''''''''''''''
  342. Stream ``reconnect`` (since 9.2)
  343. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  344. The ``reconnect`` option only allows specifying second granularity timeouts,
  345. which is not enough for all types of use cases, use ``reconnect-ms`` instead.
  346. VFIO device options
  347. '''''''''''''''''''
  348. ``-device vfio-calxeda-xgmac`` (since 10.0)
  349. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  350. The vfio-calxeda-xgmac device allows to assign a host Calxeda Highbank
  351. 10Gb XGMAC Ethernet controller device ("calxeda,hb-xgmac" compatibility
  352. string) to a guest. Calxeda HW has been ewasted now and there is no point
  353. keeping that device.
  354. ``-device vfio-amd-xgbe`` (since 10.0)
  355. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  356. The vfio-amd-xgbe device allows to assign a host AMD 10GbE controller
  357. to a guest ("amd,xgbe-seattle-v1a" compatibility string). AMD "Seattle"
  358. is not supported anymore and there is no point keeping that device.
  359. ``-device vfio-platform`` (since 10.0)
  360. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  361. The vfio-platform device allows to assign a host platform device
  362. to a guest in a generic manner. Integrating a new device into
  363. the vfio-platform infrastructure requires some adaptation at
  364. both kernel and qemu level. No such attempt has been done for years
  365. and the conclusion is that vfio-platform has not got any traction.
  366. PCIe passthrough shall be the mainline solution.
  367. CPU device properties
  368. '''''''''''''''''''''
  369. ``pcommit`` on x86 (since 9.1)
  370. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  371. The PCOMMIT instruction was never included in any physical processor.
  372. It was implemented as a no-op instruction in TCG up to QEMU 9.0, but
  373. only with ``-cpu max`` (which does not guarantee migration compatibility
  374. across versions).
  375. ``pmu-num=n`` on RISC-V CPUs (since 8.2)
  376. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  377. In order to support more flexible counter configurations this has been replaced
  378. by a ``pmu-mask`` property. If set of counters is continuous then the mask can
  379. be calculated with ``((2 ^ n) - 1) << 3``. The least significant three bits
  380. must be left clear.
  381. Backwards compatibility
  382. -----------------------
  383. Runnability guarantee of CPU models (since 4.1)
  384. '''''''''''''''''''''''''''''''''''''''''''''''
  385. Previous versions of QEMU never changed existing CPU models in
  386. ways that introduced additional host software or hardware
  387. requirements to the VM. This allowed management software to
  388. safely change the machine type of an existing VM without
  389. introducing new requirements ("runnability guarantee"). This
  390. prevented CPU models from being updated to include CPU
  391. vulnerability mitigations, leaving guests vulnerable in the
  392. default configuration.
  393. The CPU model runnability guarantee won't apply anymore to
  394. existing CPU models. Management software that needs runnability
  395. guarantees must resolve the CPU model aliases using the
  396. ``alias-of`` field returned by the ``query-cpu-definitions`` QMP
  397. command.
  398. While those guarantees are kept, the return value of
  399. ``query-cpu-definitions`` will have existing CPU model aliases
  400. point to a version that doesn't break runnability guarantees
  401. (specifically, version 1 of those CPU models). In future QEMU
  402. versions, aliases will point to newer CPU model versions
  403. depending on the machine type, so management software must
  404. resolve CPU model aliases before starting a virtual machine.
  405. RISC-V "virt" board "riscv,delegate" DT property (since 9.1)
  406. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  407. The "riscv,delegate" DT property was added in QEMU 7.0 as part of
  408. the AIA APLIC support. The property changed name during the review
  409. process in Linux and the correct name ended up being
  410. "riscv,delegation". Changing the DT property name will break all
  411. available firmwares that are using the current (wrong) name. The
  412. property is kept as is in 9.1, together with "riscv,delegation", to
  413. give more time for firmware developers to change their code.
  414. Migration
  415. ---------
  416. ``fd:`` URI when used for file migration (since 9.1)
  417. ''''''''''''''''''''''''''''''''''''''''''''''''''''
  418. The ``fd:`` URI can currently provide a file descriptor that
  419. references either a socket or a plain file. These are two different
  420. types of migration. In order to reduce ambiguity, the ``fd:`` URI
  421. usage of providing a file descriptor to a plain file has been
  422. deprecated in favor of explicitly using the ``file:`` URI with the
  423. file descriptor being passed as an ``fdset``. Refer to the ``add-fd``
  424. command documentation for details on the ``fdset`` usage.
  425. ``zero-blocks`` capability (since 9.2)
  426. ''''''''''''''''''''''''''''''''''''''
  427. The ``zero-blocks`` capability was part of the block migration which
  428. doesn't exist anymore since it was removed in QEMU v9.1.