qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.10 0/5] M profile MPU bugfixes
@ 2017-07-27 10:59 Peter Maydell
  2017-07-27 10:59 ` [Qemu-devel] [PATCH for-2.10 1/5] target/arm: Don't do MPU lookups for addresses in M profile PPB region Peter Maydell
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Peter Maydell @ 2017-07-27 10:59 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: patches

This patchset fixes some bugs in the M profile MPU code:
 * the guest shouldn't be able to make system space executable
 * PPB region accesses should not be subject to MPU lookups
 * we were not resetting the PMSAv7 MPU state for M profile CPUs
 * we weren't migrating the MPU_RNR state

The renaming from cp15.c6_rgnr to pmsav7.rnr is not strictly
necessary for 2.10, but it doesn't affect many places in the code
and it restores the invariant that no mutable M profile CPU
state is stored in env->cp15.something fields.

thanks
-- PMM

Peter Maydell (5):
  target/arm: Don't do MPU lookups for addresses in M profile PPB region
  target/arm: Don't allow guest to make System space executable for M
    profile
  target/arm: Rename cp15.c6_rgnr to pmsav7.rnr
  target/arm: Move PMSAv7 reset into arm_cpu_reset() so M profile MPUs
    get reset
  target/arm: Migrate MPU_RNR register state for M profile cores

 hw/intc/armv7m_nvic.c | 14 +++++------
 target/arm/cpu.c      | 14 +++++++++++
 target/arm/cpu.h      |  3 +--
 target/arm/helper.c   | 67 +++++++++++++++++++++++++++++++++++----------------
 target/arm/machine.c  | 30 ++++++++++++++++++++++-
 5 files changed, 97 insertions(+), 31 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-07-31 12:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27 10:59 [Qemu-devel] [PATCH for-2.10 0/5] M profile MPU bugfixes Peter Maydell
2017-07-27 10:59 ` [Qemu-devel] [PATCH for-2.10 1/5] target/arm: Don't do MPU lookups for addresses in M profile PPB region Peter Maydell
2017-07-27 23:32   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2017-07-27 10:59 ` [Qemu-devel] [PATCH for-2.10 2/5] target/arm: Don't allow guest to make System space executable for M profile Peter Maydell
2017-07-27 23:59   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2017-07-28  8:51     ` Peter Maydell
2017-07-28 17:01       ` Philippe Mathieu-Daudé
2017-07-27 10:59 ` [Qemu-devel] [PATCH for-2.10 3/5] target/arm: Rename cp15.c6_rgnr to pmsav7.rnr Peter Maydell
2017-07-27 22:43   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2017-07-27 22:58     ` Philippe Mathieu-Daudé
2017-07-28  8:42       ` Peter Maydell
2017-07-28 17:03         ` Philippe Mathieu-Daudé
2017-07-27 10:59 ` [Qemu-devel] [PATCH for-2.10 4/5] target/arm: Move PMSAv7 reset into arm_cpu_reset() so M profile MPUs get reset Peter Maydell
2017-07-28  0:02   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2017-07-27 10:59 ` [Qemu-devel] [PATCH for-2.10 5/5] target/arm: Migrate MPU_RNR register state for M profile cores Peter Maydell
2017-07-27 22:50   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2017-07-31 12:11 ` [Qemu-devel] [Qemu-arm] [PATCH for-2.10 0/5] M profile MPU bugfixes Peter Maydell

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).