void qmp_migrate_set_parameters(bool has_compress_level,

                                int64_t compress_level,

                                bool has_compress_threads,

                                int64_t compress_threads,

                                bool has_decompress_threads,

                                int64_t decompress_threads,

                                bool has_cpu_throttle_initial,

                                int64_t cpu_throttle_initial,

                                bool has_cpu_throttle_increment,

                                int64_t cpu_throttle_increment,

                                bool has_tls_creds,

                                const char *tls_creds,

                                bool has_tls_hostname,

                                const char *tls_hostname,

                                Error **errp)

{

    MigrationState *s = migrate_get_current();



    if (has_compress_level && (compress_level < 0 || compress_level > 9)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "compress_level",

                   "is invalid, it should be in the range of 0 to 9");

        return;


    if (has_compress_threads &&

            (compress_threads < 1 || compress_threads > 255)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "compress_threads",

                   "is invalid, it should be in the range of 1 to 255");

        return;


    if (has_decompress_threads &&

            (decompress_threads < 1 || decompress_threads > 255)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "decompress_threads",

                   "is invalid, it should be in the range of 1 to 255");

        return;


    if (has_cpu_throttle_initial &&

            (cpu_throttle_initial < 1 || cpu_throttle_initial > 99)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "cpu_throttle_initial",

                   "an integer in the range of 1 to 99");


    if (has_cpu_throttle_increment &&

            (cpu_throttle_increment < 1 || cpu_throttle_increment > 99)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "cpu_throttle_increment",

                   "an integer in the range of 1 to 99");




    if (has_compress_level) {

        s->parameters.compress_level = compress_level;


    if (has_compress_threads) {

        s->parameters.compress_threads = compress_threads;


    if (has_decompress_threads) {

        s->parameters.decompress_threads = decompress_threads;


    if (has_cpu_throttle_initial) {

        s->parameters.cpu_throttle_initial = cpu_throttle_initial;


    if (has_cpu_throttle_increment) {

        s->parameters.cpu_throttle_increment = cpu_throttle_increment;










void qmp_migrate_set_parameters(bool has_compress_level,

                                int64_t compress_level,

                                bool has_compress_threads,

                                int64_t compress_threads,

                                bool has_decompress_threads,

                                int64_t decompress_threads,

                                bool has_cpu_throttle_initial,

                                int64_t cpu_throttle_initial,

                                bool has_cpu_throttle_increment,

                                int64_t cpu_throttle_increment,

                                bool has_tls_creds,

                                const char *tls_creds,

                                bool has_tls_hostname,

                                const char *tls_hostname,

                                Error **errp)

{

    MigrationState *s = migrate_get_current();



    if (has_compress_level && (compress_level < 0 || compress_level > 9)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "compress_level",

                   "is invalid, it should be in the range of 0 to 9");

        return;


    if (has_compress_threads &&

            (compress_threads < 1 || compress_threads > 255)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "compress_threads",

                   "is invalid, it should be in the range of 1 to 255");

        return;


    if (has_decompress_threads &&

            (decompress_threads < 1 || decompress_threads > 255)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "decompress_threads",

                   "is invalid, it should be in the range of 1 to 255");

        return;


    if (has_cpu_throttle_initial &&

            (cpu_throttle_initial < 1 || cpu_throttle_initial > 99)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "cpu_throttle_initial",

                   "an integer in the range of 1 to 99");


    if (has_cpu_throttle_increment &&

            (cpu_throttle_increment < 1 || cpu_throttle_increment > 99)) {

        error_setg(errp, QERR_INVALID_PARAMETER_VALUE,

                   "cpu_throttle_increment",

                   "an integer in the range of 1 to 99");




    if (has_compress_level) {

        s->parameters.compress_level = compress_level;


    if (has_compress_threads) {

        s->parameters.compress_threads = compress_threads;


    if (has_decompress_threads) {

        s->parameters.decompress_threads = decompress_threads;


    if (has_cpu_throttle_initial) {

        s->parameters.cpu_throttle_initial = cpu_throttle_initial;


    if (has_cpu_throttle_increment) {

        s->parameters.cpu_throttle_increment = cpu_throttle_increment;










void FUNC_0(bool VAR_0,

                                int64_t VAR_1,

                                bool VAR_2,

                                int64_t VAR_3,

                                bool VAR_4,

                                int64_t VAR_5,

                                bool VAR_6,

                                int64_t VAR_7,

                                bool VAR_8,

                                int64_t VAR_9,

                                bool VAR_10,

                                const char *VAR_11,

                                bool VAR_12,

                                const char *VAR_13,

                                Error **VAR_14)

{

    MigrationState *s = migrate_get_current();



    if (VAR_0 && (VAR_1 < 0 || VAR_1 > 9)) {

        error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE, "VAR_1",

                   "is invalid, it should be in the range of 0 to 9");

        return;


    if (VAR_2 &&

            (VAR_3 < 1 || VAR_3 > 255)) {

        error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,

                   "VAR_3",

                   "is invalid, it should be in the range of 1 to 255");

        return;


    if (VAR_4 &&

            (VAR_5 < 1 || VAR_5 > 255)) {

        error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,

                   "VAR_5",

                   "is invalid, it should be in the range of 1 to 255");

        return;


    if (VAR_6 &&

            (VAR_7 < 1 || VAR_7 > 99)) {

        error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,

                   "VAR_7",

                   "an integer in the range of 1 to 99");


    if (VAR_8 &&

            (VAR_9 < 1 || VAR_9 > 99)) {

        error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,

                   "VAR_9",

                   "an integer in the range of 1 to 99");




    if (VAR_0) {

        s->parameters.VAR_1 = VAR_1;


    if (VAR_2) {

        s->parameters.VAR_3 = VAR_3;


    if (VAR_4) {

        s->parameters.VAR_5 = VAR_5;


    if (VAR_6) {

        s->parameters.VAR_7 = VAR_7;


    if (VAR_8) {

        s->parameters.VAR_9 = VAR_9;










void FUNC_0(bool VAR_0,
int64_t VAR_1,
bool VAR_2,
int64_t VAR_3,
bool VAR_4,
int64_t VAR_5,
bool VAR_6,
int64_t VAR_7,
bool VAR_8,
int64_t VAR_9,
bool VAR_10,
const char *VAR_11,
bool VAR_12,
const char *VAR_13,
Error **VAR_14)
{ MigrationState *s = migrate_get_current(); if (VAR_0 && (VAR_1 < 0 || VAR_1 > 9)) { error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE, "VAR_1",
"is invalid, it should be in the range of 0 to 9"); return; if (VAR_2 &&
(VAR_3 < 1 || VAR_3 > 255)) { error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,
"VAR_3",
"is invalid, it should be in the range of 1 to 255"); return; if (VAR_4 &&
(VAR_5 < 1 || VAR_5 > 255)) { error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,
"VAR_5",
"is invalid, it should be in the range of 1 to 255"); return; if (VAR_6 &&
(VAR_7 < 1 || VAR_7 > 99)) { error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,
"VAR_7",
"an integer in the range of 1 to 99"); if (VAR_8 &&
(VAR_9 < 1 || VAR_9 > 99)) { error_setg(VAR_14, QERR_INVALID_PARAMETER_VALUE,
"VAR_9",
"an integer in the range of 1 to 99"); if (VAR_0) { s->parameters.VAR_1 = VAR_1; if (VAR_2) { s->parameters.VAR_3 = VAR_3; if (VAR_4) { s->parameters.VAR_5 = VAR_5; if (VAR_6) { s->parameters.VAR_7 = VAR_7; if (VAR_8) { s->parameters.VAR_9 = VAR_9;