Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3467795pxf; Mon, 22 Mar 2021 07:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4C5i7+q+Pjat3kmjVCNa8kuFD7jLCX2TPKwaL6H7WbkKe/hNn67kZot3NpC0kgP7L+5hO X-Received: by 2002:a17:906:b316:: with SMTP id n22mr19091987ejz.249.1616422221691; Mon, 22 Mar 2021 07:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616422221; cv=none; d=google.com; s=arc-20160816; b=TNYXyq24LsrSFiWlxEfmlmFrDSPmIdJkckbQd8uwluJ0mHyBvunFfIZFn1xnr8SUlO MPStnK2bgeKiCvojuRJvuaJN6MOTss/J+BpmrffgBrdz+nXMEZsUmuHVr4oqbLxAKlbe N8Cq01oDSQJCN3cq8QighTcb/j9Cbi0q1aCwEETnDGODTJzWFdFo3EkSB/emTIXaHAxP jhOF6NAm/o+HjqU+kEy9qtktcMkIRku17/nDps2edrEik1q1/LqwGba1rerOqO0K2sea 8RsqqsGZqI8D2cq+lGKUaNus1yN/oNql18qSrY1mCA9CzJPkQwu5PTdNXiJVS4WDQ5Sz fqLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pnANhrdarCwpxEDW4R3cclyoLFe42MpHeORvJNjndw4=; b=jxgOPJCgoA7Fa/dr74F4gY10ypomZNfNqY4sB2OdN4koEVFvMYA870rvPix0atSPz1 UGgL0Ues2rX9MR03XmmYLEIdbcJoM14BW0mEs+K7q8rZaAw6mhy8YpYJcpJVGJZXjIwY 1uexg69lg+ANm8+5TrmOAF/60qAFWx19SCzkM1ubU64NHd845lgUuM00v4a2xcIW0fk7 +QaL8l51CYqw3XN+kGiQUzOiWOceUnvnzk/okT9q76VE1pb3alkIHLfZZS58o8wVtBWX I/mmJ1ACo6NIKYoL+SfCIT8eQ9xy3cKaYZyfkwmvebbWw5vTUnBaVQFrS+R1tisieDOx 8Clg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=b2brCyiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl5si3848437ejb.232.2021.03.22.07.09.58; Mon, 22 Mar 2021 07:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=b2brCyiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbhCVOGm (ORCPT + 99 others); Mon, 22 Mar 2021 10:06:42 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbhCVOGM (ORCPT ); Mon, 22 Mar 2021 10:06:12 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12ME3J3i036725; Mon, 22 Mar 2021 10:06:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=pnANhrdarCwpxEDW4R3cclyoLFe42MpHeORvJNjndw4=; b=b2brCyiOCVgd9E4AVSWlcHV793fsQ5cbC3cZfXLRUihclpW2p44ylChmVxm6aiizUnhR QPFXynML482QmRw+eZ3nMbD6vHmYkfH03xmeOGsThDWn3pZKT8C/lvHwcMkcYejg6gO1 1mgAgWM01Ot3z9VUTI0zx17m6vTrwCXEwPFOTkuP0mNCu2bBbBZfKP+2HRjACIFccRt1 NZ8S85BpYjfzF1Fs/vl85Y9td4Bm76SYsZf4TYnpyZ+60eSrQfoJYs39SplS/Jn7+bK3 qqv1PHjweXLuWDao72VVBOz6ZPdrrDuKHfUXamlMz+lNkGsEaXVWv5zqBMv/IWNCn/1h Rw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 37e03f0jbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Mar 2021 10:06:12 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 12ME3cwT038627; Mon, 22 Mar 2021 10:06:12 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 37e03f0j81-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Mar 2021 10:06:11 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 12ME2V0b004761; Mon, 22 Mar 2021 14:06:03 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04fra.de.ibm.com with ESMTP id 37d9by987f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Mar 2021 14:06:03 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 12ME60q641419176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Mar 2021 14:06:00 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 489CB4C04A; Mon, 22 Mar 2021 14:06:00 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D7F6D4C050; Mon, 22 Mar 2021 14:05:59 +0000 (GMT) Received: from ibm-vm.ibmuc.com (unknown [9.145.2.56]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 22 Mar 2021 14:05:59 +0000 (GMT) From: Claudio Imbrenda To: linux-kernel@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, david@redhat.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v2 0/2] s390/kvm: VSIE: fix prefixing and MSO for MVPG Date: Mon, 22 Mar 2021 15:05:57 +0100 Message-Id: <20210322140559.500716-1-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-22_07:2021-03-22,2021-03-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 adultscore=0 phishscore=0 impostorscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103220103 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The guest real address needs to pass through prefixing in order to yield the absolute address. The absolute address needs to be offset by the MSO in order to get the host virtual address. v1->v2 * use the MSO from the shadow SIE page instead of the original one * reuse src and dest variabled to improve readability Claudio Imbrenda (2): s390/kvm: split kvm_s390_real_to_abs s390/kvm: VSIE: fix MVPG handling for prefixing and MSO arch/s390/kvm/gaccess.h | 23 +++++++++++++++++------ arch/s390/kvm/vsie.c | 6 +++++- 2 files changed, 22 insertions(+), 7 deletions(-) -- 2.26.2