xref: /qemu/docs/about/removed-features.rst (revision cfb5387a1de2acda23fb5c97d2378b9e7ddf8025)
12c5060cdSThomas Huth
22c5060cdSThomas HuthRemoved features
32c5060cdSThomas Huth================
42c5060cdSThomas Huth
52c5060cdSThomas HuthWhat follows is a record of recently removed, formerly deprecated
62c5060cdSThomas Huthfeatures that serves as a record for users who have encountered
72c5060cdSThomas Huthtrouble after a recent upgrade.
82c5060cdSThomas Huth
92c5060cdSThomas HuthSystem emulator command line arguments
102c5060cdSThomas Huth--------------------------------------
112c5060cdSThomas Huth
122c5060cdSThomas Huth``-net ...,name=``\ *name* (removed in 5.1)
132c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''
142c5060cdSThomas Huth
152c5060cdSThomas HuthThe ``name`` parameter of the ``-net`` option was a synonym
162c5060cdSThomas Huthfor the ``id`` parameter, which should now be used instead.
172c5060cdSThomas Huth
182c5060cdSThomas Huth``-no-kvm`` (removed in 5.2)
192c5060cdSThomas Huth''''''''''''''''''''''''''''
202c5060cdSThomas Huth
212c5060cdSThomas HuthThe ``-no-kvm`` argument was a synonym for setting ``-machine accel=tcg``.
222c5060cdSThomas Huth
23c8c9dc42SThomas Huth``-realtime`` (removed in 6.0)
24c8c9dc42SThomas Huth''''''''''''''''''''''''''''''
25c8c9dc42SThomas Huth
26c8c9dc42SThomas HuthThe ``-realtime mlock=on|off`` argument has been replaced by the
27c8c9dc42SThomas Huth``-overcommit mem-lock=on|off`` argument.
28c8c9dc42SThomas Huth
2990d6a086SThomas Huth``-show-cursor`` option (since 5.0)
3090d6a086SThomas Huth'''''''''''''''''''''''''''''''''''
3190d6a086SThomas Huth
3290d6a086SThomas HuthUse ``-display sdl,show-cursor=on``, ``-display gtk,show-cursor=on``
3390d6a086SThomas Huthor ``-display default,show-cursor=on`` instead.
3490d6a086SThomas Huth
352c5060cdSThomas Huth``-tb-size`` option (removed in 6.0)
362c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''
372c5060cdSThomas Huth
382c5060cdSThomas HuthQEMU 5.0 introduced an alternative syntax to specify the size of the translation
392c5060cdSThomas Huthblock cache, ``-accel tcg,tb-size=``.
402c5060cdSThomas Huth
412c5060cdSThomas HuthQEMU Machine Protocol (QMP) commands
422c5060cdSThomas Huth------------------------------------
432c5060cdSThomas Huth
442c5060cdSThomas Huth``block-dirty-bitmap-add`` "autoload" parameter (removed in 4.2.0)
452c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
462c5060cdSThomas Huth
472c5060cdSThomas HuthThe "autoload" parameter has been ignored since 2.12.0. All bitmaps
482c5060cdSThomas Huthare automatically loaded from qcow2 images.
492c5060cdSThomas Huth
502c5060cdSThomas Huth``cpu-add`` (removed in 5.2)
512c5060cdSThomas Huth''''''''''''''''''''''''''''
522c5060cdSThomas Huth
532c5060cdSThomas HuthUse ``device_add`` for hotplugging vCPUs instead of ``cpu-add``.  See
542c5060cdSThomas Huthdocumentation of ``query-hotpluggable-cpus`` for additional details.
552c5060cdSThomas Huth
562c5060cdSThomas HuthHuman Monitor Protocol (HMP) commands
572c5060cdSThomas Huth-------------------------------------
582c5060cdSThomas Huth
592c5060cdSThomas HuthThe ``hub_id`` parameter of ``hostfwd_add`` / ``hostfwd_remove`` (removed in 5.0)
602c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
612c5060cdSThomas Huth
622c5060cdSThomas HuthThe ``[hub_id name]`` parameter tuple of the 'hostfwd_add' and
632c5060cdSThomas Huth'hostfwd_remove' HMP commands has been replaced by ``netdev_id``.
642c5060cdSThomas Huth
652c5060cdSThomas Huth``cpu-add`` (removed in 5.2)
662c5060cdSThomas Huth''''''''''''''''''''''''''''
672c5060cdSThomas Huth
682c5060cdSThomas HuthUse ``device_add`` for hotplugging vCPUs instead of ``cpu-add``.  See
692c5060cdSThomas Huthdocumentation of ``query-hotpluggable-cpus`` for additional details.
702c5060cdSThomas Huth
71cfb5387aSPaolo Bonzini``change vnc TARGET`` (removed in 6.0)
72cfb5387aSPaolo Bonzini''''''''''''''''''''''''''''''''''''''
73cfb5387aSPaolo Bonzini
74cfb5387aSPaolo BonziniNo replacement.  The ``change vnc password`` and ``change DEVICE MEDIUM``
75cfb5387aSPaolo Bonzinicommands are not affected.
76cfb5387aSPaolo Bonzini
772c5060cdSThomas HuthGuest Emulator ISAs
782c5060cdSThomas Huth-------------------
792c5060cdSThomas Huth
802c5060cdSThomas HuthRISC-V ISA privilege specification version 1.09.1 (removed in 5.1)
812c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
822c5060cdSThomas Huth
832c5060cdSThomas HuthThe RISC-V ISA privilege specification version 1.09.1 has been removed.
842c5060cdSThomas HuthQEMU supports both the newer version 1.10.0 and the ratified version 1.11.0, these
852c5060cdSThomas Huthshould be used instead of the 1.09.1 version.
862c5060cdSThomas Huth
872c5060cdSThomas HuthSystem emulator CPUS
882c5060cdSThomas Huth--------------------
892c5060cdSThomas Huth
902c5060cdSThomas HuthKVM guest support on 32-bit Arm hosts (removed in 5.2)
912c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''''
922c5060cdSThomas Huth
932c5060cdSThomas HuthThe Linux kernel has dropped support for allowing 32-bit Arm systems
942c5060cdSThomas Huthto host KVM guests as of the 5.7 kernel. Accordingly, QEMU is deprecating
952c5060cdSThomas Huthits support for this configuration and will remove it in a future version.
962c5060cdSThomas HuthRunning 32-bit guests on a 64-bit Arm host remains supported.
972c5060cdSThomas Huth
982c5060cdSThomas HuthRISC-V ISA Specific CPUs (removed in 5.1)
992c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''
1002c5060cdSThomas Huth
1012c5060cdSThomas HuthThe RISC-V cpus with the ISA version in the CPU name have been removed. The
1022c5060cdSThomas Huthfour CPUs are: ``rv32gcsu-v1.9.1``, ``rv32gcsu-v1.10.0``, ``rv64gcsu-v1.9.1`` and
1032c5060cdSThomas Huth``rv64gcsu-v1.10.0``. Instead the version can be specified via the CPU ``priv_spec``
1042c5060cdSThomas Huthoption when using the ``rv32`` or ``rv64`` CPUs.
1052c5060cdSThomas Huth
1062c5060cdSThomas HuthRISC-V no MMU CPUs (removed in 5.1)
1072c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''
1082c5060cdSThomas Huth
1092c5060cdSThomas HuthThe RISC-V no MMU cpus have been removed. The two CPUs: ``rv32imacu-nommu`` and
1102c5060cdSThomas Huth``rv64imacu-nommu`` can no longer be used. Instead the MMU status can be specified
1112c5060cdSThomas Huthvia the CPU ``mmu`` option when using the ``rv32`` or ``rv64`` CPUs.
1122c5060cdSThomas Huth
1132c5060cdSThomas HuthSystem emulator machines
1142c5060cdSThomas Huth------------------------
1152c5060cdSThomas Huth
1162c5060cdSThomas Huth``spike_v1.9.1`` and ``spike_v1.10`` (removed in 5.1)
1172c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''''''''
1182c5060cdSThomas Huth
1192c5060cdSThomas HuthThe version specific Spike machines have been removed in favour of the
1202c5060cdSThomas Huthgeneric ``spike`` machine. If you need to specify an older version of the RISC-V
1212c5060cdSThomas Huthspec you can use the ``-cpu rv64gcsu,priv_spec=v1.10.0`` command line argument.
1222c5060cdSThomas Huth
1232c5060cdSThomas Huthmips ``r4k`` platform (removed in 5.2)
1242c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''
1252c5060cdSThomas Huth
1262c5060cdSThomas HuthThis machine type was very old and unmaintained. Users should use the ``malta``
1272c5060cdSThomas Huthmachine type instead.
1282c5060cdSThomas Huth
129cd669e20SPhilippe Mathieu-Daudémips ``fulong2e`` machine alias (removed in 6.0)
130cd669e20SPhilippe Mathieu-Daudé''''''''''''''''''''''''''''''''''''''''''''''''
131cd669e20SPhilippe Mathieu-Daudé
132cd669e20SPhilippe Mathieu-DaudéThis machine has been renamed ``fuloong2e``.
133cd669e20SPhilippe Mathieu-Daudé
1342c5060cdSThomas HuthRelated binaries
1352c5060cdSThomas Huth----------------
1362c5060cdSThomas Huth
1372c5060cdSThomas Huth``qemu-nbd --partition`` (removed in 5.0)
1382c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''
1392c5060cdSThomas Huth
1402c5060cdSThomas HuthThe ``qemu-nbd --partition $digit`` code (also spelled ``-P``)
1412c5060cdSThomas Huthcould only handle MBR partitions, and never correctly handled logical
1422c5060cdSThomas Huthpartitions beyond partition 5.  Exporting a partition can still be
1432c5060cdSThomas Huthdone by utilizing the ``--image-opts`` option with a raw blockdev
1442c5060cdSThomas Huthusing the ``offset`` and ``size`` parameters layered on top of
1452c5060cdSThomas Huthany other existing blockdev. For example, if partition 1 is 100MiB
1462c5060cdSThomas Huthlong starting at 1MiB, the old command::
1472c5060cdSThomas Huth
1482c5060cdSThomas Huth  qemu-nbd -t -P 1 -f qcow2 file.qcow2
1492c5060cdSThomas Huth
1502c5060cdSThomas Huthcan be rewritten as::
1512c5060cdSThomas Huth
1522c5060cdSThomas Huth  qemu-nbd -t --image-opts driver=raw,offset=1M,size=100M,file.driver=qcow2,file.file.driver=file,file.file.filename=file.qcow2
1532c5060cdSThomas Huth
1542c5060cdSThomas Huth``qemu-img convert -n -o`` (removed in 5.1)
1552c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''
1562c5060cdSThomas Huth
1572c5060cdSThomas HuthAll options specified in ``-o`` are image creation options, so
1582c5060cdSThomas Huththey are now rejected when used with ``-n`` to skip image creation.
1592c5060cdSThomas Huth
1602c5060cdSThomas Huth
1612c5060cdSThomas Huth``qemu-img create -b bad file $size`` (removed in 5.1)
1622c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''''
1632c5060cdSThomas Huth
1642c5060cdSThomas HuthWhen creating an image with a backing file that could not be opened,
1652c5060cdSThomas Huth``qemu-img create`` used to issue a warning about the failure but
1662c5060cdSThomas Huthproceed with the image creation if an explicit size was provided.
1672c5060cdSThomas HuthHowever, as the ``-u`` option exists for this purpose, it is safer to
1682c5060cdSThomas Huthenforce that any failure to open the backing image (including if the
1692c5060cdSThomas Huthbacking file is missing or an incorrect format was specified) is an
1702c5060cdSThomas Hutherror when ``-u`` is not used.
1712c5060cdSThomas Huth
1722c5060cdSThomas HuthCommand line options
1732c5060cdSThomas Huth--------------------
1742c5060cdSThomas Huth
1752c5060cdSThomas Huth``-smp`` (invalid topologies) (removed 5.2)
1762c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''
1772c5060cdSThomas Huth
1782c5060cdSThomas HuthCPU topology properties should describe whole machine topology including
1792c5060cdSThomas Huthpossible CPUs.
1802c5060cdSThomas Huth
1812c5060cdSThomas HuthHowever, historically it was possible to start QEMU with an incorrect topology
1822c5060cdSThomas Huthwhere *n* <= *sockets* * *cores* * *threads* < *maxcpus*,
1832c5060cdSThomas Huthwhich could lead to an incorrect topology enumeration by the guest.
1842c5060cdSThomas HuthSupport for invalid topologies is removed, the user must ensure
1852c5060cdSThomas Huthtopologies described with -smp include all possible cpus, i.e.
1862c5060cdSThomas Huth*sockets* * *cores* * *threads* = *maxcpus*.
1872c5060cdSThomas Huth
1882c5060cdSThomas Huth``-numa`` node (without memory specified) (removed 5.2)
1892c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''''''''''''''
1902c5060cdSThomas Huth
1912c5060cdSThomas HuthSplitting RAM by default between NUMA nodes had the same issues as ``mem``
1922c5060cdSThomas Huthparameter with the difference that the role of the user plays QEMU using
1932c5060cdSThomas Huthimplicit generic or board specific splitting rule.
1942c5060cdSThomas HuthUse ``memdev`` with *memory-backend-ram* backend or ``mem`` (if
1952c5060cdSThomas Huthit's supported by used machine type) to define mapping explicitly instead.
1962c5060cdSThomas HuthUsers of existing VMs, wishing to preserve the same RAM distribution, should
1972c5060cdSThomas Huthconfigure it explicitly using ``-numa node,memdev`` options. Current RAM
1982c5060cdSThomas Huthdistribution can be retrieved using HMP command ``info numa`` and if separate
1992c5060cdSThomas Huthmemory devices (pc|nv-dimm) are present use ``info memory-device`` and subtract
2002c5060cdSThomas Huthdevice memory from output of ``info numa``.
2012c5060cdSThomas Huth
2022c5060cdSThomas Huth``-numa node,mem=``\ *size* (removed in 5.1)
2032c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''
2042c5060cdSThomas Huth
2052c5060cdSThomas HuthThe parameter ``mem`` of ``-numa node`` was used to assign a part of
2062c5060cdSThomas Huthguest RAM to a NUMA node. But when using it, it's impossible to manage a specified
2072c5060cdSThomas HuthRAM chunk on the host side (like bind it to a host node, setting bind policy, ...),
2082c5060cdSThomas Huthso the guest ends up with the fake NUMA configuration with suboptiomal performance.
2092c5060cdSThomas HuthHowever since 2014 there is an alternative way to assign RAM to a NUMA node
2102c5060cdSThomas Huthusing parameter ``memdev``, which does the same as ``mem`` and adds
2112c5060cdSThomas Huthmeans to actually manage node RAM on the host side. Use parameter ``memdev``
2122c5060cdSThomas Huthwith *memory-backend-ram* backend as replacement for parameter ``mem``
2132c5060cdSThomas Huthto achieve the same fake NUMA effect or a properly configured
2142c5060cdSThomas Huth*memory-backend-file* backend to actually benefit from NUMA configuration.
2152c5060cdSThomas HuthNew machine versions (since 5.1) will not accept the option but it will still
2162c5060cdSThomas Huthwork with old machine types. User can check the QAPI schema to see if the legacy
2172c5060cdSThomas Huthoption is supported by looking at MachineInfo::numa-mem-supported property.
2182c5060cdSThomas Huth
2192c5060cdSThomas Huth``-mem-path`` fallback to RAM (removed in 5.0)
2202c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''
2212c5060cdSThomas Huth
2222c5060cdSThomas HuthIf guest RAM allocation from file pointed by ``mem-path`` failed,
2232c5060cdSThomas HuthQEMU was falling back to allocating from RAM, which might have resulted
2242c5060cdSThomas Huthin unpredictable behavior since the backing file specified by the user
2252c5060cdSThomas Huthas ignored. Currently, users are responsible for making sure the backing storage
2262c5060cdSThomas Huthspecified with ``-mem-path`` can actually provide the guest RAM configured with
2272c5060cdSThomas Huth``-m`` and QEMU fails to start up if RAM allocation is unsuccessful.
2282c5060cdSThomas Huth
2292c5060cdSThomas Huth``-smp`` (invalid topologies) (removed 5.2)
2302c5060cdSThomas Huth'''''''''''''''''''''''''''''''''''''''''''
2312c5060cdSThomas Huth
2322c5060cdSThomas HuthCPU topology properties should describe whole machine topology including
2332c5060cdSThomas Huthpossible CPUs.
2342c5060cdSThomas Huth
2352c5060cdSThomas HuthHowever, historically it was possible to start QEMU with an incorrect topology
2362c5060cdSThomas Huthwhere *n* <= *sockets* * *cores* * *threads* < *maxcpus*,
2372c5060cdSThomas Huthwhich could lead to an incorrect topology enumeration by the guest.
2382c5060cdSThomas HuthSupport for invalid topologies is removed, the user must ensure
2392c5060cdSThomas Huthtopologies described with -smp include all possible cpus, i.e.
2402c5060cdSThomas Huth*sockets* * *cores* * *threads* = *maxcpus*.
2412c5060cdSThomas Huth
2422c5060cdSThomas Huth``-machine enforce-config-section=on|off`` (removed 5.2)
2432c5060cdSThomas Huth''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2442c5060cdSThomas Huth
2452c5060cdSThomas HuthThe ``enforce-config-section`` property was replaced by the
2462c5060cdSThomas Huth``-global migration.send-configuration={on|off}`` option.
2472c5060cdSThomas Huth
2482c5060cdSThomas HuthBlock devices
2492c5060cdSThomas Huth-------------
2502c5060cdSThomas Huth
2512c5060cdSThomas HuthVXHS backend (removed in 5.1)
2522c5060cdSThomas Huth'''''''''''''''''''''''''''''
2532c5060cdSThomas Huth
2542c5060cdSThomas HuthThe VXHS code did not compile since v2.12.0. It was removed in 5.1.
255