From: David Gibson <david@gibson.dropbear.id.au>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] RFC: Partial workaround for buggy guest virtio-balloon driver
Date: Fri, 9 Nov 2012 11:57:39 +1100 [thread overview]
Message-ID: <20121109005739.GG23553@truffula.fritz.box> (raw)
In-Reply-To: <87a9us1bpq.fsf@codemonkey.ws>
On Thu, Nov 08, 2012 at 07:11:13AM -0600, Anthony Liguori wrote:
> David Gibson <david@gibson.dropbear.id.au> writes:
>
> > Linux kernel commits 1a87228f5f1d316002c7c161316f5524592be766
> > "virtio_balloon: Fix endian bug" and
> > 3ccc9372ed0fab33d20f10be3c1efd5776ff5913 "virtio_balloon: fix handling
> > of PAGE_SIZE != 4k" fixed two serious bugs in their (guest side)
> > handling of the virtio balloon. In practice, these bugs only affected
> > powerpc guests, which is big-endian and frequently configured for 64k
> > base page size. Attempting to use the balloon with the buggy guest
> > would usually result in an immediate guest crash.
>
> You should create a new feature VIRTIO_BALLOON_F_ENDIAN_SAFE,
> advertise it in the host, and add a guest kernel patch to ack it in
> newer kernels.
>
> Older kernels won't ack this feature which gives you a safe way to to
> disable the driver on a big endian host.
Well, yes, we should have done this at the time we made the bugfixes.
Unfortunately, we didn't, so now we are where we are.
> You won't get support for 3.4 kernels but it's much nicer to handle it
> this way.
Since 3.4 and 3.5 kernels will be around in distros for some time now,
that is not a trivial drawback with adding a feature now.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
prev parent reply other threads:[~2012-11-09 2:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 4:45 [Qemu-devel] RFC: Partial workaround for buggy guest virtio-balloon driver David Gibson
2012-11-08 13:11 ` Anthony Liguori
2012-11-09 0:57 ` David Gibson [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=20121109005739.GG23553@truffula.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=anthony@codemonkey.ws \
--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).