qemu-devel
[Top][All Lists]
Advanced

[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: Tue, 2 Apr 2019 07:24:04 +0000

Hi Peter,

I'm glad to hear these qemu general rules from you.
Here you raised two options:

  1.  Using a tool like libvirt to add a pluggable network card
  2.  Specify the network card on the command line

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?

You mentioned "optional pluggable cards should just be created without any 
board code required if the user specifies them on the command line."
I don't quite understand what you mean, if I don't want to use option1, how to 
create pluggable cards without any board code?

Best regards,
Tommy
________________________________
From: Peter Maydell <address@hidden>
Sent: Tuesday, April 2, 2019 10:37 AM
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 09:29, Tommy Jin <address@hidden> wrote:
> If always creating virtio-net-pci device is not a good idea, is it
> feasible to make virtio-net-pci as an option for boston without
> using libvirt?

It's always an option, just specify it on the command line.

> Actually, Botson board can have an Intel GBE network card in it,
> compared to mips malta, it also has a pcnet network card created
> in its machine, is it acceptable to create a pch_gbe network card
> if the user specify like "model=pch_gbe"?

Again, optional pluggable cards should just be created without
any board code required if the user specifies them on the command line.

In general, the QEMU command line does not aim for "short,
do what the user probably wants without them specifying
many options". It aims for "be flexible, allow the user
to configure what they want". The user-friendly interface
is supposed to be the next level up (libvirt, etc). This does
mean that command lines can get quite long in some cases. That's
unfortunate but I don't think we should be putting workarounds
for that in individual board models.

thanks
-- PMM

Attachment: 0001-adds-a-virtio_net-netcard-for-mips-boston-board.patch
Description: 0001-adds-a-virtio_net-netcard-for-mips-boston-board.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]