From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, NUMERIC_HTTP_ADDR,SPF_HELO_NONE,SPF_PASS,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B45B4C433ED for ; Wed, 14 Apr 2021 04:51:19 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F388F611EE for ; Wed, 14 Apr 2021 04:51:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F388F611EE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWXUk-0004fZ-2f for qemu-devel@archiver.kernel.org; Wed, 14 Apr 2021 00:51:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWXSq-0003gi-ML for qemu-devel@nongnu.org; Wed, 14 Apr 2021 00:49:20 -0400 Received: from mail-yb1-xb29.google.com ([2607:f8b0:4864:20::b29]:38627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWXSp-0004cb-1h for qemu-devel@nongnu.org; Wed, 14 Apr 2021 00:49:20 -0400 Received: by mail-yb1-xb29.google.com with SMTP id x76so10704369ybe.5 for ; Tue, 13 Apr 2021 21:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MLZIcbRktslCSz4srfUbi0IN1LzLt+OJiKpPEnw+ErM=; b=l58xFepIbh7k7OTmWFh2XTGvfz3T29P/BmRr/7TgOqsQkjk6qVrGHWn+i2wR4wbFO2 jjt0qt4VncQ/vXCPVZ2odKGJ2teOsH7yeWiJ1nQDYXXuJ6vBLBareKcMVx4PenfJamQz AH0J/PWanWKe0oaJq+iuTlTjDbp5ngrOsXJtNc1mru0r+7s6D6l7OiZt1Qn0+/amYzAy o97ISAjJUY8o9VfEnaNpnACDsafIi5eQCiFwvEDe0SsDYsgVkq6cH/tEnaR1sBIMCge9 l7wgd2Gjt65m040CXgcrHgRJ2q8YAfiKXOy9D7l9WdPVf798VRdvcNF3OxBEhfPTrtvk djxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MLZIcbRktslCSz4srfUbi0IN1LzLt+OJiKpPEnw+ErM=; b=CHykMzomkaNell2Id1Piitwo34WttfpLDEiM9xKLnCb1itmGniuz6TWcYA89t6PrIl W9YQ1eQk4e0P3DD+8HYoPk/GGa9qTJ1HySC7nJrnMVZRPA9+PHh5A1YjIJf7lYFtWQtS JmiJMYQdg/DLmPJDvLZhp+asOtfcBUOl/isH8O8WlygKnbpEUBQ5ynsIvY+7/tEQPo9K fdEH4mTDYJB6W0uzvV70QeNmVqFq+6Ju2UDa0OrbEyyY4mUVXDO7FpgD3x0xeqSREz6A gZqU9P51nPiX7NZqAe/JGiatLnUwe9Mf2woYJLnan9T5RLOkJ2feeEXepYwk6fux6oJP N2Ew== X-Gm-Message-State: AOAM532aOqLUBd4ZIChLlwY+Rwj5GApKxxVD4K1nYNJkEWY2povnUcSQ AoNYFW0XQXSbY1EaZh0fkXDNacPIk+PCYKMKE54YTXTE4A6Yeg== X-Google-Smtp-Source: ABdhPJwbxVtzxtFS/i47rXNdJ3x9NbXC/6Pzr9EQTIhdjRCrMYpfT1WjqpmsKmnY+cME9q4eWD/Nks34kZQ6ct1EudM= X-Received: by 2002:a25:b049:: with SMTP id e9mr10751676ybj.111.1618375756680; Tue, 13 Apr 2021 21:49:16 -0700 (PDT) MIME-Version: 1.0 From: Jing-Wei Su Date: Wed, 14 Apr 2021 12:49:05 +0800 Message-ID: Subject: Live migration using a specified networking adapter To: qemu-devel@nongnu.org Content-Type: multipart/alternative; boundary="00000000000017110d05bfe778eb" Received-SPF: pass client-ip=2607:f8b0:4864:20::b29; envelope-from=jwsu1986@gmail.com; helo=mail-yb1-xb29.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --00000000000017110d05bfe778eb Content-Type: text/plain; charset="UTF-8" Hello experts, I have a network topology like this diagram. When start live migration moving a VM from Host A to B, the migration process uses either 10GbE (10.0.0.1) or 1 GbE (10.0.0.2), but the user cannot specify the source NIC by current migrate command. To solve the problem, my rough idea is to add a source ipv4:port argument, the migration command seems like ``` migrate -b tcp:10.0.0.1:4444 -d tcp:10.0.0.3:4444. ``` Is it an available solution? Or, is there any concern and sugesstion? Besides the idea, is there any good way to this issue? +-----------------------------------------------------+ | 10GbE switch | +-----------------------------------------------------+ | | | | | | | | | 10.0.0.1 | 10.0.0.2| 10.0.0.3| +-+----------+-+--------+-+ +--+----------+---------+ | |10GbE NIC | |1GbE NIC|| | |10GbE NIE | | | +----------+ +--------+| | +----------+ | | | | | | +---------+ | | | | | VM | | | | | +---------+ | | | +-------------------------+ +-----------------------+ Host A Host B Thank you. Regards, Derek. --00000000000017110d05bfe778eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello experts,

I have a network topology like this diagram.
When start live migration moving a VM from Host A to B,
the migration process uses either 10G=
bE (10.0.0.1) or 1 GbE (10.0.0.2),
but the user cannot specify the source NIC by current migrate command.

To solve the problem, my rough idea is to add a source ipv4:port a=
rgument,
the migration command see=
ms like
```
migrate -b tcp:10.0.0.1=
:4444 -d tcp:10.0.0.3:4444.
```

Is it an available s=
olution? Or, is there any concern and sugesstion?
Besides the idea, is there any good way to this issue?
                                      =
                                                                           =
                   =20
   +-----------------------------------------------------+                 =
                                                       =20
   |                     10GbE switch                    |                 =
                                                       =20
   +-----------------------------------------------------+                 =
                                                       =20
           |            |                |                                 =
                                                          =20
           |            |                |                                 =
                                                          =20
           |            |                |                                 =
                                                          =20
  10.0.0.1 |    10.0.0.2|        10.0.0.3|                                 =
                                                          =20
   +-+----------+-+--------+-+  +--+----------+---------+                  =
                                                      =20
   |  |10GbE NIC | |1GbE NIC||  |  |10GbE NIE |         |                  =
                                                      =20
   |  +----------+ +--------+|  |  +----------+         |                  =
                                                      =20
   |                         |  |                       |                  =
                                                      =20
   |      +---------+        |  |                       |                  =
                                                      =20
   |      |   VM    |        |  |                       |                  =
                                                      =20
   |      +---------+        |  |                       |                  =
                                                      =20
   +-------------------------+  +-----------------------+                  =
                                                      =20
           Host A                         Host B                           =
                                                          =20
                                                                           =
                                                          =20
Thank you.

Regards,
Derek.
--00000000000017110d05bfe778eb--