]> git.proxmox.com Git - mirror_qemu.git/blobdiff - balloon.c
s390x/skeys: Fix instance and class size
[mirror_qemu.git] / balloon.c
index 5d69e8a00b4873b416868d271b45f4e6a39af42e..0f45d1b5c4cef4401062f1518144d404408e3c46 100644 (file)
--- a/balloon.c
+++ b/balloon.c
 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)
 {