Simple sysctl-like firmware query interface. Similar in operation
authorPeter Grehan <grehan@FreeBSD.org>
Fri, 2 Oct 2015 21:09:49 +0000 (21:09 +0000)
committerPeter Grehan <grehan@FreeBSD.org>
Fri, 2 Oct 2015 21:09:49 +0000 (21:09 +0000)
commit88ac6958581f090df6ec065efd6b91f94638c565
treef6ffe12acac9befa6426658e104c86124bcdbafe
parentd522a3105a36e3f3ee936aec0eeacc21ba46c871
Simple sysctl-like firmware query interface. Similar in operation
to the qemu one, and uses the same i/o ports but with different
messaging. Requires the 'bootrom' option to be enabled.

This is used by UEFI (and potentially other BIOSs/firmware) to
request information from bhyve. Currently, only the number of
vCPUs is made available, with more to follow.

A very large thankyou to Ben Perrault who helped out testing
an earlier version of this, and bhyve/Windows in general.

Reviewed by: tychon
Discussed with: neel
Sponsored by: Nahanni Systems
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyve/fwctl.c [new file with mode: 0644]
usr.sbin/bhyve/fwctl.h [new file with mode: 0644]