From: Luiz Capitulino <lcapitulino@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Amit Shah <amit.shah@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
agl@us.ibm.com, qemu list <qemu-devel@nongnu.org>,
Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped
Date: Thu, 26 Aug 2010 09:57:48 -0300 [thread overview]
Message-ID: <20100826095748.7e0b12ad@doriath> (raw)
In-Reply-To: <20100826082842.GE9564@redhat.com>
On Thu, 26 Aug 2010 09:28:42 +0100
"Daniel P. Berrange" <berrange@redhat.com> wrote:
> On Thu, Aug 26, 2010 at 01:47:50PM +0530, Amit Shah wrote:
> > On (Thu) Aug 26 2010 [10:05:44], Paolo Bonzini wrote:
> > > On 08/26/2010 08:05 AM, Amit Shah wrote:
> > > >This is what I have currently. It would need some timer handling in
> > > >the save/load case as well, right?
> > >
> > > When loading you won't have any pending "info balloon" command, so I
> > > think the timer need not be preserved across migration.
> > >
> > > Also, 5 seconds for a stopped guest is actually a lot,
> >
> > That's the problem; it's policy. Where and how to specify it?
>
> It is unfortunate that this is policy, but we just have to accept
> that the current query-balloon command is a flawed design. IMHO
> we should just hardcode the timeout at 5 seconds as you do (plus
> immediate return for paused guests). Then focus on adding new
> monitor commands/events to deal with balloon query in a way
> that doesn't require this kind of policy in QEMU, and deprecate
> the existing query-balloon command.
Agreed, but it's not just that: we've never correctly specified how
commands that talk with the guest should behave.
*brain dump warning*
We were talking about making all commands work as synchronous and
asynchronous. If we do that, then we'll need a 'global' timeout
for all synchronous commands. We could have a default value and a
command to set it.
*brain dump warning ends*
I really don't know what to do 0.13. Probably the hard-coded timer is
the best solution we have, but I'm wondering if it's going to cause
problems in the near future, when we get proper asynchronous command
support.
next prev parent reply other threads:[~2010-08-26 12:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-20 0:48 [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped Amit Shah
2010-08-20 10:13 ` [Qemu-devel] " Paolo Bonzini
2010-08-20 12:01 ` [Qemu-devel] " Amit Shah
2010-08-22 21:54 ` Anthony Liguori
2010-08-23 9:24 ` Daniel P. Berrange
2010-08-26 5:25 ` Amit Shah
2010-08-26 6:05 ` Amit Shah
2010-08-26 8:05 ` Paolo Bonzini
2010-08-26 8:14 ` Daniel P. Berrange
2010-08-26 13:22 ` Anthony Liguori
2010-08-26 8:17 ` Amit Shah
2010-08-26 8:19 ` Paolo Bonzini
2010-08-26 8:28 ` Daniel P. Berrange
2010-08-26 12:57 ` Luiz Capitulino [this message]
2010-08-26 13:30 ` Paolo Bonzini
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=20100826095748.7e0b12ad@doriath \
--to=lcapitulino@redhat.com \
--cc=agl@us.ibm.com \
--cc=amit.shah@redhat.com \
--cc=berrange@redhat.com \
--cc=pbonzini@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).