From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Cc: Puck Meerburg <puck@puckipedia.com>
Subject: Re: [PATCH crosvm] crosvm: support setting guest MAC from tap-fd
Date: Fri, 9 Apr 2021 22:26:07 +0000 [thread overview]
Message-ID: <20210409222607.p427pp4b7axylnu7@x220.qyliss.net> (raw)
In-Reply-To: <20210409222026.13886-1-hi@alyssa.is>
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
On Fri, Apr 09, 2021 at 10:20:26PM +0000, Alyssa Ross wrote:
> This adds a mac= option to crosvm's --tap-fd option. The virtio-net
> driver in the guest will read the desired MAC from virtio
> configuration space.
>
> See the documentation for VIRTIO_NET_F_MAC in the Virtio spec[1].
>
> [1]: https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.html
Oh, I forgot to add:
Thanks-to: Puck Meerburg <puck@puckipedia.com>
> ---
> This will be important for host-based networking in Spectrum.
>
> devices/src/virtio/net.rs | 31 ++++++++++++++++---
> src/crosvm.rs | 8 +++--
> src/linux.rs | 20 +++++++-----
> src/main.rs | 64 ++++++++++++++++++++++++++++++---------
> 4 files changed, 96 insertions(+), 27 deletions(-)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-04-09 22:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-09 22:20 Alyssa Ross
2021-04-09 22:26 ` Alyssa Ross [this message]
2021-04-14 18:55 ` Cole Helbling
2021-04-14 23:46 ` Alyssa Ross
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=20210409222607.p427pp4b7axylnu7@x220.qyliss.net \
--to=hi@alyssa.is \
--cc=devel@spectrum-os.org \
--cc=puck@puckipedia.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.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
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).