mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
bhyve: Move the vm_inject_fault() implementation to vmexit.c
This function isn't generic and has a different signature on arm64. No functional change intended. Reviewed by: corvink, jhb MFC after: 1 week Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D40991
This commit is contained in:
parent
83b003fbe9
commit
7228ad8da9
2 changed files with 13 additions and 13 deletions
|
|
@ -56,6 +56,19 @@
|
|||
#include "vmexit.h"
|
||||
#include "xmsr.h"
|
||||
|
||||
void
|
||||
vm_inject_fault(struct vcpu *vcpu, int vector, int errcode_valid,
|
||||
int errcode)
|
||||
{
|
||||
int error, restart_instruction;
|
||||
|
||||
restart_instruction = 1;
|
||||
|
||||
error = vm_inject_exception(vcpu, vector, errcode_valid, errcode,
|
||||
restart_instruction);
|
||||
assert(error == 0);
|
||||
}
|
||||
|
||||
static int
|
||||
vmexit_inout(struct vmctx *ctx, struct vcpu *vcpu, struct vm_run *vmrun)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -380,19 +380,6 @@ build_vcpumaps(void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
vm_inject_fault(struct vcpu *vcpu, int vector, int errcode_valid,
|
||||
int errcode)
|
||||
{
|
||||
int error, restart_instruction;
|
||||
|
||||
restart_instruction = 1;
|
||||
|
||||
error = vm_inject_exception(vcpu, vector, errcode_valid, errcode,
|
||||
restart_instruction);
|
||||
assert(error == 0);
|
||||
}
|
||||
|
||||
void *
|
||||
paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue