You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/target/s390x
Thomas Huth 21be74a9a5 target/s390x/tcg: Fix and improve the SACF instruction
The SET ADDRESS SPACE CONTROL FAST instruction is not privileged, it can be
used from problem space, too. Just the switching to the home address space
is privileged and should still generate a privilege exception. This bug is
e.g. causing programs like Java that use the "getcpu" vdso kernel function
to crash (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990417#26 ).

While we're at it, also check if DAT is not enabled. In that case the
instruction is supposed to generate a special operation exception.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/655
Message-Id: <20221201184443.136355-1-thuth@redhat.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2 years ago
..
kvm dump queue 2 years ago
tcg target/s390x/tcg: Fix and improve the SACF instruction 2 years ago
Kconfig meson: Introduce target-specific Kconfig 3 years ago
arch_dump.c s390x: pv: Add dump support 2 years ago
cpu-dump.c target/s390x: Fix shifting 32-bit values for more than 31 bits 3 years ago
cpu-param.h Normalize header guard symbol definition 3 years ago
cpu-qom.h target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro 3 years ago
cpu-sysemu.c Use g_new() & friends where that makes obvious sense 3 years ago
cpu.c target/s390x: Convert to tcg_ops restore_state_to_opc 2 years ago
cpu.h Move CPU softfloat unions to cpu-float.h 3 years ago
cpu_features.c s390x: pv: Fence additional unavailable SCLP facilities for PV guests 4 years ago
cpu_features.h s390x: pv: Fix diag318 PV fencing 4 years ago
cpu_features_def.h meson: rename .inc.h files to .h.inc 4 years ago
cpu_features_def.h.inc s390x/cpumodel: add stfl197 processor-activity-instrumentation extension 1 2 years ago
cpu_models.c target/s390x: display deprecation status in '-cpu help' 2 years ago
cpu_models.h s390x: Fix spelling errors 2 years ago
cpu_models_sysemu.c Don't include sysemu/tcg.h if it is not necessary 3 years ago
cpu_models_user.c target/s390x: split sysemu part of cpu models 3 years ago
diag.c target/s390x: move kvm files into kvm/ 3 years ago
gdbstub.c target/s390x: rename internal.h to s390x-internal.h 3 years ago
gen-features.c target/s390x: support PRNO_TRNG instruction 2 years ago
helper.c Don't include sysemu/tcg.h if it is not necessary 3 years ago
helper.h target/s390x: vxeh2: Update for changes to vector shifts 3 years ago
interrupt.c target/s390x: move kvm files into kvm/ 3 years ago
ioinst.c s390x: Fix spelling errors 2 years ago
machine.c target/s390x: move kvm files into kvm/ 3 years ago
meson.build target/s390x: split sysemu part of cpu models 3 years ago
mmu_helper.c hw/s390x/s390-skeys: lazy storage key enablement under TCG 3 years ago
s390x-internal.h target/s390x: Convert to tcg_ops restore_state_to_opc 2 years ago
sigp.c s390x: sigp: Reorder the SIGP STOP code 3 years ago
trace-events target/s390x: move kvm files into kvm/ 3 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago