[ovs-dev] [PATCH 0/2] vhost-user: Add the ability to control ownership/permissions
Aaron Conole
aconole at redhat.com
Mon May 16 17:12:18 UTC 2016
Ping for this series?
Aaron Conole <aconole at redhat.com> writes:
> Currently, when using Open vSwitch with DPDK and qemu guests, the recommended
> method for joining the guests is via the dpdkvhostuser interface. This
> interface uses Unix Domain sockets to communicate. When these sockets are
> created, they inherit the permissions and ownership from the vswitchd process.
> This can lead to an undesirable state where the QEMU process cannot use the
> socket file until manual intervention is performed (via `chown` and/or `chmod`
> calls).
>
> This patchset gives the ability to set the permissions and ownership of all
> dpdkvhostuser sockets from the database, avoiding the manual intervention
> required to connect QEMU and OVS via DPDK.
>
> The first patch adds chmod and chown calls to lib, with unit tests. The
> second patch hooks those calls into the netdev_dpdk_vhost_user_construct
> function, after the socket is created.
>
> Aaron Conole (2):
> chutil: introduce a new change-utils lib
> netdev-dpdk: Support user-defined socket attribs
>
> INSTALL.DPDK.md | 7 +
> NEWS | 2 +
> configure.ac | 2 +-
> lib/automake.mk | 2 +
> lib/chutil-unix.c | 360 +++++++++++++++++++++++++++++++++++++++++++++++++++
> lib/chutil.h | 32 +++++
> lib/daemon-unix.c | 141 +-------------------
> lib/netdev-dpdk.c | 26 +++-
> lib/util.c | 17 +++
> lib/util.h | 2 +
> tests/automake.mk | 2 +
> tests/library.at | 5 +
> tests/test-chutil.c | 228 ++++++++++++++++++++++++++++++++
> vswitchd/vswitch.xml | 23 ++++
> 14 files changed, 709 insertions(+), 140 deletions(-)
> create mode 100644 lib/chutil-unix.c
> create mode 100644 lib/chutil.h
> create mode 100644 tests/test-chutil.c
More information about the dev
mailing list