From 10108cb6737ba39ad0289e84255f039a8258a6cc Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Mon, 17 Feb 2020 11:08:50 +0000 Subject: Partially revert VNET change and expand VNET structure. Revert parts of r353274 replacing vnet_state with a shutdown flag. Not having the state flag for the current SI_SUB_* makes it harder to debug kernel or module panics related to VNET bringup or teardown. Not having the state also does not allow us to check for other dependency levels between components, e.g. for moving interfaces. Expand the VNET structure with the new boolean flag indicating that we are doing a shutdown of a given vnet and update the vnet magic cookie for the change. Update libkvm to compile with a bool in the kernel struct. Bump __FreeBSD_version for (external) module builds to more easily detect the change. Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D23097 --- lib/libkvm/kvm_vnet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libkvm/kvm_vnet.c') diff --git a/lib/libkvm/kvm_vnet.c b/lib/libkvm/kvm_vnet.c index eac9584cc730..79493bc5ffa8 100644 --- a/lib/libkvm/kvm_vnet.c +++ b/lib/libkvm/kvm_vnet.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include -- cgit v1.2.3