if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0)
return -1;
- ret = qemuMonitorDumpToFd(priv->mon, 0, fd, 0, 0);
+ ret = qemuMonitorDumpToFd(priv->mon, fd);
qemuDomainObjExitMonitorWithDriver(driver, vm);
return ret;
return ret;
}
-int qemuMonitorDumpToFd(qemuMonitorPtr mon,
- unsigned int flags,
- int fd,
- unsigned long long begin,
- unsigned long long length)
+int
+qemuMonitorDumpToFd(qemuMonitorPtr mon, int fd)
{
int ret;
- VIR_DEBUG("mon=%p fd=%d flags=%x begin=%llx length=%llx",
- mon, fd, flags, begin, length);
+ VIR_DEBUG("mon=%p fd=%d", mon, fd);
if (!mon) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
if (qemuMonitorSendFileHandle(mon, "dump", fd) < 0)
return -1;
- ret = qemuMonitorJSONDump(mon, flags, "fd:dump", begin, length);
+ ret = qemuMonitorJSONDump(mon, "fd:dump");
if (ret < 0) {
if (qemuMonitorCloseFileHandle(mon, "dump") < 0)
int qemuMonitorMigrateCancel(qemuMonitorPtr mon);
-typedef enum {
- QEMU_MONITOR_DUMP_HAVE_FILTER = 1 << 0,
- QEMU_MONITOR_DUMP_PAGING = 1 << 1,
- QEMU_MONITOR_DUMP_FLAGS_LAST
-} QEMU_MONITOR_DUMP;
-
int qemuMonitorDumpToFd(qemuMonitorPtr mon,
- unsigned int flags,
- int fd,
- unsigned long long begin,
- unsigned long long length);
+ int fd);
int qemuMonitorGraphicsRelocate(qemuMonitorPtr mon,
int type,
return ret;
}
-int qemuMonitorJSONDump(qemuMonitorPtr mon,
- unsigned int flags,
- const char *protocol,
- unsigned long long begin,
- unsigned long long length)
+int
+qemuMonitorJSONDump(qemuMonitorPtr mon,
+ const char *protocol)
{
int ret;
virJSONValuePtr cmd = NULL;
virJSONValuePtr reply = NULL;
- if (flags & QEMU_MONITOR_DUMP_HAVE_FILTER)
- cmd = qemuMonitorJSONMakeCommand("dump-guest-memory",
- "b:paging", flags & QEMU_MONITOR_DUMP_PAGING ? 1 : 0,
- "s:protocol", protocol,
- "U:begin", begin,
- "U:length", length,
- NULL);
- else
- cmd = qemuMonitorJSONMakeCommand("dump-guest-memory",
- "b:paging", flags & QEMU_MONITOR_DUMP_PAGING ? 1 : 0,
- "s:protocol", protocol,
- NULL);
+ cmd = qemuMonitorJSONMakeCommand("dump-guest-memory",
+ "b:paging", false,
+ "s:protocol", protocol,
+ NULL);
if (!cmd)
return -1;
int qemuMonitorJSONMigrateCancel(qemuMonitorPtr mon);
int qemuMonitorJSONDump(qemuMonitorPtr mon,
- unsigned int flags,
- const char *protocol,
- unsigned long long begin,
- unsigned long long length);
+ const char *protocol);
int qemuMonitorJSONGraphicsRelocate(qemuMonitorPtr mon,
int type,