qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: qemu-devel@nongnu.org, qemu-arm@nongnu.org
Subject: Question about two option formats for netdev
Date: Wed, 17 Mar 2021 03:33:55 +0900	[thread overview]
Message-ID: <CAK7LNASNqCcTLE+hJqpohbh6_TLGZxZ0o8dm14BQSVtrCVCDDQ@mail.gmail.com> (raw)

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


             reply	other threads:[~2021-03-16 18:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 18:33 Masahiro Yamada [this message]
2021-03-17  3:51 ` Question about two option formats for netdev Jason Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK7LNASNqCcTLE+hJqpohbh6_TLGZxZ0o8dm14BQSVtrCVCDDQ@mail.gmail.com \
    --to=masahiroy@kernel.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).