X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/000d6042da0d73e5a71318b5fa96e5a084534d12..36c2f8be2c4eb0003ac77a14910842b7ddd7337e:/balloon.c diff --git a/balloon.c b/balloon.c index 5d69e8a00b..6bf0a96813 100644 --- a/balloon.c +++ b/balloon.c @@ -24,18 +24,30 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/cpu-common.h" #include "sysemu/kvm.h" #include "sysemu/balloon.h" -#include "trace.h" -#include "qmp-commands.h" +#include "trace-root.h" +#include "qapi/error.h" +#include "qapi/qapi-commands-misc.h" #include "qapi/qmp/qerror.h" -#include "qapi/qmp/qjson.h" 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) {