bhyve: Put the prototype for vmexit_task_switch() in a header

No functional change intended.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2022-10-23 10:21:50 -04:00
parent c9faf69874
commit f703dc0ef0
2 changed files with 5 additions and 2 deletions

View File

@ -183,7 +183,6 @@ static const char * const vmx_exit_reason_desc[] = {
};
typedef int (*vmexit_handler_t)(struct vmctx *, struct vm_exit *, int *vcpu);
extern int vmexit_task_switch(struct vmctx *, struct vm_exit *, int *vcpu);
int guest_ncpus;
uint16_t cores, maxcpus, sockets, threads;

View File

@ -34,10 +34,12 @@
#define VMEXIT_CONTINUE (0)
#define VMEXIT_ABORT (-1)
struct vmctx;
extern int guest_ncpus;
extern uint16_t cores, sockets, threads;
struct vmctx;
struct vm_exit;
void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len);
#ifdef BHYVE_SNAPSHOT
uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr);
@ -46,4 +48,6 @@ uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr);
void fbsdrun_set_capabilities(struct vmctx *ctx, int cpu);
int fbsdrun_virtio_msix(void);
int vmexit_task_switch(struct vmctx *, struct vm_exit *, int *vcpu);
#endif