Name Date Size #Lines LOC



MakefileH A D17-Apr-20233.6 KiB179121

README.licenseH A D14-Feb-2021382 65

README.syncH A D17-Apr-20231.5 KiB4029


THIRDPARTYLICENSE.descripH A D14-Feb-202117 21

acpi.cH A D17-Apr-202320.6 KiB789571

acpi.hH A D14-Feb-20212.3 KiB7028

ahci.hH A D14-Feb-202110.7 KiB325254

atkbdc.cH A D17-Apr-202314.2 KiB587463

atkbdc.hH A D14-Feb-20211.6 KiB397

audio.cH A D17-Apr-20236.8 KiB282180

audio.hH A D17-Apr-20232.9 KiB8915

basl.cH A D17-Apr-202313.9 KiB609460

basl.hH A D17-Apr-20234.5 KiB12697

bhyve_sol_glue.cH A D14-Feb-20211.1 KiB4117

bhyvegc.cH A D12-Jul-20223.2 KiB12478

bhyvegc.hH A D12-Jul-20221.9 KiB5620

bhyverun.cH A D17-Apr-202341.6 KiB1,8081,414

bhyverun.hH A D17-Apr-20232.3 KiB6413

block_if.cH A D17-Apr-202325.5 KiB1,212944

block_if.hH A D10-Dec-20213.4 KiB8939

bootrom.cH A D17-Apr-20238 KiB322234

bootrom.hH A D12-Jul-20221.8 KiB5317

config.cH A D17-Apr-202310.7 KiB478367

config.hH A D17-Apr-20234.7 KiB13226

console.cH A D10-Dec-20213 KiB12175

console.hH A D10-Dec-20212.2 KiB5616

debug.hH A D14-Feb-20211.7 KiB4813

fwctl.cH A D03-Aug-202310.5 KiB589418

fwctl.hH A D14-Feb-20211.9 KiB5717

gdb.cH A D17-Apr-202339.8 KiB1,9801,507

gdb.hH A D10-Dec-20211.7 KiB4311

hda_codec.cH A D17-Apr-202324.5 KiB949719

hda_reg.hH A D12-Jul-202257.8 KiB1,3701,103

hdac_reg.hH A D14-Feb-202111 KiB272179

hexdump.cH A D17-Apr-20233 KiB9851

hexdump.hH A D17-Apr-20232.2 KiB539

inout.cH A D17-Apr-20235.1 KiB216128

inout.hH A D17-Apr-20233.1 KiB9941

ioapic.cH A D14-Feb-20212.5 KiB8434

ioapic.hH A D14-Feb-20211.6 KiB446

iov.cH A D17-Apr-20233.5 KiB15497

iov.hH A D14-Feb-20211.9 KiB4510

kernemu_dev.cH A D14-Feb-20213 KiB9963

kernemu_dev.hH A D14-Feb-20211.4 KiB332

mem.cH A D17-Apr-20239.4 KiB391258

mem.hH A D12-Jul-20222.3 KiB6829

mevent.cH A D17-Apr-202318.4 KiB920636

mevent.hH A D12-Jul-20222.1 KiB6426

mevent_test.cH A D12-Jul-20225.6 KiB281186

mptbl.cH A D17-Apr-20239.4 KiB381257

mptbl.hH A D14-Feb-20211.5 KiB385

net_backends.cH A D17-Apr-202333.8 KiB1,5421,066

net_backends.hH A D10-Dec-20214.3 KiB9953

net_utils.cH A D10-Dec-20213.1 KiB12470

net_utils.hH A D10-Dec-20211.7 KiB418

pci_ahci.cH A D17-Apr-202358.8 KiB2,6022,154

pci_e82545.cH A D17-Apr-202360.5 KiB2,4291,968

pci_emul.cH A D17-Apr-202358.6 KiB2,4771,802

pci_emul.hH A D17-Apr-20238.7 KiB313227

pci_fbuf.cH A D17-Apr-202310.9 KiB491361

pci_hda.cH A D17-Apr-202330.4 KiB1,293957

pci_hda.hH A D17-Apr-20232.7 KiB9348

pci_hostbridge.cH A D17-Apr-20235.2 KiB171107

pci_irq.cH A D17-Apr-20239.1 KiB361274

pci_irq.hH A D14-Feb-20211.9 KiB4813

pci_lpc.cH A D17-Apr-202312.1 KiB534408

pci_lpc.hH A D17-Apr-20232.4 KiB7736

pci_nvme.cH A D17-Apr-202389 KiB3,4162,609

pci_passthru.cH A D17-Apr-202327.3 KiB1,131846

pci_passthru.hH A D12-Jul-2022444 197

pci_uart.cH A D17-Apr-20233.5 KiB13677

pci_virtio_9p.cH A D17-Apr-202310.5 KiB402309

pci_virtio_block.cH A D17-Apr-202316.7 KiB599397

pci_virtio_console.cH A D17-Apr-202318.2 KiB786617

pci_virtio_input.cH A D17-Apr-202318.8 KiB781550

pci_virtio_net.cH A D17-Apr-202318.3 KiB776480

pci_virtio_rnd.cH A D17-Apr-20235.1 KiB211123

pci_virtio_scsi.cH A D17-Apr-202320.6 KiB766605

pci_virtio_viona.cH A D17-Apr-202329 KiB1,200889

pci_xhci.cH A D17-Apr-202376.3 KiB2,9852,231

pci_xhci.hH A D17-Apr-202312.7 KiB356302

pctestdev.cH A D17-Apr-20236.2 KiB263185

pctestdev.hH A D10-Dec-20211.6 KiB436

pm.cH A D17-Apr-202310.7 KiB456297

post.cH A D17-Apr-20231.8 KiB5618

privileges.cH A D10-Dec-20215.6 KiB192119

privileges.hH A D10-Dec-2021818 2910

ps2kbd.cH A D17-Apr-202313.3 KiB502401

ps2kbd.hH A D14-Feb-20211.7 KiB427

ps2mouse.cH A D17-Apr-20239.2 KiB421332

ps2mouse.hH A D14-Feb-20211.8 KiB449

rfb.cH A D17-Apr-202337.8 KiB1,5611,152

rfb.hH A D12-Jul-20221.7 KiB426

rfb_impl.hH A D12-Jul-20225.8 KiB253176

rtc.cH A D05-May-20233.8 KiB15590

rtc.hH A D10-Dec-20211.5 KiB374

smbiostbl.cH A D17-Apr-202332.1 KiB1,102858

smbiostbl.hH A D10-Dec-20211.7 KiB479

sockstream.cH A D17-Apr-20232.3 KiB9553

sockstream.hH A D14-Feb-20211.5 KiB364

spinup_ap.cH A D17-Apr-20233.2 KiB10947

spinup_ap.hH A D17-Apr-20231.5 KiB374

task_switch.cH A D17-Apr-202329.5 KiB1,098678

uart_emul.cH A D17-Apr-202320.3 KiB978694

uart_emul.hH A D10-Dec-20211.9 KiB4812

usb_emul.cH A D10-Dec-20212.3 KiB7940

usb_emul.hH A D17-Apr-20234.7 KiB16695

usb_mouse.cH A D17-Apr-202319.3 KiB808645

vga.cH A D17-Apr-202333.9 KiB1,3581,136

vga.hH A D14-Feb-20215.3 KiB163112

virtio.cH A D17-Apr-202321.9 KiB816513

virtio.hH A D17-Apr-202316 KiB451168

virtio_net.hH A D17-Apr-20231.5 KiB6425

vmgenc.cH A D14-Feb-20213.3 KiB12073

vmgenc.hH A D14-Feb-20211.5 KiB323

xmsr.cH A D17-Apr-20235.8 KiB265163

xmsr.hH A D14-Feb-20211.6 KiB396


1Having been ported from FreeBSD, bhyve bears the BSD license.  Subsequent
2changes made to bhyve in illumos are dual-licensed under both the BSD license
3and the CDDL.  Use or redistribution of those subsequent changes may be done
4under either license. The CDDL license header added to bhyve source files is
5meant to cover only those dual-licensed modifications, not the entire file.


1Git commit hashes in this file refer to the official FreeBSD distributed
2public Git repository at
4The bhyve userland code in this directory, and its associated libraries and
5parts of the kernel module have been updated to the latest upstream FreeBSD
6sources as of:
8    commit e53fcff1848bb5acafc3dc38cfeb34724d9b0b96
9    Author: John Baldwin <>
10    Date:   Wed Dec 21 10:33:34 2022 -0800
12        bhyve: Simplify spinup_ap_realmode slightly.
14Divergence Notes:
16The kernel component of bhyve has diverged from the FreeBSD sources and
17will continue to evolve away from the initial compatibility interfaces towards
18native illumos ones. The vmmapi library abstracts those interfaces wherever
19possible so that the bhyve userspace can remain close to upstream.
21The source code for the following components is present and included in
22syncs from FreeBSD, but currently disabled. See the comments in 'Makefile'
23for more details:
25	kernemu_dev
26	virtio-scsi
27	audio backend
28	virtio_input
30The draft Save/Restore functionality, added in FreeBSD commit
31483d953a86a2507355f8287c5107dc827a0ff516, has not been synced into illumos bhyve
32yet.  It is not built by default in FreeBSD, so we're not interested in taking
33it until it successfully endures more in-depth testing.
35The stub usr/src/compat/bhyve/stdatomic.h file only includes enough glue
36to satisfy the use of <stdatomic.h> in usr/src/cmd/bhyve/rfb.c, and in
37particular assumes that atomic variables are sized as an int. If other bhyve
38pieces start using stdatomic.h, this will need enhancing.