]> git.baikalelectronics.ru Git - kernel.git/commit
s390: run user space and KVM guests with modified branch prediction
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 16 Jan 2018 06:36:46 +0000 (07:36 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Feb 2018 13:48:50 +0000 (14:48 +0100)
commitb78ae9e820db46a5307336b850bdc4f9756507b9
tree25a142770f34cb0b7ba27e691d02509902a1974d
parent6f4ff75bd0af4904a0ff89c0e011dfeda08f614f
s390: run user space and KVM guests with modified branch prediction

Define TIF_ISOLATE_BP and TIF_ISOLATE_BP_GUEST and add the necessary
plumbing in entry.S to be able to run user space and KVM guests with
limited branch prediction.

To switch a user space process to limited branch prediction the
s390_isolate_bp() function has to be call, and to run a vCPU of a KVM
guest associated with the current task with limited branch prediction
call s390_isolate_bp_guest().

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/include/asm/thread_info.h
arch/s390/kernel/entry.S
arch/s390/kernel/processor.c