qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Thomas Huth <thuth@redhat.com>,
	qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: Re: Question about two option formats for netdev
Date: Tue, 16 Mar 2021 23:51:49 -0400 (EDT)	[thread overview]
Message-ID: <1545258633.64106634.1615953109176.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAK7LNASNqCcTLE+hJqpohbh6_TLGZxZ0o8dm14BQSVtrCVCDDQ@mail.gmail.com>



----- 原始邮件 -----
> 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
> 
> 



      reply	other threads:[~2021-03-17  3:53 UTC|newest]

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

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=1545258633.64106634.1615953109176.JavaMail.zimbra@redhat.com \
    --to=jasowang@redhat.com \
    --cc=masahiroy@kernel.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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).