summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-09-25 20:34:13 +0000
committerdelphij <delphij@FreeBSD.org>2014-09-25 20:34:13 +0000
commit8e573ba7c9639e710661dce67b9171d569c8772d (patch)
tree4de670a3ea447f4c4dbc2993ebec26af3478058f /etc
parentbb5379e9a2f748abed4de69c61b20523c4d77ac7 (diff)
downloadFreeBSD-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')
-rw-r--r--etc/devd/Makefile4
-rw-r--r--etc/devd/hyperv.conf19
-rw-r--r--etc/mtree/BSD.usr.dist2
-rw-r--r--etc/mtree/BSD.var.dist2
4 files changed, 27 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";
+};
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
index 2c40853..a310e88 100644
--- a/etc/mtree/BSD.usr.dist
+++ b/etc/mtree/BSD.usr.dist
@@ -108,6 +108,8 @@
..
bsdinstall
..
+ hyperv
+ ..
lpr
ru
..
diff --git a/etc/mtree/BSD.var.dist b/etc/mtree/BSD.var.dist
index ba02aba..2403814 100644
--- a/etc/mtree/BSD.var.dist
+++ b/etc/mtree/BSD.var.dist
@@ -42,6 +42,8 @@
..
freebsd-update mode=0700
..
+ hyperv mode=0700
+ ..
ipf mode=0700
..
pkg
OpenPOWER on IntegriCloud