Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.h
Show All 32 Lines | |||||
#define VMEXIT_CONTINUE (0) | #define VMEXIT_CONTINUE (0) | ||||
#define VMEXIT_ABORT (-1) | #define VMEXIT_ABORT (-1) | ||||
struct vmctx; | struct vmctx; | ||||
extern int guest_ncpus; | extern int guest_ncpus; | ||||
extern uint16_t cores, sockets, threads; | extern uint16_t cores, sockets, threads; | ||||
extern char *kbdlayout_name; | |||||
void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len); | void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len); | ||||
#ifdef BHYVE_SNAPSHOT | #ifdef BHYVE_SNAPSHOT | ||||
uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr); | uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr); | ||||
#endif | #endif | ||||
void fbsdrun_set_capabilities(struct vmctx *ctx, int cpu); | void fbsdrun_set_capabilities(struct vmctx *ctx, int cpu); | ||||
void fbsdrun_addcpu(struct vmctx *ctx, int fromcpu, int newcpu, uint64_t rip); | void fbsdrun_addcpu(struct vmctx *ctx, int fromcpu, int newcpu, uint64_t rip); | ||||
int fbsdrun_virtio_msix(void); | int fbsdrun_virtio_msix(void); | ||||
#endif | #endif |