diff options
| author | Bojan Novković <bojan.novkovic@fer.hr> | 2023-05-09 07:02:04 +0000 |
|---|---|---|
| committer | Corvin Köhne <corvink@FreeBSD.org> | 2023-05-09 08:04:55 +0000 |
| commit | fefac543590db4e1461235b7c936f46026d0f318 (patch) | |
| tree | 64aafbdf9435d71841448a464cef5cde2f658426 /usr.sbin | |
| parent | b0cf48305f7fcd6b134b1bae8597ad432e80f2e1 (diff) | |
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/bhyve/gdb.c | 5 |
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); |
