qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] target/arm: Fix routing of singlestep exceptions
@ 2019-08-05 13:09 Peter Maydell
  2019-08-05 13:09 ` [Qemu-devel] [PATCH 1/2] target/arm: Factor out 'generate singlestep exception' function Peter Maydell
  2019-08-05 13:09 ` [Qemu-devel] [PATCH 2/2] target/arm: Fix routing of singlestep exceptions Peter Maydell
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Maydell @ 2019-08-05 13:09 UTC (permalink / raw)
  To: qemu-arm, qemu-devel

Bug https://bugs.launchpad.net/qemu/+bug/1838913 reports that
when doing architectural singlestepping we send the singlestep
exceptions to EL1, even if the guest has configured the debug
exception level to be EL2 or EL3.

This patchset fixes that, by putting the debug target EL into
the TB flags and sending exceptions there, rather than sending
them to the default exception level.

Patch 1 is a preliminary refactoring out of the "generate the
exception" code into translate.h; we then have a single
place to do the actual fix, which is in patch 2.

(This bug has been present for ages, and it only affects
guests that try to do debug to EL2, which is pretty rare,
so it's not 4.1 material, especially at this point in the
release cycle.)

thanks
-- PMM

Peter Maydell (2):
  target/arm: Factor out 'generate singlestep exception' function
  target/arm: Fix routing of singlestep exceptions

 target/arm/cpu.h           |  5 +++++
 target/arm/translate.h     | 34 ++++++++++++++++++++++++++++++++--
 target/arm/helper.c        |  6 ++++++
 target/arm/translate-a64.c | 21 +++------------------
 target/arm/translate.c     | 24 +++++-------------------
 5 files changed, 51 insertions(+), 39 deletions(-)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-07 10:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-05 13:09 [Qemu-devel] [PATCH 0/2] target/arm: Fix routing of singlestep exceptions Peter Maydell
2019-08-05 13:09 ` [Qemu-devel] [PATCH 1/2] target/arm: Factor out 'generate singlestep exception' function Peter Maydell
2019-08-06 20:52   ` Philippe Mathieu-Daudé
2019-08-07  9:17   ` [Qemu-devel] [Qemu-arm] " Alex Bennée
2019-08-05 13:09 ` [Qemu-devel] [PATCH 2/2] target/arm: Fix routing of singlestep exceptions Peter Maydell
2019-08-07 10:47   ` [Qemu-devel] [Qemu-arm] " Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).