git: d4a0e749cc66 - main - devd.conf(5): call hyperv_vfattach in a Hyper-V guest only

From: Eugene Grosbein <eugen_at_FreeBSD.org>
Date: Tue, 22 Jul 2025 10:10:01 UTC
The branch main has been updated by eugen:

URL: https://cgit.FreeBSD.org/src/commit/?id=d4a0e749cc66cd5d019d8fb8f43427109aef4c9f

commit d4a0e749cc66cd5d019d8fb8f43427109aef4c9f
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2025-07-22 10:06:24 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2025-07-22 10:06:24 +0000

    devd.conf(5): call hyperv_vfattach in a Hyper-V guest only
    
    Limit calls to /usr/libexec/hyperv/hyperv_vfattach to Hyper-V guests.
    
    PR:             287873
    MFC after:      3 days
---
 sbin/devd/hyperv.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbin/devd/hyperv.conf b/sbin/devd/hyperv.conf
index 13695a0c75b6..70108ac36e54 100644
--- a/sbin/devd/hyperv.conf
+++ b/sbin/devd/hyperv.conf
@@ -103,5 +103,6 @@ notify 10 {
 notify 10 {
 	match "system"		"ETHERNET";
 	match "type"		"IFATTACH";
+	match "vm_guest"	"hv";
 	action "/usr/libexec/hyperv/hyperv_vfattach $subsystem 0";
 };