All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] exec/cpu: Poison 'hwaddr' type in user-mode emulation
@ 2020-05-09 13:08 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 65+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-05-09 13:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Chris Wulff, Sagar Karandikar, David Hildenbrand,
	Mark Cave-Ayland, Philippe Mathieu-Daudé,
	Max Filippov, Alistair Francis, Edgar E. Iglesias, Marek Vasut,
	Aleksandar Markovic, qemu-ppc, Aleksandar Rikalo, David Gibson,
	Artyom Tarasenko, Eduardo Habkost, qemu-s390x, qemu-arm,
	Stafford Horne, Alex Bennée, Richard Henderson, qemu-riscv,
	Bastian Koppelmann, Cornelia Huck, Roman Bolshakov,
	Laurent Vivier, Palmer Dabbelt, Paolo Bonzini, Aurelien Jarno

The 'hwaddr' type declared in "exec/hwaddr.h" is meant for
system-mode emulation only. Poison it in user-mode code.

Philippe Mathieu-Daudé (11):
  plugins: Restrict functions handling hwaddr to system-mode
  sysemu/accel: Restrict machine methods to system-mode
  sysemu/tcg: Only declare tcg_allowed when TCG is available
  sysemu/hvf: Only declare hvf_allowed when HVF is available
  target/ppc: Restrict PPCVirtualHypervisorClass to system-mode
  target/s390x: Only compile decode_basedisp() on system-mode
  target/s390x/helper: Clean ifdef'ry
  target/s390x: Restrict system-mode declarations
  target/cpu: Restrict handlers using hwaddr type to system-mode
  exec: Use 'cpu-common.h' instead of system-mode specific 'hwaddr.h'
  exec/cpu-common: Poison hwaddr type in user-mode emulation

 include/disas/disas.h           |  2 +-
 include/exec/cpu-common.h       |  8 ++++++--
 include/hw/core/cpu.h           | 10 ++++++----
 include/qemu/qemu-plugin.h      |  2 ++
 include/sysemu/accel.h          |  4 +++-
 include/sysemu/hvf.h            |  6 +++---
 include/sysemu/tcg.h            |  2 +-
 target/alpha/cpu.h              |  4 +++-
 target/arm/cpu.h                |  6 +++---
 target/arm/internals.h          |  4 ++++
 target/cris/cpu.h               |  2 ++
 target/hppa/cpu.h               |  2 +-
 target/i386/cpu.h               |  2 ++
 target/m68k/cpu.h               |  7 ++++++-
 target/microblaze/cpu.h         |  5 ++++-
 target/mips/internal.h          |  2 +-
 target/nios2/cpu.h              |  5 ++++-
 target/openrisc/cpu.h           |  3 ++-
 target/ppc/cpu.h                |  6 +++---
 target/ppc/kvm_ppc.h            | 22 +++++++++++-----------
 target/riscv/cpu.h              | 20 ++++++++++----------
 target/s390x/internal.h         | 15 ++++++++++-----
 target/sh4/cpu.h                |  2 +-
 target/sparc/cpu.h              |  2 ++
 target/xtensa/cpu.h             | 12 +++++++-----
 plugins/api.c                   | 17 ++---------------
 target/hppa/cpu.c               |  4 +++-
 target/ppc/translate_init.inc.c |  6 +++++-
 target/s390x/helper.c           |  7 ++-----
 29 files changed, 110 insertions(+), 79 deletions(-)

-- 
2.21.3



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

end of thread, other threads:[~2020-06-03 23:36 UTC | newest]

Thread overview: 65+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 13:08 [PATCH 00/11] exec/cpu: Poison 'hwaddr' type in user-mode emulation Philippe Mathieu-Daudé
2020-05-09 13:08 ` Philippe Mathieu-Daudé
2020-05-09 13:09 ` [PATCH 01/11] plugins: Restrict functions handling hwaddr to system-mode Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-10 10:44   ` Philippe Mathieu-Daudé
2020-05-10 10:44     ` Philippe Mathieu-Daudé
2020-05-09 13:09 ` [PATCH 02/11] sysemu/accel: Restrict machine methods " Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11  9:54   ` Edgar E. Iglesias
2020-05-11  9:54     ` Edgar E. Iglesias
2020-05-11 10:17   ` Cornelia Huck
2020-05-11 10:17     ` Cornelia Huck
2020-05-09 13:09 ` [PATCH 03/11] sysemu/tcg: Only declare tcg_allowed when TCG is available Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11  9:46   ` Edgar E. Iglesias
2020-05-11  9:46     ` Edgar E. Iglesias
2020-05-11 10:20   ` Cornelia Huck
2020-05-11 10:20     ` Cornelia Huck
2020-05-09 13:09 ` [PATCH 04/11] sysemu/hvf: Only declare hvf_allowed when HVF " Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11  9:47   ` Edgar E. Iglesias
2020-05-11  9:47     ` Edgar E. Iglesias
2020-05-11 10:22   ` Cornelia Huck
2020-05-11 10:22     ` Cornelia Huck
2020-06-03 23:35   ` Cameron Esfahani
2020-05-09 13:09 ` [PATCH 05/11] target/ppc: Restrict PPCVirtualHypervisorClass to system-mode Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11  1:15   ` David Gibson
2020-05-11  1:15     ` David Gibson
2020-05-09 13:09 ` [PATCH 06/11] target/s390x: Only compile decode_basedisp() on system-mode Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11 10:39   ` Cornelia Huck
2020-05-11 10:39     ` Cornelia Huck
2020-05-09 13:09 ` [PATCH 07/11] target/s390x/helper: Clean ifdef'ry Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11  9:43   ` David Hildenbrand
2020-05-11  9:43     ` David Hildenbrand
2020-05-11 10:44   ` Cornelia Huck
2020-05-11 10:44     ` Cornelia Huck
2020-05-09 13:09 ` [PATCH 08/11] target/s390x: Restrict system-mode declarations Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-11 10:48   ` Cornelia Huck
2020-05-11 10:48     ` Cornelia Huck
2020-05-11 12:21     ` Philippe Mathieu-Daudé
2020-05-11 12:21       ` Philippe Mathieu-Daudé
2020-05-12  6:01       ` Cornelia Huck
2020-05-12  6:01         ` Cornelia Huck
2020-05-12  6:46         ` Philippe Mathieu-Daudé
2020-05-12  6:46           ` Philippe Mathieu-Daudé
2020-05-12  6:52           ` David Hildenbrand
2020-05-12  6:52             ` David Hildenbrand
2020-05-09 13:09 ` [PATCH 09/11] target/cpu: Restrict handlers using hwaddr type to system-mode Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-09 16:08   ` Philippe Mathieu-Daudé
2020-05-09 16:08     ` Philippe Mathieu-Daudé
2020-05-09 20:01     ` Philippe Mathieu-Daudé
2020-05-09 20:01       ` Philippe Mathieu-Daudé
2020-05-09 21:03       ` Paolo Bonzini
2020-05-09 21:03         ` Paolo Bonzini
2020-05-11  1:16   ` David Gibson
2020-05-11  1:16     ` David Gibson
2020-05-09 13:09 ` [PATCH 10/11] exec: Use 'cpu-common.h' instead of system-mode specific 'hwaddr.h' Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé
2020-05-09 13:09 ` [PATCH 11/11] exec/cpu-common: Poison hwaddr type in user-mode emulation Philippe Mathieu-Daudé
2020-05-09 13:09   ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.