00001 /* 00002 * Balloon 00003 * 00004 * Copyright IBM, Corp. 2008 00005 * 00006 * Authors: 00007 * Anthony Liguori <aliguori@us.ibm.com> 00008 * 00009 * This work is licensed under the terms of the GNU GPL, version 2. See 00010 * the COPYING file in the top-level directory. 00011 * 00012 */ 00013 00014 #ifndef _QEMU_BALLOON_H 00015 #define _QEMU_BALLOON_H 00016 00017 #include "cpu-defs.h" 00018 00019 typedef ram_addr_t (QEMUBalloonEvent)(void *opaque, ram_addr_t target); 00020 00021 void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque); 00022 00023 void qemu_balloon(ram_addr_t target); 00024 00025 ram_addr_t qemu_balloon_status(void); 00026 00027 #endif