OSDN Git Service

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)
commit6b73044b2b0081ee3dd1cd6eaab7dee552601efb
tree25a142770f34cb0b7ba27e691d02509902a1974d
parentd768bd892fc8f066cd3aa000eb1867bcf32db0ee
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