Revision b53ccc30 hmp.c

b/hmp.c
1311 1311
    const char *file = qdict_get_str(qdict, "filename");
1312 1312
    bool has_begin = qdict_haskey(qdict, "begin");
1313 1313
    bool has_length = qdict_haskey(qdict, "length");
1314
    /* kdump-compressed format is not supported for HMP */
1315
    bool has_format = false;
1314 1316
    int64_t begin = 0;
1315 1317
    int64_t length = 0;
1318
    enum DumpGuestMemoryFormat dump_format = DUMP_GUEST_MEMORY_FORMAT_ELF;
1316 1319
    char *prot;
1317 1320

  
1318 1321
    if (has_begin) {
......
1325 1328
    prot = g_strconcat("file:", file, NULL);
1326 1329

  
1327 1330
    qmp_dump_guest_memory(paging, prot, has_begin, begin, has_length, length,
1328
                          &errp);
1331
                          has_format, dump_format, &errp);
1329 1332
    hmp_handle_error(mon, &errp);
1330 1333
    g_free(prot);
1331 1334
}

Also available in: Unified diff