qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Amit Shah <amit.shah@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Luiz Capitulino <lcapitulino@redhat.com>,
	qemu list <qemu-devel@nongnu.org>,
	Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 0/3] balloon: error if guest driver is not initialised
Date: Fri, 9 Dec 2011 17:32:33 +0530	[thread overview]
Message-ID: <20111209120233.GD2464@amit-x200.redhat.com> (raw)
In-Reply-To: <20111209115521.GB25940@redhat.com>

On (Fri) 09 Dec 2011 [11:55:21], Daniel P. Berrange wrote:
> On Fri, Dec 09, 2011 at 05:19:35PM +0530, Amit Shah wrote:
> > Hello,
> > 
> > These patches make qemu generate an error on failure in setting a
> > balloon value:
> > 
> > (qemu) balloon 400
> > Device 'balloon' has not been activated
> > 
> > This can happen when the guest hasn't yet loaded a balloon driver.
> 
> This is a pretty significant change in behaviour/semantics of the
> balloon driver interface.
> 
> eg, when libvirt starts a guest, it launches QEMU paused, and
> immediately sets a balloon target, which may be lower than the
> memory limit, and then starts CPUS to let the guest boot. The
> guest will utilize this target when it loads the balloon driver
> during bootup.
> 
> With this proposed change, libvirt will immediately get
> an error, and have to guess when the balloon driver might be
> loaded by the guest, in order to set the limit post-boot.
> 
> > Previously, such a ballooning attempt didn't produce an error, but the
> > virtio-balloon driver remembered the value nevertheless, causing a
> > module load in the guest using the attempted balloon value
> > originally.  This may not be the desired course of action.
> 
> This is *exactly* desired behaviour. Please don't change this.

OK, thanks.

I'll retract this patch series.

		Amit

      reply	other threads:[~2011-12-09 12:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 11:49 [Qemu-devel] [PATCH 0/3] balloon: error if guest driver is not initialised Amit Shah
2011-12-09 11:49 ` [Qemu-devel] [PATCH 1/3] balloon: Make functions return 0 on OK, -1 on error Amit Shah
2011-12-09 11:49 ` [Qemu-devel] [PATCH 2/3] balloon: report error if ballooning operation fails Amit Shah
2011-12-09 11:49 ` [Qemu-devel] [PATCH 3/3] virtio-balloon: report error if balloon driver in guest not available Amit Shah
2011-12-09 11:55 ` [Qemu-devel] [PATCH 0/3] balloon: error if guest driver is not initialised Daniel P. Berrange
2011-12-09 12:02   ` Amit Shah [this message]

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=20111209120233.GD2464@amit-x200.redhat.com \
    --to=amit.shah@redhat.com \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).