> On 22 Apr 2026, at 6:38 PM, Mohamed Mediouni <[email protected]> wrote: > > > >> On 22. Apr 2026, at 14:46, Philippe Mathieu-Daudé <[email protected]> wrote: >> >> +Ani >> >> On 21/4/26 22:57, Mohamed Mediouni wrote: >>> WHvResetPartition resets partition state, and is not supported on Windows >>> 10. >>> On Arm, it's supposed to be used for reboots. The prior location of the >>> WHvResetPartition call wasn't right, as other vCPUs might still have >>> been running, causing the call to fail. >> >> Is it very different from the conceptual step introduced in commit >> 4003e5e65fe ("hw/accel: add a per-accelerator callback to change >> VM accelerator handle")? > > Hello, > > The difference is that we reset the partition state but don’t have to > re-do any of the memory mappings in the Hyper-V case (or otherwise tear > down the context). > > We could fallback outright into the CoCo case which would work too. The rebuild_vm() callback is used only when the vcpus are not resettable (so Coco case). If vcpus are resettable (non-CoCo), then that callback won’t be called. Within the callback, you can do whatever you need to do.
