qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] hw/nvme: fix mmio read
@ 2021-07-14  6:01 Klaus Jensen
  2021-07-14  6:01 ` [PATCH v3 1/5] hw/nvme: split pmrmsc register into upper and lower Klaus Jensen
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Klaus Jensen @ 2021-07-14  6:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Peter Maydell, Thomas Huth, Stefan Hajnoczi,
	qemu-block, Laurent Vivier, Klaus Jensen, Gollu Appalanaidu,
	Max Reitz, Keith Busch, Kevin Wolf, Klaus Jensen, Paolo Bonzini,
	Philippe Mathieu-Daudé

From: Klaus Jensen <k.jensen@samsung.com>

Fix mmio read issues on big-endian hosts. The core issue is that values
in the BAR is not stored in little endian as required.

Fix that and add a regression test for this. This required a bit of
cleanup, so it blew up into a series.

v2:

  * "hw/nvme: use symbolic names for registers"
    Use offsetof(NvmeBar, reg) instead of explicit offsets (Philippe)

  * "hw/nvme: fix mmio read"
    Use the st/ld API instead of cpu_to_X (Philippe)

Klaus Jensen (5):
  hw/nvme: split pmrmsc register into upper and lower
  hw/nvme: use symbolic names for registers
  hw/nvme: fix out-of-bounds reads
  hw/nvme: fix mmio read
  tests/qtest/nvme-test: add mmio read test

 include/block/nvme.h    |  60 +++++--
 hw/nvme/ctrl.c          | 362 +++++++++++++++++++++++-----------------
 tests/qtest/nvme-test.c |  26 +++
 3 files changed, 276 insertions(+), 172 deletions(-)

-- 
2.32.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-07-19  9:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14  6:01 [PATCH v3 0/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-14  6:01 ` [PATCH v3 1/5] hw/nvme: split pmrmsc register into upper and lower Klaus Jensen
     [not found]   ` <CGME20210714113905epcas5p3d582216af16ab401f806757cad6bcc8d@epcas5p3.samsung.com>
2021-07-14 11:35     ` Gollu Appalanaidu
2021-07-19  9:13   ` Peter Maydell
2021-07-19  9:32     ` Klaus Jensen
2021-07-14  6:01 ` [PATCH v3 2/5] hw/nvme: use symbolic names for registers Klaus Jensen
2021-07-14  9:08   ` Philippe Mathieu-Daudé
     [not found]   ` <CGME20210714114548epcas5p41a562395f6b695aabcfa4a531f2285d3@epcas5p4.samsung.com>
2021-07-14 11:42     ` Gollu Appalanaidu
2021-07-14  6:01 ` [PATCH v3 3/5] hw/nvme: fix out-of-bounds reads Klaus Jensen
2021-07-19  8:50   ` Stefan Hajnoczi
2021-07-19  9:15   ` Peter Maydell
2021-07-14  6:01 ` [PATCH v3 4/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-19  9:52   ` Peter Maydell
2021-07-14  6:01 ` [PATCH v3 5/5] tests/qtest/nvme-test: add mmio read test Klaus Jensen
     [not found]   ` <CGME20210714120156epcas5p212ae986c7e2ed4d30191ce8915304d2c@epcas5p2.samsung.com>
2021-07-14 11:58     ` Gollu Appalanaidu
2021-07-19  6:43 ` [PATCH v3 0/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-19  8:52   ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).