[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3/4] tools/libxl: Identify copywhat in stream v2 datacopiers
This is an aid to debugging Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CC: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl_stream_read.c | 18 ++++++++++-------- tools/libxl/libxl_stream_write.c | 4 +++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/tools/libxl/libxl_stream_read.c b/tools/libxl/libxl_stream_read.c index 2d17403..3e1cd2a 100644 --- a/tools/libxl/libxl_stream_read.c +++ b/tools/libxl/libxl_stream_read.c @@ -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,11 +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->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) diff --git a/tools/libxl/libxl_stream_write.c b/tools/libxl/libxl_stream_write.c index 944a87b..94f681b 100644 --- a/tools/libxl/libxl_stream_write.c +++ b/tools/libxl/libxl_stream_write.c @@ -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->maxsz = -1; dc->readbuf = stream->emu_body + sizeof(*ehdr); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |