]> git.proxmox.com Git - mirror_qemu.git/commit
hw/block/nvme: move msix table and pba to BAR 0
authorKlaus Jensen <k.jensen@samsung.com>
Fri, 13 Nov 2020 08:50:33 +0000 (09:50 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 8 Feb 2021 20:15:53 +0000 (21:15 +0100)
commit1901b4967c3fdd47e59d9023aea2285d94f3998a
tree2a11540c20dd5662b2a0e167b91320bc42a04d21
parentc7050631297f07917c23c7f4cdec8a6cca0eed12
hw/block/nvme: move msix table and pba to BAR 0

In the interest of supporting both CMB and PMR to be enabled on the same
device, move the MSI-X table and pending bit array out of BAR 4 and into
BAR 0.

This is a simplified version of the patch contributed by Andrzej
Jakowski (see [1]). Leaving the CMB at offset 0 removes the need for
changes to CMB address mapping code.

  [1]: https://lore.kernel.org/qemu-devel/20200729220107.37758-3-andrzej.jakowski@linux.intel.com/

Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Tested-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/block/nvme.c
hw/block/nvme.h