aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBojan Novković <bojan.novkovic@fer.hr>2023-05-09 07:02:04 +0000
committerCorvin Köhne <corvink@FreeBSD.org>2023-05-09 08:04:55 +0000
commitfefac543590db4e1461235b7c936f46026d0f318 (patch)
tree64aafbdf9435d71841448a464cef5cde2f658426 /usr.sbin
parentb0cf48305f7fcd6b134b1bae8597ad432e80f2e1 (diff)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/gdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/gdb.c b/usr.sbin/bhyve/gdb.c
index 9e50602e92be..7a2c5aec0d86 100644
--- a/usr.sbin/bhyve/gdb.c
+++ b/usr.sbin/bhyve/gdb.c
@@ -801,6 +801,9 @@ gdb_cpu_resume(struct vcpu *vcpu)
if (vs->stepping) {
error = vm_set_capability(vcpu, VM_CAP_MTRAP_EXIT, 1);
assert(error == 0);
+
+ error = vm_set_capability(vcpu, VM_CAP_MASK_HWINTR, 1);
+ assert(error == 0);
}
}
@@ -853,6 +856,8 @@ gdb_cpu_mtrap(struct vcpu *vcpu)
vs->stepping = false;
vs->stepped = true;
vm_set_capability(vcpu, VM_CAP_MTRAP_EXIT, 0);
+ vm_set_capability(vcpu, VM_CAP_MASK_HWINTR, 0);
+
while (vs->stepped) {
if (stopped_vcpu == -1) {
debug("$vCPU %d reporting step\n", vcpuid);