From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223AbbBQBvE (ORCPT ); Mon, 16 Feb 2015 20:51:04 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:33606 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbbBQBuy (ORCPT ); Mon, 16 Feb 2015 20:50:54 -0500 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Christian Borntraeger" , "Cornelia Huck" , "David Hildenbrand" Date: Tue, 17 Feb 2015 01:46:53 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.2 011/152] KVM: s390: flush CPU on load control In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.249 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.67-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Christian Borntraeger 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 [bwh: Backported to 3.2: adjust filename, context] Signed-off-by: Ben Hutchings --- arch/s390/kvm/intercept.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/s390/kvm/intercept.c +++ b/arch/s390/kvm/intercept.c @@ -58,6 +58,7 @@ static int handle_lctlg(struct kvm_vcpu break; reg = (reg + 1) % 16; } while (1); + kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); return 0; } @@ -97,6 +98,7 @@ static int handle_lctl(struct kvm_vcpu * break; reg = (reg + 1) % 16; } while (1); + kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); return 0; }