qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hw/nvme: fix hibernation-based migration
@ 2024-03-10 11:07 Klaus Jensen
  2024-03-10 11:07 ` [PATCH 1/2] hw/nvme: generalize the mbar size helper Klaus Jensen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Klaus Jensen @ 2024-03-10 11:07 UTC (permalink / raw)
  To: Keith Busch, Klaus Jensen, Eduardo Habkost, Marcel Apfelbaum,
	Philippe Mathieu-Daudé, Yanan Wang
  Cc: Julien Grall, qemu-block, qemu-devel, Klaus Jensen

Julien Grall, in #2184, reported that hibernation-based migration with
hw/nvme is broken when suspending on a pre 6.0 QEMU and resuming on a
more recent one. This is because the BAR layout was changed in 6.0.

Fix this by adding a machine compatibility parameter that restores the
old behavior.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
---
Klaus Jensen (2):
      hw/nvme: generalize the mbar size helper
      hw/nvme: add machine compatibility parameter to enable msix exclusive bar

 hw/core/machine.c |  1 +
 hw/nvme/ctrl.c    | 73 ++++++++++++++++++++++++++++++++++++-------------------
 hw/nvme/nvme.h    |  1 +
 3 files changed, 50 insertions(+), 25 deletions(-)
---
base-commit: f901bf11b3ddf852e591593b09b8aa7a177f9a0b
change-id: 20240310-fix-msix-exclusive-bar-d65564414a2c

Best regards,
-- 
Klaus Jensen <k.jensen@samsung.com>



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

end of thread, other threads:[~2024-03-11 11:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-10 11:07 [PATCH 0/2] hw/nvme: fix hibernation-based migration Klaus Jensen
2024-03-10 11:07 ` [PATCH 1/2] hw/nvme: generalize the mbar size helper Klaus Jensen
2024-03-10 11:07 ` [PATCH 2/2] hw/nvme: add machine compatibility parameter to enable msix exclusive bar Klaus Jensen
2024-03-10 11:12 ` [PATCH 0/2] hw/nvme: fix hibernation-based migration Klaus Jensen
2024-03-11 11:15 ` Jesper Wendel Devantier

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).