Received: from list by lists.gnu.org with archive (Exim 4.71) id 1gPaex-00045r-IY for mharc-qemu-riscv@gnu.org; Wed, 21 Nov 2018 17:07:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPaev-000422-0P for qemu-riscv@nongnu.org; Wed, 21 Nov 2018 17:07:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPaer-0001k5-0c for qemu-riscv@nongnu.org; Wed, 21 Nov 2018 17:07:44 -0500 Received: from ale.deltatee.com ([207.54.116.67]:43760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPaeq-0001iW-Dh; Wed, 21 Nov 2018 17:07:40 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1gPaej-00012z-OD; Wed, 21 Nov 2018 15:07:34 -0700 To: Alistair Francis Cc: Alistair Francis , "qemu-devel@nongnu.org Developers" , qemu-riscv@nongnu.org, Guenter Roeck , Andrea Bolognani References: <44e7883bd17c6867f0ac488bdab6c880b2420a9b.1542819633.git.alistair.francis@wdc.com> <0ddaeccd-94fd-22a8-f5e0-91fbafdf1761@deltatee.com> <0fac09ca-12d5-1462-4456-66646f168ab5@deltatee.com> From: Logan Gunthorpe Message-ID: <17256c59-cf5e-2247-985a-84c26f9d64a9@deltatee.com> Date: Wed, 21 Nov 2018 15:07:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: abologna@redhat.com, linux@roeck-us.net, qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Alistair.Francis@wdc.com, alistair23@gmail.com X-SA-Exim-Mail-From: logang@deltatee.com X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.54.116.67 Subject: Re: [Qemu-riscv] [PATCH for-3.2 v7 6/6] hw/riscv/virt: Connect a VirtIO net PCIe device X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 22:07:46 -0000 On 2018-11-21 2:55 p.m., Alistair Francis wrote: > It is required for networking for PCIe devices. What PCIe device works > for you without this patch? Can you tell me your command line > arguments. I can run it without that patch using a e1000e device and it works just fine. Command line: $QEMU -s -nographic -machine virt -m 2G -kernel $BBL \ -object rng-random,filename=/dev/urandom,id=rng0 \ -append "console=hvc0 ro root=/dev/vda" \ -device e1000e,netdev=net0 \ -netdev user,id=net0 \ -device virtio-rng-device,rng=rng0 \ -device virtio-blk-device,drive=hd0 \ -drive file=rootfs.img,format=raw,id=hd0 \ -device nvme,drive=nvme0,serial=nvme0 \ -drive file=nvme0.qcow2,if=none,id=nvme0 -- lspcirv-hfu-01:~# 00:00.0 Host bridge: Red Hat, Inc. QEMU PCIe Host bridge 00:01.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 00:02.0 Non-Volatile memory controller: Intel Corporation QEMU NVM Express Controller (rev 02) root@rv-hfu-01:~# QEMU 3.0.92 monitor - type 'help' for more information (qemu) info pci Bus 0, device 0, function 0: Host bridge: PCI device 1b36:0008 PCI subsystem 1af4:1100 id "" Bus 0, device 1, function 0: Ethernet controller: PCI device 8086:10d3 PCI subsystem 8086:0000 IRQ 11. BAR0: 32 bit memory at 0x40040000 [0x4005ffff]. BAR1: 32 bit memory at 0x40060000 [0x4007ffff]. BAR2: I/O at 0xffffffffffffffff [0x001e]. BAR3: 32 bit memory at 0x40080000 [0x40083fff]. BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe]. id "" Bus 0, device 2, function 0: Class 0264: PCI device 8086:5845 PCI subsystem 1af4:1100 IRQ 9. BAR0: 64 bit memory at 0x40084000 [0x40085fff]. id "" (qemu)