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 *guest_uuid_str; | extern char *guest_uuid_str; | ||||
extern char *vmname; | extern const char *vmname; | ||||
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 | |||||
uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr); | |||||
#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_muxed(void); | int fbsdrun_muxed(void); | ||||
int fbsdrun_vmexit_on_hlt(void); | int fbsdrun_vmexit_on_hlt(void); | ||||
int fbsdrun_vmexit_on_pause(void); | int fbsdrun_vmexit_on_pause(void); | ||||
int fbsdrun_disable_x2apic(void); | int fbsdrun_disable_x2apic(void); | ||||
int fbsdrun_virtio_msix(void); | int fbsdrun_virtio_msix(void); | ||||
#endif | #endif |