Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/bhyve/bhyverun.c
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
#include "mptbl.h" | #include "mptbl.h" | ||||
#include "pci_emul.h" | #include "pci_emul.h" | ||||
#include "pci_irq.h" | #include "pci_irq.h" | ||||
#include "pci_lpc.h" | #include "pci_lpc.h" | ||||
#include "smbiostbl.h" | #include "smbiostbl.h" | ||||
#include "xmsr.h" | #include "xmsr.h" | ||||
#include "spinup_ap.h" | #include "spinup_ap.h" | ||||
#include "rtc.h" | #include "rtc.h" | ||||
#include "vmgenc.h" | |||||
#define GUEST_NIO_PORT 0x488 /* guest upcalls via i/o port */ | #define GUEST_NIO_PORT 0x488 /* guest upcalls via i/o port */ | ||||
#define MB (1024UL * 1024) | #define MB (1024UL * 1024) | ||||
#define GB (1024UL * MB) | #define GB (1024UL * MB) | ||||
static const char * const vmx_exit_reason_desc[] = { | static const char * const vmx_exit_reason_desc[] = { | ||||
[EXIT_REASON_EXCEPTION] = "Exception or non-maskable interrupt (NMI)", | [EXIT_REASON_EXCEPTION] = "Exception or non-maskable interrupt (NMI)", | ||||
▲ Show 20 Lines • Show All 1,072 Lines • ▼ Show 20 Lines | main(int argc, char *argv[]) | ||||
/* | /* | ||||
* Exit if a device emulation finds an error in its initilization | * Exit if a device emulation finds an error in its initilization | ||||
*/ | */ | ||||
if (init_pci(ctx) != 0) { | if (init_pci(ctx) != 0) { | ||||
perror("device emulation initialization error"); | perror("device emulation initialization error"); | ||||
exit(4); | exit(4); | ||||
} | } | ||||
/* | |||||
* Initialize after PCI, to allow a bootrom file to reserve the high | |||||
* region. | |||||
*/ | |||||
if (acpi) | |||||
vmgenc_init(ctx); | |||||
if (dbg_port != 0) | if (dbg_port != 0) | ||||
init_dbgport(dbg_port); | init_dbgport(dbg_port); | ||||
if (gdb_port != 0) | if (gdb_port != 0) | ||||
init_gdb(ctx, gdb_port, gdb_stop); | init_gdb(ctx, gdb_port, gdb_stop); | ||||
if (bvmcons) | if (bvmcons) | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |