Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758183Ab1DLQo3 (ORCPT ); Tue, 12 Apr 2011 12:44:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27925 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757917Ab1DLQo0 (ORCPT ); Tue, 12 Apr 2011 12:44:26 -0400 Date: Tue, 12 Apr 2011 22:13:42 +0530 From: Amit Shah To: Dave Hansen Cc: "Michael S. Tsirkin" , Anthony Liguori , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [RFC][PATCH] virtio balloon: kill tell-host-first logic Message-ID: <20110412164341.GQ13631@amit-x200.redhat.com> References: <20110407174325.ED21C82B@kernel> <20110411110131.GA23123@redhat.com> <1302559871.7286.16749.camel@nimitz> <20110412054330.GH26678@amit-x200.redhat.com> <1302625352.8321.2126.camel@nimitz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1302625352.8321.2126.camel@nimitz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1441 Lines: 38 On (Tue) 12 Apr 2011 [09:22:32], Dave Hansen wrote: > On Tue, 2011-04-12 at 11:13 +0530, Amit Shah wrote: > > Sure, the only contention was on the commit message, where you stated > > modern qemus set this... qemu doesn't, and it should. Care to do a > > patch for that? > > If Rusty hasn't pushed the commit out anywhere, we can still amend the > commit. Otherwise, we're in a _bit_ of a pickle since you can't patch > git logs. :) I should've been clearer: care to do the qemu patch? :-) > Whatever is easiest for Rusty works for me. > > How about this for a replacement log? > > -- > > The virtio balloon driver has a VIRTIO_BALLOON_F_MUST_TELL_HOST > feature bit. Whenever the bit is set, we must always tell the > host before we free pages back to the allocator. Without this > feature, we might free a page (and have another user touch it) > while the hypervisor is unprepared for it. > > But, if the bit is _not_ set, we are under no obligation to > reverse the order; we're under no obligation to do _anything_. > That's the state of affairs in current qemu: > > #define VIRTIO_BALLOON_F_MUST_TELL_HOST 0 Actually this is just the bit number; it doesn't get set. Amit -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/