diff options
author | delphij <delphij@FreeBSD.org> | 2014-09-30 17:54:57 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-09-30 17:54:57 +0000 |
commit | ee5d2040514496e028c74f870e0fe37ff731eea6 (patch) | |
tree | 3d5fc0f492a59bc673ae0bd7830fcb5f3be62b51 /etc/devd | |
parent | d2b170eeddec67d497373ad60908e5094d294fe1 (diff) | |
download | FreeBSD-src-ee5d2040514496e028c74f870e0fe37ff731eea6.zip FreeBSD-src-ee5d2040514496e028c74f870e0fe37ff731eea6.tar.gz |
MFC r271493,271688-271689,271696,271854,272139-272143:
Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.
While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.
The HyperV utilities are only built for i386 and amd64 targets.
Approved by: re (gjb)
Diffstat (limited to 'etc/devd')
-rw-r--r-- | etc/devd/Makefile | 6 | ||||
-rw-r--r-- | etc/devd/hyperv.conf | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/etc/devd/Makefile b/etc/devd/Makefile index 433436b..5b26dcc 100644 --- a/etc/devd/Makefile +++ b/etc/devd/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + FILES= uath.conf usb.conf .if ${MACHINE} == "powerpc" @@ -10,6 +12,10 @@ FILES+= apple.conf FILES+= asus.conf .endif +.if ${MK_HYPERV} != "no" +FILES+= hyperv.conf +.endif + NO_OBJ= FILESDIR= /etc/devd FILESMODE= 644 diff --git a/etc/devd/hyperv.conf b/etc/devd/hyperv.conf new file mode 100644 index 0000000..bed7383 --- /dev/null +++ b/etc/devd/hyperv.conf @@ -0,0 +1,19 @@ +# $FreeBSD$ +# +# Hyper-V specific events + +notify 10 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "CREATE"; + match "cdev" "hv_kvp_dev"; + action "/usr/sbin/hv_kvp_daemon"; +}; + +notify 10 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "DESTROY"; + match "cdev" "hv_kvp_dev"; + action "pkill -x hv_kvp_daemon"; +}; |