Received: from eggs.gnu.org ([208.118.235.92]:44232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7ddk-0008Hg-VD for qemu-devel@nongnu.org; Tue, 13 Mar 2012 22:08:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7ddQ-0006to-Lw for qemu-devel@nongnu.org; Tue, 13 Mar 2012 22:08:36 -0400 Received: from ozlabs.org ([203.10.76.45]:57984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7ddQ-0006tO-Aa for qemu-devel@nongnu.org; Tue, 13 Mar 2012 22:08:16 -0400 From: Rusty Russell In-Reply-To: <20120313033026.GF24916@truffala.fritz.box> References: <20120313033026.GF24916@truffala.fritz.box> Date: Wed, 14 Mar 2012 11:29:41 +1030 Message-ID: <87sjhcxaiq.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] virtio balloon PCI class code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson , qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, agraf@suse.de, "Michael S. Tsirkin" On Tue, 13 Mar 2012 14:30:26 +1100, David Gibson wrote: > Currently the virtio-pci driver advertises the virtio balloon device > as having the PCI class code PCI_CLASS_MEMORY_RAM. Although the > balloon device is vaguely related to RAM management, it doesn't > operate anything like a PCI memory device in the sense of the class > code (in fact it's all about taking RAM away from the guest, not > obtaining it). Nor does this PCI class code appear to be suggested by > the virtio PCI specification. > > This recently caused problems on the pseries machine - the class code > caused the firmware to mark the corresponding device tree node as a > memory node, which cause the guest to get horribly confused attempting > to discover memory early in boot. That was due to a guest kernel bug, > but since the bug is widespread in existing deployed kernels, we don't > really want to trigger it from qemu. > > We can work around the problem in the guest firmware for now, but > using PCI_CLASS_MEMORY_RAM for the balloon just seems wrong. Are > there things out there already that rely on this, or should we just > drop the class code? We can just drop it... Cheers, Rusty. -- How could I marry someone with more hair than me? http://baldalex.org