All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/5] hw/nvme: fix mmio read
@ 2021-07-21  7:48 Klaus Jensen
  2021-07-21  7:48 ` [PATCH v6 1/5] hw/nvme: split pmrmsc register into upper and lower Klaus Jensen
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Klaus Jensen @ 2021-07-21  7:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Peter Maydell, Thomas Huth, qemu-block,
	Klaus Jensen, Gollu Appalanaidu, Max Reitz, Klaus Jensen,
	Stefan Hajnoczi, Keith Busch, Paolo Bonzini, Fam Zheng,
	Kevin Wolf, 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.

v6:
  * "hw/nvme: split pmrmsc register into upper and lower"
    - Remove unnecessary masking (Peter)
    - Missing shift (Peter)

v5:
  * "hw/nvme: fix mmio read"
    - Hurried the changes a bit. Fixed.

v4:
  * "hw/nvme: split pmrmsc register into upper and lower"
    - Fix missing left-shift (Peter)

  * "hw/nvme: fix mmio read"
    - Remove unnecessary masking (Peter)
    - Keep existing behaviour and do not zero the register fields doing
      initialization (Peter)

v3:

  * "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          | 352 ++++++++++++++++++++++------------------
 tests/qtest/nvme-test.c |  26 +++
 3 files changed, 265 insertions(+), 173 deletions(-)

-- 
2.32.0



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

end of thread, other threads:[~2021-07-26 15:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21  7:48 [PATCH v6 0/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-21  7:48 ` [PATCH v6 1/5] hw/nvme: split pmrmsc register into upper and lower Klaus Jensen
2021-07-26 15:22   ` Klaus Jensen
2021-07-26 15:25   ` Keith Busch
2021-07-21  7:48 ` [PATCH v6 2/5] hw/nvme: use symbolic names for registers Klaus Jensen
2021-07-21  7:48 ` [PATCH v6 3/5] hw/nvme: fix out-of-bounds reads Klaus Jensen
2021-07-21  7:48 ` [PATCH v6 4/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-21  7:48 ` [PATCH v6 5/5] tests/qtest/nvme-test: add mmio read test Klaus Jensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.