Activity log for bug #1838913

Date Who What changed Old value New value Message
2019-08-05 00:18:16 Elouan Appéré bug added bug
2019-08-05 00:18:16 Elouan Appéré attachment added minimal code+elf https://bugs.launchpad.net/bugs/1838913/+attachment/5280823/+files/test_hyp.zip
2019-08-05 00:55:59 Elouan Appéré summary Single-step exceptions incorrectly generated and incorrectly routed to EL1 when ELD is EL2 (TDE = 1) (qemu version 3.1) Single-step exceptions incorrectly routed to EL1 when ELD is EL2 (TDE = 1) (qemu version 3.1)
2019-08-05 00:56:01 Elouan Appéré description Hi, I've been encountering issues with QEMU 3.1 when trying to single-step EL1 code, with ELD = EL2 (MDCR_EL2.TDE = 1). I could test with latest commit in a few hours, if you want. EL1 is Aarch64. These happen as soon as MDSCR_EL1.SS is set to 1 and ERET is executed: 1) Single-step exceptions are generated even if they should not be (SPSR_EL2.SS = 0) 2) Single-step exceptions are routed to EL1 Exception return from AArch64 EL2 to AArch64 EL1 PC 0x4000005c Taking exception 1 [Undefined Instruction] ...from EL1 to EL1 ...with ESR 0x32/0xca000022 ...with ELR 0x4000005c ...to EL1 PC 0x200 PSTATE 0x3c5 EC 0x32 (0b110010) is Exception_SoftwareStepLowerEl. You can find enclosed minimal code (and resulting .elf) for reproduction. qemu-system-aarch64 -nographic -machine virt,virtualization=on -d unimp,int -cpu cortex-a57 -kernel test_hyp.elf Hi, I've been encountering issues with QEMU 3.1 when trying to single-step EL1 code, with ELD = EL2 (MDCR_EL2.TDE = 1). I could test with latest commit in a few hours, if you want. EL1 is Aarch64. This happens as soon as MDSCR_EL1.SS is set to 1 and ERET is executed: - Single-step exceptions are routed to EL1 Exception return from AArch64 EL2 to AArch64 EL1 PC 0x4000005c Taking exception 1 [Undefined Instruction] ...from EL1 to EL1 ...with ESR 0x32/0xca000022 ...with ELR 0x4000005c ...to EL1 PC 0x200 PSTATE 0x3c5 EC 0x32 (0b110010) is Exception_SoftwareStepLowerEl. You can find enclosed minimal code (and resulting .elf) for reproduction. qemu-system-aarch64 -nographic -machine virt,virtualization=on -d unimp,int -cpu cortex-a57 -kernel test_hyp.elf
2019-08-05 11:31:42 Peter Maydell qemu: status New In Progress
2019-08-07 10:42:58 Alex Bennée tags arm tcg testcase
2019-09-23 14:12:59 Peter Maydell qemu: status In Progress Fix Committed
2020-01-09 13:41:27 Thomas Huth qemu: status Fix Committed Fix Released