diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-05-21 21:21:26 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-05-21 21:21:26 +0200 |
| commit | 4b927bc37359dec23f67d3427fc982945f24f404 (patch) | |
| tree | 245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_missing/host_arm/accel_HVF | |
| parent | aa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff) | |
| download | emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.zip | |
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_missing/host_arm/accel_HVF')
| -rw-r--r-- | gitlab/issues/target_missing/host_arm/accel_HVF/2895.toml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_arm/accel_HVF/2895.toml b/gitlab/issues/target_missing/host_arm/accel_HVF/2895.toml new file mode 100644 index 00000000..55d11eba --- /dev/null +++ b/gitlab/issues/target_missing/host_arm/accel_HVF/2895.toml @@ -0,0 +1,38 @@ +id = 2895 +title = "qemu-system-aarch64: Error: r = HV_BAD_ARGUMENT (0xfae94003, at ../target/arm/hvf/hvf.c:2259)" +state = "closed" +created_at = "2025-03-31T12:47:56.375Z" +closed_at = "2025-05-07T20:09:29.328Z" +labels = ["accel: HVF", "host: arm"] +url = "https://gitlab.com/qemu-project/qemu/-/issues/2895" +host-os = "macOS 15.3.2 (24D81)" +host-arch = "arm64" +qemu-version = "0f15892acaf3f50ecc20c6dad4b3ebdd701aa93e" +guest-os = "Linux" +guest-arch = "arm64" +description = """When I launch a Linux guest in QEMU with `-accel hvf` + `-gdb "tcp::1234"`, and I try to debug the kernel with `lldb`, QEMU crashes with the following report: + +``` +qemu-system-aarch64: Error: r = HV_BAD_ARGUMENT (0xfae94003, at ../target/arm/hvf/hvf.c:2259) +```""" +reproduce = """1. Run QEMU with `-accel hvf` + `-gdb "tcp::1234"` and a custom kernel (`-kernel Image`) +2. Try to attach using `lldb vmlinux` + `(lldb) gdb-remote 1234`""" +additional = """Debugging QEMU I see the crash is due to the `cpu->accel->fd` file descriptor being `0`: + +``` +warning: qemu-system-aarch64 was compiled with optimization - stepping may behave oddly; variables may not be available. +frame #4: 0x00000001003dd24c qemu-system-aarch64`hvf_arch_update_guest_debug [inlined] hvf_put_guest_debug_registers(cpu=0x0000000158118000) at hvf.c:2259:9 [opt] + 2256 for (i = 0; i < max_hw_bps; i++) { + 2257 r = hv_vcpu_set_sys_reg(cpu->accel->fd, dbgbcr_regs[i], + 2258 env->cp15.dbgbcr[i]); +-> 2259 assert_hvf_ok(r); + 2260 r = hv_vcpu_set_sys_reg(cpu->accel->fd, dbgbvr_regs[i], + 2261 env->cp15.dbgbvr[i]); + 2262 assert_hvf_ok(r); +(lldb) print cpu->accel->fd +(hvf_vcpuid) 0 +(lldb) print dbgbcr_regs[i] +(const uint16_t) 32773 +(lldb) print env->cp15.dbgbcr[i] +(uint64_t) 480 +```""" |