From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Zhoujian (jay)" <jianjay.zhou@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"quintela@redhat.com" <quintela@redhat.com>,
"wangxin (U)" <wangxinxin.wang@huawei.com>
Subject: Re: [Qemu-devel] [RFC PATCH] vl: fix migration when watchdog expires
Date: Fri, 17 Aug 2018 17:09:34 +0100 [thread overview]
Message-ID: <20180817160934.GM2459@work-vm> (raw)
In-Reply-To: <92f38a00-e46b-90f9-5af1-b8dfa830a09c@redhat.com>
* Paolo Bonzini (pbonzini@redhat.com) wrote:
> On 16/08/2018 09:22, Zhoujian (jay) wrote:
> > Could we add the check !runstate_check(RUN_STATE_FINISH_MIGRATE) before setting
> > to RUN_STATE_PRELAUNCH, just like !runstate_check(RUN_STATE_RUNNING) and
> > !runstate_check(RUN_STATE_INMIGRATE) did? But I'm not sure whether this will
> > cause any side effect.
>
> I think there is a bigger problem to fix before. global_state_store
> sees RUNNING, not PRELAUNCH; the VM is migrated with state that is
> already reset, but the state on the destination is RUNNING and the VM
> restarts running on the destination. Likewise, if migration fails the
> VM is resumed on the source because s->vm_was_running is true.
>
> David, Juan, do you have any ideas here?
Would it help if we didn't process the reset-request at all while the
guest was paused; so the guest state didn't get reset?
I think you'd have to then migrate the 'reset-requested' flag to cause
it to happen on the destination.
Dave
> Paolo
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2018-08-17 16:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 10:48 [Qemu-devel] [RFC PATCH] vl: fix migration when watchdog expires Jay Zhou
2018-08-14 11:20 ` Paolo Bonzini
2018-08-14 11:52 ` Dr. David Alan Gilbert
2018-08-14 12:02 ` Paolo Bonzini
2018-08-14 13:03 ` Zhoujian (jay)
2018-08-14 13:07 ` Paolo Bonzini
2018-08-14 13:34 ` Zhoujian (jay)
2018-08-16 7:22 ` Zhoujian (jay)
2018-08-17 16:03 ` Paolo Bonzini
2018-08-17 16:09 ` Dr. David Alan Gilbert [this message]
2018-08-14 12:49 ` Zhoujian (jay)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180817160934.GM2459@work-vm \
--to=dgilbert@redhat.com \
--cc=jianjay.zhou@huawei.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=wangxinxin.wang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.