qemu-e2k/target-s390x
Aurelien Jarno 1f65958d9c target-s390x: fix MMU index computation
The cpu_mmu_index function wrongly looks at PSW P bit to determine the
MMU index, while this bit actually only control the use of priviledge
instructions. The addressing mode is detected by looking at the PSW ASC
bits instead.

This used to work more or less correctly up to kernel 3.6 as the kernel
was running in primary space and userland in secondary space. Since
kernel 3.7 the default is to run the kernel in home space and userland
in primary space. While the current QEMU code seems to work it open some
security issues, like accessing the lowcore memory in R/W mode from a
userspace process once it has been accessed by the kernel (it is then
cached by the QEMU TLB).

At the same time change the MMU_USER_IDX value so that it matches the
value used in recent kernels.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
2015-06-05 01:37:58 +02:00
..
arch_dump.c s390x: Add vector registers to ELF dump 2015-05-27 17:52:03 +02:00
cc_helper.c target-s390x: fix CC computation for LOAD POSITIVE instructions 2015-06-05 01:37:57 +02:00
cpu-qom.h s390x/kvm: migrate vcpu interrupt state 2015-05-08 10:36:19 +02:00
cpu.c s390x/kvm: migrate vcpu interrupt state 2015-05-08 10:36:19 +02:00
cpu.h target-s390x: fix MMU index computation 2015-06-05 01:37:58 +02:00
fpu_helper.c
gdbstub.c s390x: gdb updates for vector registers 2015-05-27 17:52:03 +02:00
helper.c s390x: Common access to floating point registers 2015-05-27 17:52:03 +02:00
helper.h target-s390x: remove unused helpers 2015-06-05 01:37:57 +02:00
insn-data.def s390x: Add interlocked access facility 1 instructions 2015-05-13 14:48:54 +02:00
insn-format.def
int_helper.c target-s390x: remove unused helpers 2015-06-05 01:37:57 +02:00
interrupt.c
ioinst.c s390x/kvm: Support access register mode for KVM_S390_MEM_OP ioctl 2015-04-30 13:21:42 +02:00
ioinst.h s390x/ioinst: Rework memory access in TPI instruction 2015-02-18 09:37:15 +01:00
kvm.c kvm: introduce kvm_arch_msi_data_to_gsi 2015-06-02 14:56:25 +01:00
machine.c s390x: Migrate vector registers 2015-05-27 17:52:03 +02:00
Makefile.objs
mem_helper.c s390x/mmu: Skip exceptions properly when translating addresses for debug 2015-02-18 09:37:14 +01:00
misc_helper.c target-s390x: fix PSW value on dynamical exception from helpers 2015-06-05 01:37:58 +02:00
mmu_helper.c trivial patches for 2015-04-30 2015-04-30 15:18:30 +01:00
translate.c target-s390x: fix LOAD MULTIPLE instruction on page boundary 2015-06-05 01:37:58 +02:00