summaryrefslogtreecommitdiffstats
path: root/qemu/balloon.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/balloon.c')
-rw-r--r--qemu/balloon.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu/balloon.c b/qemu/balloon.c
index 5d69e8a00..f2ef50cf7 100644
--- a/qemu/balloon.c
+++ b/qemu/balloon.c
@@ -24,6 +24,7 @@
* THE SOFTWARE.
*/
+#include "qemu/osdep.h"
#include "qemu-common.h"
#include "exec/cpu-common.h"
#include "sysemu/kvm.h"
@@ -36,6 +37,17 @@
static QEMUBalloonEvent *balloon_event_fn;
static QEMUBalloonStatus *balloon_stat_fn;
static void *balloon_opaque;
+static bool balloon_inhibited;
+
+bool qemu_balloon_is_inhibited(void)
+{
+ return balloon_inhibited;
+}
+
+void qemu_balloon_inhibit(bool state)
+{
+ balloon_inhibited = state;
+}
static bool have_balloon(Error **errp)
{