From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUAfh-00076F-7G for qemu-devel@nongnu.org; Mon, 01 Aug 2016 06:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUAfg-0001AM-96 for qemu-devel@nongnu.org; Mon, 01 Aug 2016 06:42:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUAfg-0001AE-3L for qemu-devel@nongnu.org; Mon, 01 Aug 2016 06:42:08 -0400 Date: Mon, 1 Aug 2016 11:42:03 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20160801104202.GA3858@work-vm> References: <1468550849-22172-1-git-send-email-liang.z.li@intel.com> <1468550849-22172-2-git-send-email-liang.z.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1468550849-22172-2-git-send-email-liang.z.li@intel.com> Subject: Re: [Qemu-devel] [QEMU v2 1/9] virtio-balloon: Remove needless precompiled directive List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liang Li Cc: qemu-devel@nongnu.org, mst@redhat.com, pbonzini@redhat.com, quintela@redhat.com, amit.shah@redhat.com, kvm@vger.kernel.org, thuth@redhat.com * Liang Li (liang.z.li@intel.com) wrote: > Since there in wrapper around madvise(), the virtio-balloon > code is able to work without the precompiled directive, the > directive can be removed. > > Signed-off-by: Liang Li > Suggested-by: Thomas Huth This one could be posted separately. Reviewed-by: Dr. David Alan Gilbert > --- > hw/virtio/virtio-balloon.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c > index 1a22e6d..62931b3 100644 > --- a/hw/virtio/virtio-balloon.c > +++ b/hw/virtio/virtio-balloon.c > @@ -34,13 +34,11 @@ > > static void balloon_page(void *addr, int deflate) > { > -#if defined(__linux__) > if (!qemu_balloon_is_inhibited() && (!kvm_enabled() || > kvm_has_sync_mmu())) { > qemu_madvise(addr, BALLOON_PAGE_SIZE, > deflate ? QEMU_MADV_WILLNEED : QEMU_MADV_DONTNEED); > } > -#endif > } > > static const char *balloon_stat_names[] = { > -- > 1.9.1 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK