Skip to content

RFC mshv: Fix soft reboot by using scrub partition ioctl on init

Doru Blânzeanu qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3accel/mshv: mark mshv cpus as resetableaccel/mshv/mshv-all.c+1 -10 replies
2/3include/hw/hyperv: Add SCRUB_PARTITION ioctlinclude/hw/hyperv/hvgdk_mini.h+2 -00 replies
3/3accel/mshv: use scrub_partition ioctl on initaccel/mshv/mshv-all.c+24 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] mshv: Fix soft reboot by using scrub partition ioctl on init

This series is an RFC because, the kernel mshv driver changes that introduce this ioctl, are not upstream yet.
Below is a link to the posted kernel patch.
https://lore.kernel.org/linux-hyperv/[email protected]/

This patch series uses the SCRUB_PARTITION ioctl during reset to ensure a sane state for the mshv driver.

The series consists of:
1. accel/mshv: mask mshv cpus as resetable
2. include/hw/hyperv: Add SCRUB_PARTITION ioctl
3. accel/mshv: use scrub_partition ioctl on init

The second commit that adds the SCRUB_PARTITION ioctl definition can be dropped once the kernel patch is merged and the Qemu linux-headers are updated.

In short, the changes mark the vCPUs as resettable and run the SCRUB_PARTITION ioctl on the synchronize_post_reset hook for the first vCPU.

Doru Blânzeanu (2):
include/hw/hyperv: Add SCRUB_PARTITION ioctl
accel/mshv: use scrub_partition ioctl on init

Magnus Kulke (1):
accel/mshv: mark mshv cpus as resetable

 accel/mshv/mshv-all.c          | 27 +++++++++++++++++++++++++--
 include/hw/hyperv/hvgdk_mini.h |  2 ++
 2 files changed, 27 insertions(+), 2 deletions(-)
Signature · 1 line
2.54.0