[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips
From: |
Tommy Jin |
Subject: |
Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board. |
Date: |
Wed, 3 Apr 2019 04:52:13 +0000 |
Hi Peter,
That command line option doesn't work for boston, although I didn't get any
obvious error, no Ethernet card appears either.
Where can I get that arm image/command which can work well for you with "
-netdev user,id=mynet -device virtio-net-pci,netdev=mynet" ?
Anyway, if that command line option works for arm, I'm going to investigate the
reason.
Best regards,
Tommy
________________________________
From: Peter Maydell <address@hidden>
Sent: Tuesday, April 2, 2019 3:35:19 PM
To: Tommy Jin
Cc: Aleksandar Markovic; address@hidden; address@hidden
Subject: Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for
mips boston board.
On Tue, 2 Apr 2019 at 14:24, Tommy Jin <address@hidden> wrote:
> For the option2, I think specify the network model in command line is
> not enough, per my understanding, we still need to create the device
> using API like pci_create && qdev_set_nic_properties && qdev_init_nofail,
> otherwise we'll get error prompts like "requested NIC (anonymous, model
> virtio) was not created (not supported by this machine?)", currently I
> just add these pieces of code in /hw/mips/boston.c, Do you call these
> pieces of code board code and what's your suggestion?
If the boston board has PCI support and it is implemented correctly
then you should be able to create a virtio network setup with
command line options like
-netdev user,id=mynet -device virtio-net-pci,netdev=mynet
(or any other netdev backend, eg tun/tap).
I don't have a boston image/command line to test that with,
but it works for arm boards and should be the same for any
pci capable board model.
thanks
-- PMM
- [Qemu-devel] Adds virtio_net as the default netcard for mips boston board, Tommy Jin, 2019/04/01
- [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Tommy Jin, 2019/04/01
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Peter Maydell, 2019/04/01
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Aleksandar Markovic, 2019/04/01
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Tommy Jin, 2019/04/01
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Peter Maydell, 2019/04/01
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Tommy Jin, 2019/04/02
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Peter Maydell, 2019/04/02
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board.,
Tommy Jin <=
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Peter Maydell, 2019/04/03
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Aleksandar Markovic, 2019/04/01
- Re: [Qemu-devel] [PATCH] Adds virtio_net as the default netcard for mips boston board., Tommy Jin, 2019/04/01