diff options
| author | Liang Li | 2016-08-09 02:30:42 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-10-10 00:16:57 +0200 |
| commit | 17871f71fd2ff5d76196051470e9604bfb6f0c09 (patch) | |
| tree | d6cb6ebebd2f13dc9504076fce14b14be14fde84 | |
| parent | bsd-user: fix FreeBSD build after d148d90e (diff) | |
| download | qemu-17871f71fd2ff5d76196051470e9604bfb6f0c09.tar.gz qemu-17871f71fd2ff5d76196051470e9604bfb6f0c09.tar.xz qemu-17871f71fd2ff5d76196051470e9604bfb6f0c09.zip | |
virtio-balloon: Remove needless precompiled directive
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>
| -rw-r--r-- | hw/virtio/virtio-balloon.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 49a2f4aade..eb572e6cdb 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[] = { |
