]> git.proxmox.com Git - mirror_qemu.git/blobdiff - balloon.c
vhost-user-test: use tmpfs by default
[mirror_qemu.git] / balloon.c
index c7033e3dc334829eb06885eb003da2c60d809f91..5d69e8a00b4873b416868d271b45f4e6a39af42e 100644 (file)
--- a/balloon.c
+++ b/balloon.c
  * THE SOFTWARE.
  */
 
-#include "monitor/monitor.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 "qapi/qmp/qerror.h"
 #include "qapi/qmp/qjson.h"
 
 static QEMUBalloonEvent *balloon_event_fn;
@@ -96,7 +97,7 @@ void qmp_balloon(int64_t target, Error **errp)
     }
 
     if (target <= 0) {
-        error_set(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size");
+        error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size");
         return;
     }