qemu-e2k/hw/core
Klaus Jensen 6eb7a07129 hw/block/nvme: change controller pci id
There are two reasons for changing this:

  1. The nvme device currently uses an internal Intel device id.

  2. Since commits "nvme: fix write zeroes offset and count" and "nvme:
     support multiple namespaces" the controller device no longer has
     the quirks that the Linux kernel think it has.

     As the quirks are applied based on pci vendor and device id, change
     them to get rid of the quirks.

To keep backward compatibility, add a new 'use-intel-id' parameter to
the nvme device to force use of the Intel vendor and device id. This is
off by default but add a compat property to set this for 5.1 machines
and older. If a 5.1 machine is booted (or the use-intel-id parameter is
explicitly set to true), the Linux kernel will just apply these
unnecessary quirks:

  1. NVME_QUIRK_IDENTIFY_CNS which says that the device does not support
     anything else than values 0x0 and 0x1 for CNS (Identify Namespace
     and Identify Namespace). With multiple namespace support, this just
     means that the kernel will "scan" namespaces instead of using
     "Active Namespace ID list" (CNS 0x2).

  2. NVME_QUIRK_DISABLE_WRITE_ZEROES. The nvme device started out with a
     broken Write Zeroes implementation which has since been fixed in
     commit 9d6459d21a ("nvme: fix write zeroes offset and count").

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
2020-10-27 07:24:47 +01:00
..
bus.c device-core: use RCU for list of children of a bus 2020-10-12 11:50:50 -04:00
clock-vmstate.c
clock.c hw/core/clock: Add the clock_new helper function 2020-10-16 18:58:10 +02:00
cpu.c machine + QOM queue, 2020-10-06 2020-10-08 11:32:54 +01:00
fw-path-provider.c
generic-loader.c
hotplug.c
irq.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
Kconfig
loader-fit.c
loader.c
machine-hmp-cmds.c monitor: Add Monitor parameter to monitor_get_cpu_index() 2020-10-09 07:08:19 +02:00
machine-qmp-cmds.c cphp: remove deprecated cpu-add command(s) 2020-09-29 02:14:30 -04:00
machine.c hw/block/nvme: change controller pci id 2020-10-27 07:24:47 +01:00
meson.build hw/core: Move the creation of the library to the main meson.build 2020-10-12 11:50:19 -04:00
nmi.c
null-machine.c
numa.c numa: hmat: require parent cache description before the next level one 2020-10-06 11:09:41 -04:00
or-irq.c
platform-bus.c
ptimer.c cpu-timers, icount: new modules 2020-10-05 16:41:22 +02:00
qdev-clock.c hw/core/qdev-clock: add a reference on aliased clocks 2020-10-22 11:53:53 -04:00
qdev-fw.c
qdev-prop-internal.h hw/core/qdev-properties: Export some integer-related functions 2020-10-06 11:09:35 -04:00
qdev-properties-system.c block: move logical block size check function to a common utility function 2020-10-23 13:42:16 +01:00
qdev-properties.c hw/core/qdev-properties: Extract system-mode specific properties 2020-10-06 11:09:35 -04:00
qdev.c device-core: use atomic_set on .realized property 2020-10-12 11:50:51 -04:00
register.c core/register: Specify instance_size in the TypeInfo 2020-09-25 16:52:24 -07:00
reset.c
resettable.c
split-irq.c
stream.c
sysbus.c qom: simplify object_find_property / object_class_find_property 2020-09-22 16:45:16 -04:00
trace-events
trace.h
uboot_image.h
vm-change-state-handler.c
vmstate-if.c