diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-04-01 19:57:12 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-09 18:55:56 +0200 |
commit | a2a5fdb0839b5e3f26630cda01ecf9efda11d65b (patch) | |
tree | b08de77b0948a1985d12a27943b83011424c4670 /vl.c | |
parent | 1c417649aeaddd6228fb96175ba15d691d8962ae (diff) | |
download | qemu-a2a5fdb0839b5e3f26630cda01ecf9efda11d65b.tar.gz qemu-a2a5fdb0839b5e3f26630cda01ecf9efda11d65b.tar.bz2 qemu-a2a5fdb0839b5e3f26630cda01ecf9efda11d65b.zip |
move balloon handling to balloon.c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 34 |
1 files changed, 0 insertions, 34 deletions
@@ -146,7 +146,6 @@ int main(int argc, char **argv) #include "audio/audio.h" #include "migration.h" #include "kvm.h" -#include "balloon.h" #include "qemu-option.h" #include "qemu-config.h" #include "qemu-objects.h" @@ -307,39 +306,6 @@ static void set_proc_name(const char *s) #endif } -/***************/ -/* ballooning */ - -static QEMUBalloonEvent *qemu_balloon_event; -void *qemu_balloon_event_opaque; - -void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque) -{ - qemu_balloon_event = func; - qemu_balloon_event_opaque = opaque; -} - -int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque) -{ - if (qemu_balloon_event) { - qemu_balloon_event(qemu_balloon_event_opaque, target, cb, opaque); - return 1; - } else { - return 0; - } -} - -int qemu_balloon_status(MonitorCompletion cb, void *opaque) -{ - if (qemu_balloon_event) { - qemu_balloon_event(qemu_balloon_event_opaque, 0, cb, opaque); - return 1; - } else { - return 0; - } -} - - /***********************************************************/ /* real time host monotonic timer */ |