X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/a0b1a66ea39bca011108734147a72232a4d08c7a..c5d128ffeb5357df1ea3e6de0c13b3d6a09f6064:/balloon.c diff --git a/balloon.c b/balloon.c index 5d69e8a00b..f2ef50cf77 100644 --- a/balloon.c +++ b/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) {