On Fri, Jul 10, 2026 at 12:15:24PM +0200, Magnus Kulke wrote:
> This mechanism is used to handle more imperative partition-wide steps
> that have to be taken as part of a migration routine. Currently it's
> just a skeleton.
> 
> Signed-off-by: Magnus Kulke <[email protected]>
> ---
>  accel/mshv/mshv-all.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c
> index 5e8756ede2..b34fb34d05 100644
> --- a/accel/mshv/mshv-all.c
> +++ b/accel/mshv/mshv-all.c
> @@ -39,6 +39,8 @@
>  #include "system/mshv.h"
>  #include "system/mshv_int.h"
>  #include "system/reset.h"
> +#include "migration/qemu-file-types.h"
> +#include "migration/register.h"
>  #include "trace.h"
>  #include <err.h>
>  #include <sys/ioctl.h>
> @@ -544,6 +546,9 @@ static int mshv_init_vcpu(CPUState *cpu)
>      return 0;
>  }
>  
> +static SaveVMHandlers savevm_mshv = {
> +};
> +
>  static int mshv_init(AccelState *as, MachineState *ms)
>  {
>      MshvState *s;
> @@ -599,6 +604,8 @@ static int mshv_init(AccelState *as, MachineState *ms)
>                                    0, "mshv-memory");
>      memory_listener_register(&mshv_io_listener, &address_space_io);
>  
> +    register_savevm_live("mshv", 0, 1, &savevm_mshv, s);
> +
>      return 0;
>  }
>  
> -- 
> 2.34.1

Reviewed-by: Doru Blânzeanu <[email protected]>

Reply via email to