qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 17/18] migration: add prefix for local migration


From: Lei Li
Subject: Re: [Qemu-devel] [PATCH 17/18] migration: add prefix for local migration to incoming migration
Date: Fri, 23 Aug 2013 22:02:26 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 08/21/2013 06:52 PM, Paolo Bonzini wrote:
Il 21/08/2013 09:18, Lei Li ha scritto:
Signed-off-by: Lei Li <address@hidden>
---
  migration.c |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/migration.c b/migration.c
index 2471664..17cf2fd 100644
--- a/migration.c
+++ b/migration.c
@@ -81,6 +81,9 @@ void qemu_start_incoming_migration(const char *uri, Error 
**errp)
          unix_start_incoming_migration(p, errp);
      else if (strstart(uri, "fd:", &p))
          fd_start_incoming_migration(p, errp);
+    else if (strstart(uri, "local:", &p))
+        local_start_incoming_migration(p, errp);
+
  #endif
      else {
          error_setg(errp, "unknown migration protocol: %s", uri);

This should not be needed.  The destination can just use the normal
unix: protocol.  The load hook will only be called if the source uses
localhost migration, and it will get the pipe via SCM_RIGHTS then
process the pipe.

Acknowledge, thanks.


Paolo



--
Lei




reply via email to

[Prev in Thread] Current Thread [Next in Thread]