File:  [Qemu by Fabrice Bellard] / qemu / balloon.h
Revision (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 19:17:02 2018 UTC (2 years, 2 months ago) by root
Branches: qemu, MAIN
CVS tags: qemu1001, HEAD
qemu 1.0.1

 * Balloon
 * Copyright IBM, Corp. 2008
 * Authors:
 *  Anthony Liguori   <>
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 * the COPYING file in the top-level directory.


#include "monitor.h"
#include "qapi-types.h"

typedef void (QEMUBalloonEvent)(void *opaque, ram_addr_t target);
typedef void (QEMUBalloonStatus)(void *opaque, BalloonInfo *info);

int qemu_add_balloon_handler(QEMUBalloonEvent *event_func,
			     QEMUBalloonStatus *stat_func, void *opaque);
void qemu_remove_balloon_handler(void *opaque);

int do_balloon(Monitor *mon, const QDict *params,
               MonitorCompletion cb, void *opaque);