From: Christian Borntraeger Date: Fri, 31 Oct 2014 08:24:20 +0000 (+0100) Subject: KVM: s390: flush CPU on load control X-Git-Tag: v3.16.35~3349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fca4638cf8bb1d7fe976e05f05976f111c393d99;p=thirdparty%2Fkernel%2Fstable.git KVM: s390: flush CPU on load control commit 2dca485f8740208604543c3960be31a5dd3ea603 upstream. some control register changes will flush some aspects of the CPU, e.g. POP explicitely mentions that for CR9-CR11 "TLBs may be cleared". Instead of trying to be clever and only flush on specific CRs, let play safe and flush on all lctl(g) as future machines might define new bits in CRs. Load control intercept should not happen that often. Signed-off-by: Christian Borntraeger Acked-by: Cornelia Huck Reviewed-by: David Hildenbrand Signed-off-by: Luis Henriques --- diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index f89c1cd677519..9f41229df1aac 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -800,7 +800,7 @@ int kvm_s390_handle_lctl(struct kvm_vcpu *vcpu) break; reg = (reg + 1) % 16; } while (1); - + kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); return 0; } @@ -872,7 +872,7 @@ static int handle_lctlg(struct kvm_vcpu *vcpu) break; reg = (reg + 1) % 16; } while (1); - + kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); return 0; }