* Question about two option formats for netdev
@ 2021-03-16 18:33 Masahiro Yamada
2021-03-17 3:51 ` Jason Wang
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2021-03-16 18:33 UTC (permalink / raw)
To: qemu-devel, qemu-arm
Hi.
I have a question about adding
a network device.
qemu-system-arm -machine vexpress-a9 \
-net nic,model=lan9118 -net user ...
works for me, but 'man qemu-system-arm'
says this is "Legacy option".
Is there any new (or recommended) form
to use a lan9118 device?
If I understand correctly,
-netdev user,id=<id> \
-device <driver>,netdev=<id>
is the new option form.
For example, I can use the new form
for virtio-net-device.
But, it does not work for lan9118,
and actually I cannot see lan9118 in
"qemu-system-arm -machine vexpress-a9 -device help".
So, the two options are different worlds,
we need to choose appropriate form
to use a particular device, correct?
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about two option formats for netdev
2021-03-16 18:33 Question about two option formats for netdev Masahiro Yamada
@ 2021-03-17 3:51 ` Jason Wang
0 siblings, 0 replies; 2+ messages in thread
From: Jason Wang @ 2021-03-17 3:51 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: Thomas Huth, qemu-arm, qemu-devel
----- 原始邮件 -----
> Hi.
>
> I have a question about adding
> a network device.
>
>
> qemu-system-arm -machine vexpress-a9 \
> -net nic,model=lan9118 -net user ...
>
> works for me, but 'man qemu-system-arm'
> says this is "Legacy option".
>
>
> Is there any new (or recommended) form
> to use a lan9118 device?
Have you tried to use the "-nic" option[1]?
[1] https://www.qemu.org/2018/05/31/nic-parameter/
Thanks
>
>
> If I understand correctly,
>
> -netdev user,id=<id> \
> -device <driver>,netdev=<id>
>
> is the new option form.
>
> For example, I can use the new form
> for virtio-net-device.
>
>
> But, it does not work for lan9118,
> and actually I cannot see lan9118 in
> "qemu-system-arm -machine vexpress-a9 -device help".
>
>
> So, the two options are different worlds,
> we need to choose appropriate form
> to use a particular device, correct?
>
>
>
>
> --
> Best Regards
> Masahiro Yamada
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-17 3:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 18:33 Question about two option formats for netdev Masahiro Yamada
2021-03-17 3:51 ` Jason Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).