From: Stefan Hajnoczi <stefanha@redhat.com>
To: Jorgen Hansen <jhansen@vmware.com>
Cc: netdev@vger.kernel.org, imbrenda@linux.vnet.ibm.com
Subject: AF_VSOCK network namespace support
Date: Wed, 23 Nov 2016 14:55:35 +0000 [thread overview]
Message-ID: <20161123145535.GA16465@stefanha-x1.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1323 bytes --]
Hi Jorgen,
There are two use cases where network namespace support in AF_VSOCK
could be useful:
1. Claudio Imbrenda pointed out that a machine cannot act as both host
and guest at the same time. This is necessary for nested
virtualization. Currently only one transport (the host side or the
guest side) can be registered at a time.
2. Users may wish to isolate the AF_VSOCK address namespace so that two
VMs have completely independent CID and ports (they could even use
the same CID and ports because they're in separate namespaces). This
ensures that a host service visible to VM1 is not automatically
visible to VM2.
Network namespaces could solve both problems.
A drawback of namespaces is that existing configurations using network
namespaces for IPv4/6 or other purposes break if AF_VSOCK gains network
namespace support. This is not a big problem for virtio-vsock if we
implement namespace support soon since there are no existing users.
I wonder how other address families have solved this transition to
network namespaces. It's almost like we need fine-grained namespaces
instead of a blanket network namespace that applies across all address
families...
I'm playing around with the code now but wanted to get your thoughts in
case you've already considered these problems.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next reply other threads:[~2016-11-23 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 14:55 Stefan Hajnoczi [this message]
2016-11-28 15:24 ` AF_VSOCK network namespace support Jorgen S. Hansen
2016-11-29 15:09 ` Stefan Hajnoczi
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=20161123145535.GA16465@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=imbrenda@linux.vnet.ibm.com \
--cc=jhansen@vmware.com \
--cc=netdev@vger.kernel.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