]> git.baikalelectronics.ru Git - kernel.git/commit
s390: avoid cache aliasing under z/VM and KVM
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Nov 2015 11:30:28 +0000 (12:30 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Nov 2015 11:04:18 +0000 (12:04 +0100)
commit4bfd43946937936f4ab0787615005ef3b77e7d3a
tree4e625e806cfb7c30e8053a7e88ad04f4aa83b7a4
parent902f837840168418ab2c34f357ab905e60e305eb
s390: avoid cache aliasing under z/VM and KVM

commit e66b933b4c11 ("s390: avoid z13 cache aliasing") checks for the
machine type to optimize address space randomization and zero page
allocation to avoid cache aliases.

This check might fail under a hypervisor with migration support.
z/VMs "Single System Image and Live Guest Relocation" facility will
"fake" the machine type of the oldest system in the group. For example
in a group of zEC12 and Z13 the guest appears to run on a zEC12
(architecture fencing within the relocation domain)

Remove the machine type detection and always use cache aliasing
rules that are known to work for all machines. These are the z13
aliasing rules.

Suggested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/elf.h
arch/s390/kernel/process.c
arch/s390/mm/init.c
arch/s390/mm/mmap.c