static int balloon_parse(const char *arg)

{

    QemuOpts *opts;



    if (strcmp(arg, "none") == 0) {

        return 0;

    }



    if (!strncmp(arg, "virtio", 6)) {

        if (arg[6] == ',') {

            /* have params -> parse them */

            opts = qemu_opts_parse(qemu_find_opts("device"), arg+7, 0);

            if (!opts)

                return  -1;

        } else {

            /* create empty opts */

            opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);

        }

        qemu_opt_set(opts, "driver", "virtio-balloon");

        return 0;

    }



    return -1;

}

static int balloon_parse(const char *arg)

{

    QemuOpts *opts;



    if (strcmp(arg, "none") == 0) {

        return 0;

    }



    if (!strncmp(arg, "virtio", 6)) {

        if (arg[6] == ',') {

            

            opts = qemu_opts_parse(qemu_find_opts("device"), arg+7, 0);

            if (!opts)

                return  -1;

        } else {

            

            opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);

        }

        qemu_opt_set(opts, "driver", "virtio-balloon");

        return 0;

    }



    return -1;

}

            opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);             opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
static int FUNC_0(const char *VAR_0)

{

    QemuOpts *opts;



    if (strcmp(VAR_0, "none") == 0) {

        return 0;

    }



    if (!strncmp(VAR_0, "virtio", 6)) {

        if (VAR_0[6] == ',') {

            

            opts = qemu_opts_parse(qemu_find_opts("device"), VAR_0+7, 0);

            if (!opts)

                return  -1;

        } else {

            

            opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);

        }

        qemu_opt_set(opts, "driver", "virtio-balloon");

        return 0;

    }



    return -1;

}

static int FUNC_0(const char *VAR_0)
{ QemuOpts *opts; if (strcmp(VAR_0, "none") == 0) { return 0; } if (!strncmp(VAR_0, "virtio", 6)) { if (VAR_0[6] == ',') { opts = qemu_opts_parse(qemu_find_opts("device"), VAR_0+7, 0); if (!opts)
return  -1; } else { opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0); } qemu_opt_set(opts, "driver", "virtio-balloon"); return 0; } return -1; }