Skip to content

Commit

Permalink
virtio-balloon: Remove needless precompiled directive
Browse files Browse the repository at this point in the history
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 <liang.z.li@intel.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Reviewd-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Liang Li authored and mstsirkin committed Oct 9, 2016
1 parent 48f5921 commit 17871f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/virtio/virtio-balloon.c
Expand Up @@ -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[] = {
Expand Down

0 comments on commit 17871f7

Please sign in to comment.