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

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] 13+ messages in thread

end of thread, other threads:[~2021-07-24  8:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 22:46 [PATCH v5 0/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-19 22:46 ` [PATCH v5 1/5] hw/nvme: split pmrmsc register into upper and lower Klaus Jensen
2021-07-20 13:40   ` Peter Maydell
2021-07-24  8:34     ` Klaus Jensen
2021-07-19 22:46 ` [PATCH v5 2/5] hw/nvme: use symbolic names for registers Klaus Jensen
2021-07-19 23:25   ` Keith Busch
2021-07-19 22:46 ` [PATCH v5 3/5] hw/nvme: fix out-of-bounds reads Klaus Jensen
2021-07-19 22:46 ` [PATCH v5 4/5] hw/nvme: fix mmio read Klaus Jensen
2021-07-20 12:58   ` Philippe Mathieu-Daudé
2021-07-20 13:33     ` Peter Maydell
2021-07-20 13:39       ` Philippe Mathieu-Daudé
2021-07-20 13:37   ` Peter Maydell
2021-07-19 22:46 ` [PATCH v5 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.