Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153376548
D44741.id136868.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
988 B
Referenced Files
None
Subscribers
None
D44741.id136868.diff
View Options
diff --git a/usr.sbin/bhyve/aarch64/vmexit.c b/usr.sbin/bhyve/aarch64/vmexit.c
--- a/usr.sbin/bhyve/aarch64/vmexit.c
+++ b/usr.sbin/bhyve/aarch64/vmexit.c
@@ -84,6 +84,21 @@
return (VMEXIT_ABORT);
}
+static int
+vmexit_reg_emul(struct vmctx *ctx __unused, struct vcpu *vcpu __unused,
+ struct vm_run *vmrun)
+{
+ struct vm_exit *vme;
+ struct vre *vre;
+
+ vme = vmrun->vm_exit;
+ vre = &vme->u.reg_emul.vre;
+
+ EPRINTLN("Unhandled register access: pc %#lx syndrome %#x reg %d\n",
+ vme->pc, vre->inst_syndrome, vre->reg);
+ return (VMEXIT_ABORT);
+}
+
static int
vmexit_suspend(struct vmctx *ctx, struct vcpu *vcpu, struct vm_run *vmrun)
{
@@ -269,6 +284,7 @@
const vmexit_handler_t vmexit_handlers[VM_EXITCODE_MAX] = {
[VM_EXITCODE_BOGUS] = vmexit_bogus,
[VM_EXITCODE_INST_EMUL] = vmexit_inst_emul,
+ [VM_EXITCODE_REG_EMUL] = vmexit_reg_emul,
[VM_EXITCODE_SUSPENDED] = vmexit_suspend,
[VM_EXITCODE_DEBUG] = vmexit_debug,
[VM_EXITCODE_SMCCC] = vmexit_smccc,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 7:27 PM (6 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31928969
Default Alt Text
D44741.id136868.diff (988 B)
Attached To
Mode
D44741: bhyve: Add a stub VM_EXITCODE_REG_EMUL handler
Attached
Detach File
Event Timeline
Log In to Comment