<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/migration/tcp.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/migration/tcp.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/migration/tcp.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2016-05-26T06:01:42+00:00</updated>
<entry>
<title>migration: convert tcp socket protocol to use QIOChannel</title>
<updated>2016-05-26T06:01:42+00:00</updated>
<author>
<name>Daniel P. Berrange</name>
</author>
<published>2016-04-27T10:05:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e65c67e4dad18a1f04be426f23cc4d64a32c7548'/>
<id>urn:sha1:e65c67e4dad18a1f04be426f23cc4d64a32c7548</id>
<content type='text'>
Drop the current TCP socket migration driver and extend
the new generic socket driver to cope with the TCP address
format

Reviewed-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
Message-Id: &lt;1461751518-12128-15-git-send-email-berrange@redhat.com&gt;
Signed-off-by: Amit Shah &lt;amit.shah@redhat.com&gt;
</content>
</entry>
<entry>
<title>migration: add reporting of errors for outgoing migration</title>
<updated>2016-05-26T06:01:30+00:00</updated>
<author>
<name>Daniel P. Berrange</name>
</author>
<published>2016-04-27T10:05:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d59ce6f34434bf47a9b26138c908650bf9a24be1'/>
<id>urn:sha1:d59ce6f34434bf47a9b26138c908650bf9a24be1</id>
<content type='text'>
Currently if an application initiates an outgoing migration,
it may or may not, get an error reported back on failure. If
the error occurs synchronously to the 'migrate' command
execution, the client app will see the error message. This
is the case for DNS lookup failures. If the error occurs
asynchronously to the monitor command though, the error
will be thrown away and the client left guessing about
what went wrong. This is the case for failure to connect
to the TCP server (eg due to wrong port, or firewall
rules, or other similar errors).

In the future we'll be adding more scope for errors to
happen asynchronously with the TLS protocol handshake.
TLS errors are hard to diagnose even when they are well
reported, so discarding errors entirely will make it
impossible to debug TLS connection problems.

Management apps which do migration are already using
'query-migrate' / 'info migrate' to check up on progress
of background migration operations and to see their end
status. This is a fine place to also include the error
message when things go wrong.

This patch thus adds an 'error-desc' field to the
MigrationInfo struct, which will be populated when
the 'status' is set to 'failed':

(qemu) migrate -d tcp:localhost:9001
(qemu) info migrate
capabilities: xbzrle: off rdma-pin-all: off auto-converge: off zero-blocks: off compress: off events: off x-postcopy-ram: off
Migration status: failed (Error connecting to socket: Connection refused)
total time: 0 milliseconds

In the HMP, when doing non-detached migration, it is
also possible to display this error message directly
to the app.

(qemu) migrate tcp:localhost:9001
Error connecting to socket: Connection refused

Or with QMP

  {
    "execute": "query-migrate",
    "arguments": {}
  }
  {
    "return": {
      "status": "failed",
      "error-desc": "address resolution failed for myhost:9000: No address associated with hostname"
    }
  }

Reviewed-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
Reviewed-by: Juan Quintela &lt;quintela@redhat.com&gt;
Message-Id: &lt;1461751518-12128-11-git-send-email-berrange@redhat.com&gt;
Signed-off-by: Amit Shah &lt;amit.shah@redhat.com&gt;
</content>
</entry>
<entry>
<title>osdep: remove use of socket_error() from all code</title>
<updated>2016-03-10T17:19:34+00:00</updated>
<author>
<name>Daniel P. Berrange</name>
</author>
<published>2016-03-07T20:36:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b16a44e13e89ee397a3d9a9e3cfa1605c3c1dc68'/>
<id>urn:sha1:b16a44e13e89ee397a3d9a9e3cfa1605c3c1dc68</id>
<content type='text'>
Now that QEMU wraps the Win32 sockets methods to automatically
set errno upon failure, there is no reason for callers to use
the socket_error() method. They can rely on accessing errno
even on Win32. Remove all use of socket_error() from general
code, leaving it as a static method in oslib-win32.c only.

Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>migration: rename 'file' in MigrationState to 'to_dst_file'</title>
<updated>2016-02-05T13:39:50+00:00</updated>
<author>
<name>zhanghailiang</name>
</author>
<published>2016-01-15T03:37:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=89a02a9f7bb6a371a42d9b26b76f4c9590548a03'/>
<id>urn:sha1:89a02a9f7bb6a371a42d9b26b76f4c9590548a03</id>
<content type='text'>
Rename the 'file' member of MigrationState to 'to_dst_file' to
be consistent with to_src_file, from_src_file and from_dst_file.

Signed-off-by: zhanghailiang &lt;zhang.zhanghailiang@huawei.com&gt;
Reviewed-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Reviewed-by: Amit Shah &lt;amit.shah@redhat.com&gt;
Message-Id: &lt;1452829066-9764-3-git-send-email-zhang.zhanghailiang@huawei.com&gt;
Signed-off-by: Amit Shah &lt;amit.shah@redhat.com&gt;
</content>
</entry>
<entry>
<title>migration: Clean up includes</title>
<updated>2016-01-29T15:07:22+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2016-01-26T18:16:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=1393a48526078cda985759c459de9bc803e0e4fe'/>
<id>urn:sha1:1393a48526078cda985759c459de9bc803e0e4fe</id>
<content type='text'>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-id: 1453832250-766-2-git-send-email-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler</title>
<updated>2015-06-12T12:26:21+00:00</updated>
<author>
<name>Fam Zheng</name>
</author>
<published>2015-06-04T06:45:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=82e1cc4bf91a2e1c3b62297b10b0ab1d93adfc45'/>
<id>urn:sha1:82e1cc4bf91a2e1c3b62297b10b0ab1d93adfc45</id>
<content type='text'>
Done with following Coccinelle semantic patch, plus manual cosmetic changes in
net/*.c.

    @@
    expression E1, E2, E3, E4;
    @@
    -   qemu_set_fd_handler2(E1, NULL, E2, E3, E4);
    +   qemu_set_fd_handler(E1, E2, E3, E4);

Signed-off-by: Fam Zheng &lt;famz@redhat.com&gt;
Message-id: 1433400324-7358-8-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>Remove migration- pre/post fixes off files in migration/ dir</title>
<updated>2014-12-16T12:17:36+00:00</updated>
<author>
<name>Dr. David Alan Gilbert</name>
</author>
<published>2014-12-12T11:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=329c9b10b659209c663e59ce164727ef9fd2ecdb'/>
<id>urn:sha1:329c9b10b659209c663e59ce164727ef9fd2ecdb</id>
<content type='text'>
The general feeling is that having migration/migration-blah
is overkill.

Signed-off-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Signed-off-by: Amit Shah &lt;amit.shah@redhat.com&gt;
</content>
</entry>
</feed>
