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=-6.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 46C3DC4320A for ; Thu, 19 Aug 2021 14:16:30 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 0F81161159 for ; Thu, 19 Aug 2021 14:16:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0F81161159 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.168852.308337 (Exim 4.92) (envelope-from ) id 1mGiq6-0007Ls-RP; Thu, 19 Aug 2021 14:16:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 168852.308337; Thu, 19 Aug 2021 14:16:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mGiq6-0007Ll-MW; Thu, 19 Aug 2021 14:16:14 +0000 Received: by outflank-mailman (input) for mailman id 168852; Thu, 19 Aug 2021 14:16:12 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mGiq4-0007LZ-Kq for xen-devel@lists.xenproject.org; Thu, 19 Aug 2021 14:16:12 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 00ed209c-00f8-11ec-a622-12813bfff9fa; Thu, 19 Aug 2021 14:16:11 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 00ed209c-00f8-11ec-a622-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1629382571; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=02KIBDVzYYnGejhT3Pa+neuNp7f/+MnZfhjFTFx5J+A=; b=Fm+Unvm1UXfLfY/2sI5fafVpjdU7iCGBaDxPvbx9/XhpiO9doViWd5Xm 0rMmfP3uCQbfohFtSSMvvRaPOquhW/6SWPvskn2jIdrvAclj6YtZxxEqU fK4rgxW2mF7MtdwykqoRSlxGmdVxAKAP/KXCJMvSQiotktXnTE2lrQi/K g=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: 1nuZs55cE1zFjPE1nrB4OR/O/th4N64MRnf7aC6Zgldhzh0fgFZ8Z10iq6iLaTrK3hlchsSFtC yvo407OQAeUJgFwikh+c0wFdljtq24x12ZO4o5UJvLjlhHAH0KQ1rc84cYVe74Nj7S9A35Ya2U d/Y3ZS+XdUww5wVROCG05FXdfhI7Fa9ZSXvk4ZmgDJLjiJh+uIayNDvxz5/k9vnymNU53AzV0u C1Kk+/kclAx+9CjByVHA/EkqKYf/o7xSv30J39MR9hCbpo6FqSKesb6vMudFXIiNPDVK+YAswa w9ctSz/2LXYri6OwPyF9xIbW X-SBRS: 5.1 X-MesageID: 50822205 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:h9wRPa52f8CdsaffIAPXwMrXdLJyesId70hD6qhwISY1TiW9rb HIoB17726RtN9/Yh0dcLy7V5VoBEmsk6KdgrNhWItKPjOW21dARbsKheCJrgEIWReOlNK1vZ 0QCpSWY+eRMbEVt6jH3DU= X-IronPort-AV: E=Sophos;i="5.84,334,1620705600"; d="scan'208";a="50822205" Date: Thu, 19 Aug 2021 15:16:07 +0100 From: Anthony PERARD To: Jiamei Xie CC: "xen-devel@lists.xenproject.org" , "Wei Chen" , nd Subject: Re: Some questions about virtio-net on Xen x86 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: On Thu, Aug 19, 2021 at 10:38:49AM +0000, Jiamei Xie wrote: > Hi all, > I tried to run virtio-net on X86 machine according to the Wiki page https://wiki.xenproject.org/wiki/Virtio_On_Xen. > And I Encountered some confusing problems. > > It seems eth0 is not virtio-net, properly a pv-net. I am really confused. > > I have the following questions: > 1. Does Xen x86 still support virtio-net based on QEMU backend? Well, we don't test it, and the libxl toolstack doesn't really help getting virtio devices. > 2. If yes, is there anything wrong in my guest config file? The wiki state that you should add 'xen_emul_unplug=never' to the guest kernel's command line. (That would be "extra" in your guest.cfg.) I think that will prevent the virtio-net device from been unplug, and so you will see the virtio-net device in the guest. But since libxl create Xen PV device anyway, you'll still have the Xen PV NIC, so two NICs with the same MAC. I hope that help, -- Anthony PERARD