diff options
author | delphij <delphij@FreeBSD.org> | 2014-09-25 20:34:13 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-09-25 20:34:13 +0000 |
commit | 8e573ba7c9639e710661dce67b9171d569c8772d (patch) | |
tree | 4de670a3ea447f4c4dbc2993ebec26af3478058f /etc/devd | |
parent | bb5379e9a2f748abed4de69c61b20523c4d77ac7 (diff) | |
download | FreeBSD-src-8e573ba7c9639e710661dce67b9171d569c8772d.zip FreeBSD-src-8e573ba7c9639e710661dce67b9171d569c8772d.tar.gz |
MFC r271493,271688,271689,271696,271854:
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 | 4 | ||||
-rw-r--r-- | etc/devd/hyperv.conf | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/etc/devd/Makefile b/etc/devd/Makefile index 433436b..50bc457 100644 --- a/etc/devd/Makefile +++ b/etc/devd/Makefile @@ -10,6 +10,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"; +}; |