Commit 1901b49
committed
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>1 parent c705063 commit 1901b49
2 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4268 | 4268 | | |
4269 | 4269 | | |
4270 | 4270 | | |
| 4271 | + | |
| 4272 | + | |
4271 | 4273 | | |
4272 | 4274 | | |
4273 | 4275 | | |
| |||
4286 | 4288 | | |
4287 | 4289 | | |
4288 | 4290 | | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
4289 | 4304 | | |
4290 | 4305 | | |
| 4306 | + | |
| 4307 | + | |
4291 | 4308 | | |
4292 | | - | |
4293 | | - | |
| 4309 | + | |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
4294 | 4313 | | |
4295 | 4314 | | |
4296 | 4315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
0 commit comments