mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/libxl: Identify copywhat in stream v2 datacopiers
This is an aid to debugging Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> CC: Ian Campbell <Ian.Campbell@citrix.com> CC: Ian Jackson <Ian.Jackson@eu.citrix.com> CC: Wei Liu <wei.liu2@citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
e07e73ac9e
commit
d72befc35f
2 files changed
+13
-10
No files matched your search
@@ -223,9 +223,10 @@ void libxl__stream_read_start(libxl__egc *egc,
|
||||
}
|
||||
/* stream->fd is now a v2 stream. */
|
||||
|
||||
dc->ao = stream->ao;
|
||||
dc->readfd = stream->fd;
|
||||
dc->writefd = -1;
|
||||
dc->ao = stream->ao;
|
||||
dc->copywhat = "restore v2 stream";
|
||||
dc->readfd = stream->fd;
|
||||
dc->writefd = -1;
|
||||
|
||||
/* Start reading the stream header. */
|
||||
rc = setup_read(stream, "stream header",
|
||||
@@ -606,12 +607,12 @@ static void write_emulator_blob(libxl__egc *egc,
|
||||
}
|
||||
|
||||
FILLZERO(*dc);
|
||||
dc->ao = stream->ao;
|
||||
dc->writewhat = "qemu save file";
|
||||
dc->writefd = writefd;
|
||||
dc->readfd = -1;
|
||||
dc->maxsz = -1;
|
||||
dc->callback = write_emulator_done;
|
||||
dc->ao = stream->ao;
|
||||
dc->writewhat = "qemu save file";
|
||||
dc->copywhat = "restore v2 stream";
|
||||
dc->writefd = writefd;
|
||||
dc->maxsz = -1;
|
||||
dc->callback = write_emulator_done;
|
||||
|
||||
rc = libxl__datacopier_start(dc);
|
||||
if (rc)
|
||||
|
||||
@@ -180,7 +180,8 @@ void libxl__stream_write_start(libxl__egc *egc,
|
||||
|
||||
dc->ao = ao;
|
||||
dc->readfd = -1;
|
||||
dc->writewhat = "save/migration stream";
|
||||
dc->writewhat = "stream header";
|
||||
dc->copywhat = "save v2 stream";
|
||||
dc->writefd = stream->fd;
|
||||
dc->maxsz = -1;
|
||||
dc->callback = stream_header_done;
|
||||
@@ -386,6 +387,7 @@ static void write_emulator_record(libxl__egc *egc,
|
||||
FILLZERO(*dc);
|
||||
dc->ao = stream->ao;
|
||||
dc->readwhat = "qemu save file";
|
||||
dc->copywhat = "save v2 stream";
|
||||
dc->readfd = readfd;
|
||||
dc->writefd = -1;
|
||||
dc->maxsz = -1;
|
||||
|
||||