]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new bhyve network backend that allow to connect the VM to the netgraph(4) network.
authorafedorov <afedorov@FreeBSD.org>
Tue, 12 May 2020 11:18:14 +0000 (11:18 +0000)
committerafedorov <afedorov@FreeBSD.org>
Tue, 12 May 2020 11:18:14 +0000 (11:18 +0000)
commit21d11e288e58c1db23560e980d29deb3d308858d
treee60bb8ca5289b8e3e646adecc30fc2245f3b61f5
parent4f1cde618c237c8cc478057e8267d1704021efb7
Add a new bhyve network backend that allow to connect the VM to the netgraph(4) network.
The backend uses the socket API with the PF_NETGRAPH protocol family, which is provided by the ng_socket(4).

To use the new backend, provide the following bhyve option:
-s X:Y:Z,[virtio-net|e1000],netgraph,socket=[ng_socket name],path=[destination node],hook=[our socket src hook],peerhook=[dst node hook]

Reviewed by: vmaffione, lutz_donnerhacke.de
Approved by: vmaffione (mentor)
Sponsored by: vstack.com
Differential Revision: https://reviews.freebsd.org/D24620
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/net_backends.c