Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2035848ybb; Thu, 2 Apr 2020 11:51:02 -0700 (PDT) X-Google-Smtp-Source: APiQypISX2CIq0mSivaNOmpDJ0SAHRirDhM9/c5ivk05BDWcoD0/BK9/zLbPkdROY0/KnWk3C7F3 X-Received: by 2002:a05:6830:1d98:: with SMTP id y24mr3553916oti.76.1585853462509; Thu, 02 Apr 2020 11:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585853462; cv=none; d=google.com; s=arc-20160816; b=HFnyLtp/nlMxlcBw3zppILq8f0+Wqs9FPROlP2P5TleqsS0jgFqKqCrUyjSm19mtgm kB0SMAYEalhEStZtoxNkGtSvZ5UgeF7WlIxGAY07B5YaW+vtnu0yeZuk0CcF2+OF//eD A6r+tz3m1xhzsBnl3nWwI3j8V8bRYlxdYYKK3Ua2wsfF0VUG8te716GeQiIGnkCtsF7A B1eDnOBSdNGmnTGidjO+xUNWSUBAvS85LAIMdDT3g/BDnXZAlTK8iBhNaztjcpMKfZtb gNVzzJFX33ZQVR04f+AVut7PyfKhl8rrw+bvFOG2v1CJ+wgGlUG47QBTLgClaXLNxYjP 0Ymw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=in1JW2F7wVAjQuehuFAsT9rFLhWovQC510FWxPd6gOY=; b=KPlpPwmnAsX6bG4P7wO2J3KaMVCvCnUCgGDCzReQeq9KsGVZ3nzqCQImO6GgHzOq2G 8sVcCDkdh2xdjwELtpaJ9kJe9bdqklATSlna2RVSGaq3ldqx532skTQJmpZQfxxzDA/J eRywlr0SeKe5rSmFnEDnolwwimwFQ+lDB4ln37Zv3PHY7rZW+bhYI7Px4ON+qTcWXCjq 8bkmmmJ8FuOQM+cpgsiHLNm65cyausaQ63w3FaSOiNxc5qu019Jd+R56if7Mf4y6tAkS xnGiuODKK9U/c6/Bf13+dLHoQuE1NDmfJH8cf6LKBHhq4i7OBtfNB02VW2BsIwiOu5Hj X3Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KF7lA1L3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21si2859972oth.257.2020.04.02.11.50.48; Thu, 02 Apr 2020 11:51:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KF7lA1L3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389876AbgDBSsb (ORCPT + 99 others); Thu, 2 Apr 2020 14:48:31 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:56104 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732214AbgDBSsb (ORCPT ); Thu, 2 Apr 2020 14:48:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585853310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=in1JW2F7wVAjQuehuFAsT9rFLhWovQC510FWxPd6gOY=; b=KF7lA1L3leY5vKeUOJ4STow0Qd2TkMCyiS3ydXr75S9/fC3TkkUbS++UvEaue7yHQLq9dv WYJHgRU7dpHo9EK9Qw3R6yPE5sSD/TJpXUbFq8v+n5ysxRODD1T5FRV0Dtq3gCxy+qhj3P KTznazMmOT5nJfNZ9yZRRU4AtQg2l8I= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-284-U1l9J9PpNNeAqadNNHj6-Q-1; Thu, 02 Apr 2020 14:48:26 -0400 X-MC-Unique: U1l9J9PpNNeAqadNNHj6-Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0FD031926DA0; Thu, 2 Apr 2020 18:48:25 +0000 (UTC) Received: from t480s.redhat.com (ovpn-114-29.ams2.redhat.com [10.36.114.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 90D1E60BF4; Thu, 2 Apr 2020 18:48:20 +0000 (UTC) From: David Hildenbrand To: kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Gorbik , Heiko Carstens , Cornelia Huck , Janosch Frank , Christian Borntraeger , David Hildenbrand Subject: [PATCH v1 0/5] KVM: s390: vsie: fixes and cleanups. Date: Thu, 2 Apr 2020 20:48:14 +0200 Message-Id: <20200402184819.34215-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some vsie/gmap fixes and two cleanups/improvements. Patch #1 fixes an issue reported by Janosch. It was never observed so far= , because KVM usually doesn't use a region 1 table for it's guest (unless memory would be exceeding something like 16 EB, which isn't even supporte= d by the HW). Older QEMU+KVM or other hypervisors can trigger this. Patch #2 fixes a code path that probably was never taken and will most probably not be taken very often in the future - unless somebody really messes up the page tables for a guest (or writes a test for it). At some point, a test case for this would be nice. Patch #3 fixes a rare possible race. Don't think this is stable material. Gave it some testing with my limited access to somewhat-fast s390x machines. Booted a Linux kernel, supplying all possible number of page table hiearchies. David Hildenbrand (5): KVM: s390: vsie: Fix region 1 ASCE sanity shadow address checks KVM: s390: vsie: Fix delivery of addressing exceptions KVM: s390: vsie: Fix possible race when shadowing region 3 tables KVM: s390: vsie: Move conditional reschedule KVM: s390: vsie: gmap_table_walk() simplifications arch/s390/kvm/vsie.c | 4 ++-- arch/s390/mm/gmap.c | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) --=20 2.25.1