Skip to contentSkip to conversation

Fix to libxl migration v2 issue blocking OSSTest

PATCH In review Andrew Cooper 3 participants 21 messages Jul 17, 2015 – Jul 21, 2015

lore
Share & tools
lore
#0 lore raw

cover Fix to libxl migration v2 issue blocking OSSTest

And three improvements to debugging.

Note that there is still a bug in libxl__toolstack_save() which valgrind identified, but I do not wish to block this bugfix on that

Andrew Cooper (4):
tools/libxc: Identify the path of the kernel image which cannot be
found
tools/libxl: Log the subject fd in datacopier messages tools/libxl: Identify copywhat in stream v2 datacopiers tools/libxl: Initialise the fd of the unused half of a datacopier

 tools/libxc/xg_private.c         |    2 +-
 tools/libxl/libxl_aoutils.c      |   24 ++++++++++++------------
 tools/libxl/libxl_stream_read.c  |   19 +++++++++++--------
 tools/libxl/libxl_stream_write.c |    5 ++++-
 4 files changed, 28 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/4 tools/libxc: Identify the path of the kernel image which cannot be found

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>

---
This is rather quicker than using strace to find out that I had forgotten to ./configure --prefix=/usr

---
 tools/libxc/xg_private.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xg_private.c +1 -1
index c52cb44..507b205 100644
@@ -37,7 +37,7 @@ char *xc_read_image(xc_interface *xch,
 
     if ( (kernel_fd = open(filename, O_RDONLY)) < 0 )
     {
-        PERROR("Could not open kernel image");
+        PERROR("Could not open kernel image '%s'", filename);
         goto out;
     }
 
Signature · 1 line
1.7.10.4
Acked-by on v1 1/4
#3 lore raw

Re: [PATCH 1/4] tools/libxc: Identify the path of the kernel image which cannot be found

In reply to Andrew Cooper
Quoted 4 lines · Andrew Cooper
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
Quoted 23 lines

---
This is rather quicker than using strace to find out that I had forgotten to ./configure --prefix=/usr

---
 tools/libxc/xg_private.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xg_private.c +1 -1
index c52cb44..507b205 100644
@@ -37,7 +37,7 @@ char *xc_read_image(xc_interface *xch,
 
     if ( (kernel_fd = open(filename, O_RDONLY)) < 0 )
     {
-        PERROR("Could not open kernel image");
+        PERROR("Could not open kernel image '%s'", filename);
         goto out;
     }
 
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 2/4 tools/libxl: Log the subject fd in datacopier messages

In reply to Andrew Cooper

This is a substantial aid to debugging

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/libxl/libxl_aoutils.c |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
tools/libxl/libxl_aoutils.c +12 -12
index 9087c23..d5fbc4d 100644
@@ -188,14 +188,13 @@ void libxl__datacopier_prefixdata(libxl__egc *egc, libxl__datacopier_state *dc,
 
 static int datacopier_pollhup_handled(libxl__egc *egc,
                                       libxl__datacopier_state *dc,
-                                      short revents, int onwrite)
+                                      int fd, short revents, int onwrite)
 {
     STATE_AO_GC(dc->ao);
 
     if (dc->callback_pollhup && (revents & POLLHUP)) {
-        LOG(DEBUG, "received POLLHUP on %s during copy of %s",
-            onwrite ? dc->writewhat : dc->readwhat,
-            dc->copywhat);
+        LOG(DEBUG, "received POLLHUP on fd %d: %s during copy of %s",
+            fd, onwrite ? dc->writewhat : dc->readwhat, dc->copywhat);
         libxl__datacopier_kill(dc);
         dc->callback_pollhup(egc, dc, ERROR_FAIL, onwrite, -1);
         return 1;
@@ -217,13 +216,13 @@ static void datacopier_readable(libxl__egc *egc, libxl__ev_fd *ev,
     libxl__datacopier_state *dc = CONTAINER_OF(ev, *dc, toread);
     STATE_AO_GC(dc->ao);
 
-    if (datacopier_pollhup_handled(egc, dc, revents, 0))
+    if (datacopier_pollhup_handled(egc, dc, fd, revents, 0))
         return;
 
     if (revents & ~(POLLIN|POLLHUP)) {
-        LOG(ERROR,
-            "unexpected poll event 0x%x (expected POLLIN and/or POLLHUP)"
-            " on %s during copy of %s", revents, dc->readwhat, dc->copywhat);
+        LOG(ERROR, "unexpected poll event 0x%x on fd %d (expected POLLIN "
+            "and/or POLLHUP) reading %s during copy of %s",
+            revents, fd, dc->readwhat, dc->copywhat);
         datacopier_callback(egc, dc, ERROR_FAIL, -1, EIO);
         return;
     }
@@ -286,7 +285,7 @@ static void datacopier_readable(libxl__egc *egc, libxl__ev_fd *ev,
                     LIBXL__EVENT_DISASTER(egc,
      "unexpected failure polling fd for datacopier eof hup check",
                                   errno, 0);
-                if (datacopier_pollhup_handled(egc, dc, hupchk.revents, 0))
+                if (datacopier_pollhup_handled(egc, dc, fd, hupchk.revents, 0))
                     return;
             }
             libxl__ev_fd_deregister(gc, &dc->toread);
@@ -320,12 +319,13 @@ static void datacopier_writable(libxl__egc *egc, libxl__ev_fd *ev,
     libxl__datacopier_state *dc = CONTAINER_OF(ev, *dc, towrite);
     STATE_AO_GC(dc->ao);
 
-    if (datacopier_pollhup_handled(egc, dc, revents, 1))
+    if (datacopier_pollhup_handled(egc, dc, fd, revents, 1))
         return;
 
     if (revents & ~POLLOUT) {
-        LOG(ERROR, "unexpected poll event 0x%x (should be POLLOUT)"
-            " on %s during copy of %s", revents, dc->writewhat, dc->copywhat);
+        LOG(ERROR, "unexpected poll event 0x%x on fd %d (should be POLLOUT)"
+            " writing %s during copy of %s",
+            revents, fd, dc->writewhat, dc->copywhat);
         datacopier_callback(egc, dc, ERROR_FAIL, -1, EIO);
         return;
     }
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH 3/4 tools/libxl: Identify copywhat in stream v2 datacopiers

In reply to Andrew Cooper

This is an aid to debugging

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/libxl/libxl_stream_read.c  |   18 ++++++++++--------
 tools/libxl/libxl_stream_write.c |    4 +++-
 2 files changed, 13 insertions(+), 9 deletions(-)
tools/libxl/libxl_stream_read.c +10 -8
index 2d17403..3e1cd2a 100644
@@ -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)
tools/libxl/libxl_stream_write.c +3 -1
index 944a87b..94f681b 100644
@@ -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);
Signature · 1 line
1.7.10.4
#8 lore raw

PATCH 4/4 tools/libxl: Initialise the fd of the unused half of a datacopier

In reply to Andrew Cooper

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/libxl/libxl_stream_read.c  |    1 +
 tools/libxl/libxl_stream_write.c |    1 +
 2 files changed, 2 insertions(+)
tools/libxl/libxl_stream_read.c +1 -0
index 3e1cd2a..32a3551 100644
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;
 
tools/libxl/libxl_stream_write.c +1 -0
index 94f681b..47f71c0 100644
@@ -389,6 +389,7 @@ static void write_emulator_record(libxl__egc *egc,
     dc->readwhat      = "qemu save file";
     dc->copywhat      = "save v2 stream";
     dc->readfd        = readfd;
+    dc->readfd        = -1;
     dc->maxsz         = -1;
     dc->readbuf       = stream->emu_body + sizeof(*ehdr);
     dc->bytes_to_read = rec->length - sizeof(*ehdr);
Signature · 1 line
1.7.10.4
#10 lore raw

Re: [PATCH 4/4] tools/libxl: Initialise the fd of the unused half of a datacopier

In reply to Andrew Cooper
Quoted 29 lines · Andrew Cooper

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/libxl/libxl_stream_read.c  |    1 +
 tools/libxl/libxl_stream_write.c |    1 +
 2 files changed, 2 insertions(+)
tools/libxl/libxl_stream_read.c +1 -0
index 3e1cd2a..32a3551 100644
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;
 
tools/libxl/libxl_stream_write.c +0 -0
index 94f681b..47f71c0 100644

tools/libxl/libxl_stream_write.c static void write_emulator_record(libxl__egc *egc, · line 392

Quoted 4 lines
tools/libxl/libxl_stream_write.c +1 -0
@@ -389,6 +389,7 @@ static void write_emulator_record(libxl__egc *egc,
     dc->readwhat      = "qemu save file";
     dc->copywhat      = "save v2 stream";
     dc->readfd        = readfd;
+    dc->readfd        = -1;

writefd

Quoted 5 lines
tools/libxl/libxl_stream_write.c +0 -0
     dc->maxsz         = -1;
     dc->readbuf       = stream->emu_body + sizeof(*ehdr);
     dc->bytes_to_read = rec->length - sizeof(*ehdr);
Signature · 1 line
1.7.10.4
#11 lore raw

Re: [PATCH 4/4] tools/libxl: Initialise the fd of the unused half of a datacopier

Quoted 25 lines · Wei Liu
Quoted 24 lines · Andrew Cooper

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/libxl/libxl_stream_read.c  |    1 +
 tools/libxl/libxl_stream_write.c |    1 +
 2 files changed, 2 insertions(+)
tools/libxl/libxl_stream_read.c +1 -0
index 3e1cd2a..32a3551 100644
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;
 
Quoted 10 lines

tools/libxl/libxl_stream_write.c static void write_emulator_record(libxl__egc *egc, · line 392

Quoted 9 lines
tools/libxl/libxl_stream_write.c +1 -0
index 94f681b..47f71c0 100644
@@ -389,6 +389,7 @@ static void write_emulator_record(libxl__egc *egc,
     dc->readwhat      = "qemu save file";
     dc->copywhat      = "save v2 stream";
     dc->readfd        = readfd;
+    dc->readfd        = -1;

writefd

Oops :s yes.

~Andrew

#12 lore raw

PATCH v2 4/4 tools/libxl: Initialise the fd of the unused half of a datacopier

In reply to Wei Liu

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>

---
Correct writefd in libxl_stream_write.c

---
 tools/libxl/libxl_stream_read.c  |    1 +
 tools/libxl/libxl_stream_write.c |    1 +
 2 files changed, 2 insertions(+)
tools/libxl/libxl_stream_read.c +1 -0
index 3e1cd2a..32a3551 100644
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;
 
tools/libxl/libxl_stream_write.c +1 -0
index 94f681b..5bff52b 100644
@@ -389,6 +389,7 @@ static void write_emulator_record(libxl__egc *egc,
     dc->readwhat      = "qemu save file";
     dc->copywhat      = "save v2 stream";
     dc->readfd        = readfd;
+    dc->writefd       = -1;
     dc->maxsz         = -1;
     dc->readbuf       = stream->emu_body + sizeof(*ehdr);
     dc->bytes_to_read = rec->length - sizeof(*ehdr);
Signature · 1 line
1.7.10.4
Acked-by on v2 4/4
#13 lore raw

Re: [PATCH v2 4/4] tools/libxl: Initialise the fd of the unused half of a datacopier

Quoted 8 lines · Andrew Cooper

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
Quoted 33 lines

---
Correct writefd in libxl_stream_write.c

---
 tools/libxl/libxl_stream_read.c  |    1 +
 tools/libxl/libxl_stream_write.c |    1 +
 2 files changed, 2 insertions(+)
tools/libxl/libxl_stream_read.c +1 -0
index 3e1cd2a..32a3551 100644
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;
 
tools/libxl/libxl_stream_write.c +1 -0
index 94f681b..5bff52b 100644
@@ -389,6 +389,7 @@ static void write_emulator_record(libxl__egc *egc,
     dc->readwhat      = "qemu save file";
     dc->copywhat      = "save v2 stream";
     dc->readfd        = readfd;
+    dc->writefd       = -1;
     dc->maxsz         = -1;
     dc->readbuf       = stream->emu_body + sizeof(*ehdr);
     dc->bytes_to_read = rec->length - sizeof(*ehdr);
Signature · 1 line
1.7.10.4
#14 lore raw

Re: [PATCH v2 4/4] tools/libxl: Initialise the fd of the unused half of a datacopier

Quoted 11 lines · Wei Liu
Quoted 8 lines · Andrew Cooper

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>

I've pushed just this one in the hopes of unblocking the testing over the weekend (I've got to go soon is the only reason I didn't touch the other three).

I had to rebase a little to account for the other patches, hopefully I didn't bugger it up!

Ian.

#15 lore raw

Re: [PATCH v2 4/4] tools/libxl: Initialise the fd of the unused half of a datacopier

Quoted 10 lines · Ian Campbell
Quoted 9 lines · Wei Liu
Quoted 8 lines · Andrew Cooper

This bug causes a spurious failure if stdin happens to be an appropriately readable/writeable pipe which receives a POLLHUP

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
Quoted 7 lines
Quoted 1 line

I've pushed just this one in the hopes of unblocking the testing over the weekend (I've got to go soon is the only reason I didn't touch the other three).

I had to rebase a little to account for the other patches, hopefully I didn't bugger it up!

Ah yes - you would have to.

What is in there looks correct.

~Andrew

#16 lore raw
In reply to Andrew Cooper
Quoted 10 lines · Andrew Cooper

And three improvements to debugging.

Note that there is still a bug in libxl__toolstack_save() which valgrind identified, but I do not wish to block this bugfix on that

Andrew Cooper (4):
tools/libxc: Identify the path of the kernel image which cannot be
found
tools/libxl: Log the subject fd in datacopier messages tools/libxl: Identify copywhat in stream v2 datacopiers

I think all three patches should wait until next development window opens unless we have nothing else in our queue (which doesn't seem to be the case at the moment).

Wei.

Quoted 16 lines

tools/libxl: Initialise the fd of the unused half of a datacopier

 tools/libxc/xg_private.c         |    2 +-
 tools/libxl/libxl_aoutils.c      |   24 ++++++++++++------------
 tools/libxl/libxl_stream_read.c  |   19 +++++++++++--------
 tools/libxl/libxl_stream_write.c |    5 ++++-
 4 files changed, 28 insertions(+), 22 deletions(-)
Signature · 7 lines
1.7.10.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#17 lore raw
Quoted 6 lines · Wei Liu
Quoted 5 lines · Andrew Cooper

And three improvements to debugging.

Note that there is still a bug in libxl__toolstack_save() which valgrind identified, but I do not wish to block this bugfix on that

Quoted 8 lines
Quoted 5 lines

Andrew Cooper (4):
tools/libxc: Identify the path of the kernel image which cannot be
found
tools/libxl: Log the subject fd in datacopier messages tools/libxl: Identify copywhat in stream v2 datacopiers

I think all three patches should wait until next development window opens unless we have nothing else in our queue (which doesn't seem to be the case at the moment).

You mean delay until 4.7? I disagree. Without these fixes, debugging issues is substantially harder than they need to be.

They literally are only adding extra information into existing error messages.

~Andrew

#18 lore raw
Quoted 16 lines · Andrew Cooper
Quoted 6 lines · Wei Liu
Quoted 5 lines · Andrew Cooper

And three improvements to debugging.

Note that there is still a bug in libxl__toolstack_save() which valgrind identified, but I do not wish to block this bugfix on that

Quoted 8 lines
Quoted 5 lines

Andrew Cooper (4):
tools/libxc: Identify the path of the kernel image which cannot be
found
tools/libxl: Log the subject fd in datacopier messages tools/libxl: Identify copywhat in stream v2 datacopiers

I think all three patches should wait until next development window opens unless we have nothing else in our queue (which doesn't seem to be the case at the moment).

Quoted 6 lines

You mean delay until 4.7? I disagree. Without these fixes, debugging issues is substantially harder than they need to be.

They literally are only adding extra information into existing error messages.

Well I am expecting two to three big series getting applied soon, any changes that gets applied now has the chance of forcing those series to be rebased.

Let's at least wait until next week.

Wei.

Quoted 1 line

~Andrew

#19 lore raw
Quoted 30 lines · Wei Liu
Quoted 20 lines · Andrew Cooper
Quoted 13 lines · Wei Liu
Quoted 6 lines · Andrew Cooper

And three improvements to debugging.

Note that there is still a bug in libxl__toolstack_save() which valgrind identified, but I do not wish to block this bugfix on that

Quoted 6 lines

Andrew Cooper (4):
tools/libxc: Identify the path of the kernel image which
cannot be
found
tools/libxl: Log the subject fd in datacopier messages tools/libxl: Identify copywhat in stream v2 datacopiers

Quoted 5 lines

I think all three patches should wait until next development window
opens unless we have nothing else in our queue (which doesn't seem to be
the case at the moment).

Quoted 8 lines

You mean delay until 4.7? I disagree. Without these fixes, debugging
issues is substantially harder than they need to be.

They literally are only adding extra information into existing error
messages.

Quoted 4 lines

Well I am expecting two to three big series getting applied soon, any changes that gets applied now has the chance of forcing those series to
be rebased.

Wei and I discussed this IRL, the concern was the outstanding colopre patches.

However I did a test apply on top of
https://github.com/macrosheep/xen.git#colo/colo-v9 (the latest colopre) and there were no rejects due to the remus refactoring.

There were rejects because I already applied 4/4 on Friday, i.e. they were the inverse of what I fixed up then.

So given the lack of interaction with colopre Wei gave me permission to go ahead, so I have applied patches 1..3.

4 was applied already, of course.

Ian.

#20 lore raw
Quoted 48 lines · Ian Campbell
Quoted 32 lines · Wei Liu
Quoted 22 lines · Andrew Cooper
Quoted 15 lines · Wei Liu
Quoted 8 lines · Andrew Cooper

And three improvements to debugging.

Note that there is still a bug in libxl__toolstack_save() which
valgrind identified, but I do not wish to block this bugfix on
that

Quoted 6 lines

Andrew Cooper (4):
tools/libxc: Identify the path of the kernel image which
cannot be
found
tools/libxl: Log the subject fd in datacopier messages tools/libxl: Identify copywhat in stream v2 datacopiers

Quoted 5 lines

I think all three patches should wait until next development window
opens unless we have nothing else in our queue (which doesn't seem to be
the case at the moment).

Quoted 8 lines

You mean delay until 4.7? I disagree. Without these fixes, debugging
issues is substantially harder than they need to be.

They literally are only adding extra information into existing error
messages.

Quoted 6 lines

Well I am expecting two to three big series getting applied soon, any
changes that gets applied now has the chance of forcing those series
to
be rebased.

Wei and I discussed this IRL, the concern was the outstanding colopre patches.

However I did a test apply on top of
https://github.com/macrosheep/xen.git#colo/colo-v9 (the latest colopre)
and there were no rejects due to the remus refactoring.

Quoted 8 lines

There were rejects because I already applied 4/4 on Friday, i.e. they were the inverse of what I fixed up then.

So given the lack of interaction with colopre Wei gave me permission to
go ahead, so I have applied patches 1..3.

4 was applied already, of course.

In doing this I managed to revert part of #4, thanks to Andy for noticing so promptly.

I've pushed the following:

Quoted 1 line

From 1287ac109c44ca9b99eb642316d7af83b4081b52 Mon Sep 17 00:00:00 2001

From: Ian Campbell <[email protected]>
Date: Tue, 21 Jul 2015 16:00:19 +0100
Subject: [PATCH] tools: libxl: Refix "Initialise the fd of the unused half of
a datacopier"

Applying the series out of order led to d72befc35f31 "tools/libxl:
Identify copywhat in stream v2 datacopiers" unintentionally reverting part of 21d9b079e538 "tools/libxl: Initialise the fd of the unused half of a datacopier".

Put this back.

---
 tools/libxl/libxl_stream_read.c | 1 +
 1 file changed, 1 insertion(+)
tools/libxl/libxl_stream_read.c +1 -0
index 3e1cd2a..32a3551 100644
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;
 
Signature · 1 line
2.1.4