Received: from eggs.gnu.org ([2001:4830:134:3::10]:58950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpZ1c-0004P2-Cq for qemu-devel@nongnu.org; Thu, 29 Sep 2016 06:57:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpZ1Y-00050N-Cg for qemu-devel@nongnu.org; Thu, 29 Sep 2016 06:57:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpZ1Y-00050F-6C for qemu-devel@nongnu.org; Thu, 29 Sep 2016 06:57:08 -0400 References: <1470702642-24580-1-git-send-email-liang.z.li@intel.com> <20160810183802-mutt-send-email-mst@kernel.org> From: Thomas Huth Message-ID: Date: Thu, 29 Sep 2016 12:57:04 +0200 MIME-Version: 1.0 In-Reply-To: <20160810183802-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH repost] virtio-balloon: Remove needless precompiled directive List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Liang Li Cc: qemu-devel@nongnu.org, dgilbert@redhat.com On 10.08.2016 17:38, Michael S. Tsirkin wrote: > On Tue, Aug 09, 2016 at 08:30:42AM +0800, Liang Li 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 >> Reviewd-by: Dr. David Alan Gilbert > > Sorry about missing this earlier. > I'm inclined to merge this past 2.7 now. > Sorry about the delay. > Can you pls repost after 2.7 is out? > > Thanks! Ping? >> --- >> 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 5af429a..61325f2 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