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

RE: Some questions about virtio-net on Xen x86

  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jiamei Xie <Jiamei.Xie@xxxxxxx>
  • Date: Fri, 20 Aug 2021 02:37:35 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hAvuNKxVrhPRT3eSRcdXwaUSi1medwsmmT+OuBT8+6s=; b=nIAUFJqNlbES6pbx1y0fjE0geLPxF3x8FaAqtwF49vku/+RnnEGbYiFtnDB20Xg2XVIqD0sxxAwZhrFCqEwgIL9TsrgYFnewIikogIggILeBmoyNoG+2SrmlpfNMNhZHjKGDIweioy2AuTV/OLtY3P3eMZD9ImBAJnMDMrBiVeiGB/K5puUjzZg9x9UI67ry21yENHv8kIyxK9MCgN3gJaLQ/si/h8fXKtFpIt1czjQWMxquKHZt5soH8k03Csd/7fInQBobq+MuJkeCJI6d2B87pXJu0OayOI9Bhq0gQXWhald0Y/RauNCdSsoOtMjg31PP3RVV7GRaC5dJhd9Izw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DFCSRBNM2CsXOHrk3hhZBg59hMWJ1mba4L5wbxEgXiVmIT1Pyt+msPGNfXJ9JW+eDPmmEPYPSSF+eOo0fYQNf9SI1FRRdp5k705i8kj/bTsAOnJFqFiqcBlN/1AFRTljmDyiWEwwhQy5nwCkJZ6DLkagtnAicGM4AWRp+Dl3eGnK4DPz7AzrT4kDkedQbPT1e89IgrInL8Hc1/u/ztAC5qk4s8aC5praeQVYURe7IPWs8x+DSoXa4KxJ2iCgETUJ/K7TbQm6QRyT0kpxl21Ngh8sbxOhmPqlOapzTvBxX+vVgWFdqyhMinzrg2Ccje8Q7FbV3madzCnk4PWEcWzLWg==
  • Authentication-results-original: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, nd <nd@xxxxxxx>
  • Delivery-date: Fri, 20 Aug 2021 02:37:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AdeU5cKJ2Iuh63HAShmSu85qvWY46gAHv3OAABlQA0A=
  • Thread-topic: Some questions about virtio-net on Xen x86

Hi Anthony,

-----Original Message-----
From: Anthony PERARD <anthony.perard@xxxxxxxxxx> 
Sent: 2021年8月19日 22:16
To: Jiamei Xie <Jiamei.Xie@xxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; Wei Chen <Wei.Chen@xxxxxxx>; nd <nd@xxxxxxx>
Subject: Re: Some questions about virtio-net on Xen x86

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

Your answer helped me a lot, thank you very much. After adding 
'xen_emul_unplug=never', virtio-net can work normally.
I can see the virtio net device with lspci command.
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01)
00:03.0 SCSI storage controller: Broadcom / LSI 53c895a
00:04.0 VGA compatible controller: Cirrus Logic GD 5446
00:05.0 Ethernet controller: Red Hat, Inc. Virtio network device

Best wishes
Jiamei Xie



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.