[Bug 287873] bad performance of devd(8) in stable/14 due to its hyperv.conf

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Jun 2025 13:12:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287873

--- Comment #2 from Eugene Grosbein <eugen@freebsd.org> ---
Created attachment 261692
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261692&action=edit
Add new variable vm_guest

Attached patch adds new variable vm_guest with a value taken from sysctl
vm_guest (it obtains the value from a kernel one time only).

With this patch, the problem can be solved with one additional match statement:

match "vm_guest"        "hv";

So devd does not invoke /usr/libexec/hyperv/hyperv_vfattach for bare metal
server or for VM guest of other hypervisors.

I ask for code review and help updating devd.conf(5) manual page as my English
is poor.

-- 
You are receiving this mail because:
You are the assignee for the bug.