From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: lkvm issue: --network mode=user,trans=mmio doesn't work Date: Sat, 12 Oct 2013 10:01:42 -0400 Message-ID: <52595646.5060301@oracle.com> References: <52591B1C.1080503@iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE To: Pekka Enberg , =?ISO-8859-1?Q?P=E9ter_Szab=F3?= , kvm@vger.kernel.org, Asias He , Cyrill Gorcunov Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:17819 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799Ab3JLOCX (ORCPT ); Sat, 12 Oct 2013 10:02:23 -0400 In-Reply-To: <52591B1C.1080503@iki.fi> Sender: kvm-owner@vger.kernel.org List-ID: On 10/12/2013 05:49 AM, Pekka Enberg wrote: > Hi Peter, > > (Adding bunch of CCs.) > > On 10/12/13 11:05 AM, P=E9ter Szab=F3 wrote: >> First, thank you very much for writing lkvm, it's awesome, and very >> easy to set up. >> >> If sending an e-mail to you is not the right way to report lkvm >> issues, please tell me how I should do it. > > Sure, you can report problems to me and I'll do my best to > try to get them sorted out. > >> I'm using afdf92030c7c43b0f9b32b7edbe07ac3b13780f1 from >> git://github.com/penberg/linux-kvm.git and Linux kernel 3.2.51: >> >> config-3.2.51 (42 KB) >> https://mega.co.nz/#!hgxB1TDJ!SdbX-jp_yr8E6EUJl7t7Tzrh1p4qKxkTHieoss= 8yu_Y >> bzImage-3.2.51 (2.0 MB) >> https://mega.co.nz/#!5lBVmDZL!WpPRWA7ZflevBIPPNGNM_FkkY-ErBNQMoEbw0X= ePi5I >> >> Config: >> >> $ grep -E 'VIRTIO|MMIO' .config >> CONFIG_NET_9P_VIRTIO=3Dy >> CONFIG_VIRTIO_BLK=3Dy >> CONFIG_VIRTIO_NET=3Dy >> CONFIG_VIRTIO_CONSOLE=3Dy >> CONFIG_HW_RANDOM_VIRTIO=3Dy >> CONFIG_VIRTIO=3Dy >> CONFIG_VIRTIO_RING=3Dy >> CONFIG_VIRTIO_PCI=3Dy >> CONFIG_VIRTIO_BALLOON=3Dy >> CONFIG_VIRTIO_MMIO=3Dy >> CONFIG_HAVE_MMIOTRACE_SUPPORT=3Dy >> >> I'm running `lkvm run --network mode=3Duser,trans=3Dmmio', and it fa= ils to >> create the eth0 device (`cat /proc/net/dev' doesn't show the device)= =2E >> With `lkvm run --network mode=3Duser' everything just works. >> >> I have also tried kernels 3.0.99, 3.4.65 an 3.10.15, but they seem t= o >> fail the same way. >> >> Am I using it correctly? > > Asias, Sasha, is mmio transport supported by virtio networking? It should be. The ARM folks use it all the time (I suppose). Did you properly define the network device within the guest? MMIO doesn= 't have automatic detection=20 like PCI does. Thanks, Sasha