Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3476958rdb; Wed, 13 Sep 2023 13:16:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOKWo49gEsOS3e5QEz7ODCOy3LQ0CCFi3zvEXtioEk2fuqJGhu/nrszFFBIFhA+PSATNEU X-Received: by 2002:a17:90b:4b82:b0:26d:689f:4253 with SMTP id lr2-20020a17090b4b8200b0026d689f4253mr9349146pjb.6.1694636197144; Wed, 13 Sep 2023 13:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694636197; cv=none; d=google.com; s=arc-20160816; b=uIgDer14sowmBwTP7yWzYySRjPMnBf9jlzvoT1NqrqqHQrz3dMivDfH1cYqFrQLtZn QtOeGtAWiA4ox18y+KcpacbYgMUd/Xkpe2UghwIlUfaSV5vn0yQSXlX2BWMfp3lDloxh 6thu1Wai+gOv/jobsK80TIQrb/fE8zeFrFthcrzCdBUG1ipkUvgAaEQNRIqrlA/gTiZ4 N7n056Ui7dLgPLzc0Bj9AtyyWumeXHEHO360S+8AXWIJVFPlYkAMsRV/y2LV1Mm0GRaD Og2lTUxN6y7pj1LIFxA+YxnNbPM/TIt5m4crB8LH4yGn3R5cQydidYcPaa7OFDImtE1j DLqg== 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=JRGnMOQ8ntcK/PfDsSVy77V2MwVKzovJtC/3PfUgqF0=; fh=UEH6cFyH1ghvNrfwViNbncCn5r9iy89nkA/jfjQrZCI=; b=Tcdn+3nj2t6H8F68uSKD4Ldy7LBHZa8+d8HpgmVoqi5q4lO+Rl25V9UjD6XH37Sytk b3nm9DJzdHIgnpS0RZwVnJ7Wq9NVbuD/hX4pUNDnf7KjMKc7ZfaLhxFo+Vg5le0l0wOi 5vGsc/vFXGd0b7JWEDkh9SlbTvkiksuyJ4BiU2biOe2bX8c/hdy2q/1N0YJROp08OtUW WhaBZbZ7UJkDD9ydUIH/VF91L4rzb5txqBqBo9VmBLO9GoTdWNy9QjLlmT8szMqBFyyR 6ZzTr5wWf2GBtRBMG5k0JpyaRGclK5uPeP0N7V2ETwCh93GdSyzdCncEvJeGvZho5JiY VmgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=vJwvFj1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bv191-20020a632ec8000000b005655588f9a7si10872624pgb.468.2023.09.13.13.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:16:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=vJwvFj1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A33CE807667C; Wed, 13 Sep 2023 11:53:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231964AbjIMSxS (ORCPT + 99 others); Wed, 13 Sep 2023 14:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbjIMSxR (ORCPT ); Wed, 13 Sep 2023 14:53:17 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3510F170F for ; Wed, 13 Sep 2023 11:53:13 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38DEgRMn015891; Wed, 13 Sep 2023 18:52:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2023-03-30; bh=JRGnMOQ8ntcK/PfDsSVy77V2MwVKzovJtC/3PfUgqF0=; b=vJwvFj1mKF3fJfB9c+qk1T/OGhxxwm4fhu4rm8G3zADkmEkDUOKX2fiBsyIWAvUf0dvH H+CwxXd79O6m+a4+45rcviERG8oz6FKfSJh/8ufx4meYQG4Cvk6ZWhH5zOfCudA1+u19 gyX1GP2Om5c/tASj5KPP4jYXTa1WXH0S3h8EjCELxqjPYtXAWr8OXTrnQoMLA/+LsYm9 JLFEMxN6GQuSEGULNzb1D651yATFdYdEH/XNgW4JBnjREIKZ70Cff3yl8gt2xSe1iECT 0tugg18F0dbgmn9RJgx9sA56Gmw8h0ooXHDVPH3sss0D/GJ5BGNBAwZpV0vN+VBjxPs4 1w== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t37jr29vn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Sep 2023 18:52:50 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38DHZwc2033008; Wed, 13 Sep 2023 18:52:50 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t0wkgxr1f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Sep 2023 18:52:49 +0000 Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38DIqnio015352; Wed, 13 Sep 2023 18:52:49 GMT Received: from mlluis-mac.uk.oracle.com (dhcp-10-175-187-203.vpn.oracle.com [10.175.187.203]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3t0wkgxqyp-1; Wed, 13 Sep 2023 18:52:48 +0000 From: Miguel Luis To: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Cc: miguel.luis@oracle.com Subject: [PATCH 0/3] Fine grain sysregs allowed to trap for nested virtualization Date: Wed, 13 Sep 2023 18:52:05 +0000 Message-Id: <20230913185209.32282-1-miguel.luis@oracle.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_13,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=757 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309130158 X-Proofpoint-ORIG-GUID: VEH4FWHslC-6iaXHQS6OsuSWIdYxsL2P X-Proofpoint-GUID: VEH4FWHslC-6iaXHQS6OsuSWIdYxsL2P Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:53:18 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email The current HCR_EL2 description includes _EL1 registers that are not affected by NV. Let's exclude them from those ranges to implement a more fine grained approach. Miguel Luis (3): arm64: Add missing _EL12 encodings arm64/kvm: Fine grain _EL2 system registers list that affect nested virtualization KVM: arm64: nv: Handle all _EL02 and _EL12 registers arch/arm64/include/asm/sysreg.h | 11 +++++ arch/arm64/kvm/emulate-nested.c | 79 ++++++++++++++++++++++++++++----- 2 files changed, 80 insertions(+), 10 deletions(-) -- 2.39.2