From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: jasowang@redhat.com, qemu-devel@nongnu.org, quintela@redhat.com
Subject: [Qemu-devel] Re: [PATCHv3 RFC] qemu-kvm: stop devices on vmstop
Date: Mon, 22 Nov 2010 12:15:21 +0200 [thread overview]
Message-ID: <20101122101521.GA23271@redhat.com> (raw)
In-Reply-To: <4CEA3E8E.9040508@redhat.com>
On Mon, Nov 22, 2010 at 10:57:34AM +0100, Gerd Hoffmann wrote:
> On 11/21/10 20:16, Michael S. Tsirkin wrote:
> >Stop running devices on vmstop, so that VM does not interact with
> >outside world at that time.
> >
> >Whitelist system handlers which run even when VM is stopped.
> >These are specific handlers like monitor, gdbstub, migration.
> >I'm not really sure about ui: spice and vnc: do they need to run?
>
> Yes, vnc and spice should run. They serve the clients. They also
> don't change device state.
>
> cheers,
> Gerd
>
> PS: Well, in the spice case this isn't 100% true, the handlers can
> change qxl device state in some cases. But spice has a start/stop
> handler which takes care to flush all outstanding work which could
> change device state on vmstop, so it is save to keep the handlers
> active when the vm is in stopped state.
So here's how I see it so far: assuming we want to avoid changing vm
state on vmstop
- flush bdrv and aio on vmstop
(this is so we don't need to stop them)
- keep running aio
- stop running bh
- stop running slirp
- keep running host/rt timers
- keep running fd callbacks for migration
- keep running fd callbacks for ui: vnc, spice
Note: only clock=vm can satisfy this requirement.
Default clock=rtc keeps running when VM is stopped,
this is by design.
--
MST
next prev parent reply other threads:[~2010-11-22 10:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-21 19:16 [Qemu-devel] [PATCHv3 RFC] qemu-kvm: stop devices on vmstop Michael S. Tsirkin
2010-11-22 9:57 ` [Qemu-devel] " Gerd Hoffmann
2010-11-22 10:15 ` Michael S. Tsirkin [this message]
2010-11-22 13:56 ` Juan Quintela
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=20101122101521.GA23271@redhat.com \
--to=mst@redhat.com \
--cc=jasowang@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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.