bhyve: Put the prototype for vmexit_task_switch() in a header
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
c9faf69874
commit
f703dc0ef0
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user