[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] migration: notify runstate immediately before v
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [PATCH] migration: notify runstate immediately before vcpu stops |
Date: |
Tue, 16 Jul 2019 15:23:16 +0800 |
User-agent: |
Mutt/1.11.4 (2019-03-13) |
On Tue, Jul 16, 2019 at 03:10:42PM +0800, Yan Zhao wrote:
> for some devices to do live migration, it is needed to do something
> immediately before vcpu stops. add a notification here.
Hi, Yan,
Could I ask for a more detailed commit message here? E.g., what is
"some devices"? And, what's the problem behind?
Thanks,
>
> Signed-off-by: Yan Zhao <address@hidden>
> ---
> cpus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/cpus.c b/cpus.c
> index b09b702..d5d4abe 100644
> --- a/cpus.c
> +++ b/cpus.c
> @@ -1068,6 +1068,7 @@ static int do_vm_stop(RunState state, bool send_stop)
> int ret = 0;
>
> if (runstate_is_running()) {
> + vm_state_notify(1, state);
> cpu_disable_ticks();
> pause_all_vcpus();
> runstate_set(state);
> --
> 2.7.4
>
>
--
Peter Xu
Re: [Qemu-devel] [PATCH] migration: notify runstate immediately before vcpu stops, no-reply, 2019/07/17
Re: [Qemu-devel] [PATCH] migration: notify runstate immediately before vcpu stops, Dr. David Alan Gilbert, 2019/07/25