How to remove bhyve's fwctl device?

From: Corvin Köhne <corvink_at_FreeBSD.org>
Date: Tue, 13 Jun 2023 10:18:19 UTC
Hi,

this is a request for some guidance on how to remove the fwctl device
of bhyve.

I've recently added support for qemu's fwcfg device as replacement for
bhyve's fwctl device. As both devices are using the same io ports they
can't coexist. For that reason, I'd like to remove the fwctl device
from bhyve. However, this breaks old guest firmware because it doesn't
support qemu's fwcfg. Old guest firmware won't be able to detect the
number of vcpus. So, it'll report only a single vcpu to the guest OS.
More recent guest firmware doesn't have this issue.

Any advice would be appreciated.


-- 
Kind regards,
Corvin