From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80E5B4E63D for ; Tue, 5 Dec 2023 10:23:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tabba.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ROpaDOMV" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-5d351694be7so83408397b3.3 for ; Tue, 05 Dec 2023 02:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701771784; x=1702376584; darn=lists.linux.dev; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=33fHTG4hd84nJo+G3RKw/og5Lg2h+7y1b4GD/jJpS2Q=; b=ROpaDOMVsveWhzgwOWqDNWQzZt5x6DdzFpEELC0eDlFFopP8JEMEwl6/+ZhpTWa2Z7 dRQIqhhWsgVY9qrbtJoWLzaSW3A9X+30gdG8tOXc+apXq/qWqRyXOwjK6hvj/ZghKMYW x8sSIljDGdliPnopaY3qsBJWBQtGQr6vDafULpOnunJ4YOBOZdQ4B2B3udiNEpPWspew iNo/j9GcPyDtRn9/ZJ5JuqvlSEXgvf4eGuZjzb/b9UExSPdpm7jhX6zEsqyLagzmpwLN WTsJVtA+LWxCadXhR1iNAWtVO1P69x8qIF34hOCbHcaSwFVKOSQmD1fhN3Wh7T3G0l/L 0ySQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701771784; x=1702376584; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=33fHTG4hd84nJo+G3RKw/og5Lg2h+7y1b4GD/jJpS2Q=; b=rYYXFT2IvFEAmWWCBjrOKewSExSBTe+9trmb9vvy6XplJyARehAYU4tSH1XxpPl861 hONriuC22T7wQC/A6HXBLQ8KBWld+zLVzfbHeydsFlm5S/DO94ux5y3bD0Aud2oksY7t qd96Nz42SoSOscnFqDwRWkt+vEdZL6IkCrNpQaMDGTfFfCm2FrFXU7USGqksXt/1Pt7X FQdxm25P12xkhZGp/D7A/7v8D8x2V9mnrbxOwqCAxDhoBhfWISbfgM2CMfTAu9cwIoXC npOum9tak4qEyUofXQJC2Q0UZzGd4HbiAJKHpexlaaZTXnC52/3lJ8GGkOT6mTr1wq4A HHYg== X-Gm-Message-State: AOJu0YySlCBj5tn4L2gnoJGVn4zUj9EYZDz47LvrsZd0kO//0lUTWdY1 HD5t5EcpSNJXWSf+IUzPZfMHp2SDk4hIxl9PxCl3ii3N0TjHvcKnzQkjcfwDAYF1aY4gCvzcukX CARSsDqfuH7/4gv9lCMAKStOHQp1Qlj7jCadEE49IzdxhmN0muJ998NaBM+M= X-Google-Smtp-Source: AGHT+IFuVZnqls8s50nh20mAzd33XQDay5LYgo/RvYkGwRdnhQgJYLOnpmgqp7qPnVY6WXLk7qGbMS3YbQ== X-Received: from fuad.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1613]) (user=tabba job=sendgmr) by 2002:a81:f00a:0:b0:5d7:7d30:595c with SMTP id p10-20020a81f00a000000b005d77d30595cmr184549ywm.9.1701771784487; Tue, 05 Dec 2023 02:23:04 -0800 (PST) Date: Tue, 5 Dec 2023 10:22:48 +0000 In-Reply-To: <20231205102248.1915895-1-tabba@google.com> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20231205102248.1915895-1-tabba@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Message-ID: <20231205102248.1915895-7-tabba@google.com> Subject: [PATCH v1 6/6] KVM: arm64: Mark features as supported for protected VMs From: Fuad Tabba To: kvmarm@lists.linux.dev Cc: maz@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, eric.auger@redhat.com, jingzhangos@google.com, joey.gouly@arm.com, tabba@google.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Add features supported for protected VMs to the allow list. Signed-off-by: Fuad Tabba --- arch/arm64/kvm/hyp/include/nvhe/fixed_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h b/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h index e91922daa8ca..e628541585fc 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h +++ b/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h @@ -101,6 +101,7 @@ * - Privileged Access Never * - SError interrupt exceptions from speculative reads * - Enhanced Translation Synchronization + * - Control for cache maintenance permission */ #define PVM_ID_AA64MMFR1_ALLOW (\ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_HAFDBS) | \ @@ -108,7 +109,8 @@ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_HPDS) | \ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_PAN) | \ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_SpecSEI) | \ - ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_ETS) \ + ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_ETS) | \ + ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_CMOW) \ ) /* -- 2.43.0.rc2.451.g8631bc7472-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C3E3C4167B for ; Tue, 5 Dec 2023 10:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ROZcTuIYsP7M+gGekWkkOU068wc6f7Q30ImYd0bPHHs=; b=HQsl8hRLnF65BZUDj8AMRGV05K rsS8Z64SDjc2JNcUT8k4xe3ZZG3zGsd0mWluScUcC84vIaVULR821SpbbUYOUCdbZC6rDym9fF4dt dumrH1jz1Z47pm8NAW+1mcBJLq2PV+HWixHeNTXjG4cZ7pjMGD2bbaRPPr52ZC4qBdj1YV7mW1bKg eXTgk/VnCvYmLQ8n81w00pkqA04nmmYvW5EMf07IOQHiGpmFydbm3cuXYDfugaSC4sDDlW/EKdUg2 6I2HGs6VD7Xps+MyRJtC1JGGDt86VWX+pEaHtG+4YM/f41Ln4b+Caf6uMVvKhqUL5mIC+95D4PQiG LEf0BZug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rASa7-006xZ5-2U; Tue, 05 Dec 2023 10:23:11 +0000 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rASa1-006xTj-2c for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 10:23:07 +0000 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5d0c4ba7081so90366187b3.0 for ; Tue, 05 Dec 2023 02:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701771784; x=1702376584; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=33fHTG4hd84nJo+G3RKw/og5Lg2h+7y1b4GD/jJpS2Q=; b=QuMjaouj7Q8Kdzq7DtiI/lTjCgUIiGWmuTe1+PXy+ANxeaNAAEZr/jVthBC0SlASPP gWANuhWEDwgyIkfy3l5BmhEPX2DxOsUc8d+nNIgkFAPxkXCUpoFFsE+/DxwoiaVC8vFD HWiCo9E4hwqM8pzC2HJrLuVg9RmOW0AmpNTcK5i2RG3kvLq5mjSQJylkprX2HD5+EPdr OS0FGSHbCmQbcHQOBLmi9+6qJnjYaMOHqA0sbhozJWK5QgMT4UWJ1pEbDJy5T1KMB/iV h9j3cyTVDv9Xee31z7OT5aWD95i2iWcyVWihcnPp3bCDhjVbNDarhKM8xfMNxNgYoCjc PxlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701771784; x=1702376584; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=33fHTG4hd84nJo+G3RKw/og5Lg2h+7y1b4GD/jJpS2Q=; b=TexM/seZXygSUSKp16/MA+VejlM2ddzkDh/8hic/16FXJ5F3SV6QbNRYND8PQEhe4g fP2XAG5MFnH+5ggUB7YUwslr/g3/YavLYH0RooAXUmFe4qFKFDXt9cxDn/MjoVIv4C82 k1G5EcGmMa1tw8PC1qjid4/NxENpjBsyUJS/xV0Rxq7DjCMxH2C4vdwH46dNwymKIQu2 b4Opxu/G8XSoADViuWVpL2SF6N7hPlnS1rmAYdPMj4dDbmXnQWSZ7oKrJzuMq3rfbDyO VwpWPfz6wui/M53t6VXLYtwM5w1ArdDEPhbE8OMSF0JPMygR9JGtpOX2/CFZ2CwikTPu ySqg== X-Gm-Message-State: AOJu0YzcpOy650/U8g0pweY1p3Z1vsMpF5g7qoJ/aaGvmXJCBmcQdY8s s2T0D3X5wWICDuAWsBAmJN+xIlkOGA== X-Google-Smtp-Source: AGHT+IFuVZnqls8s50nh20mAzd33XQDay5LYgo/RvYkGwRdnhQgJYLOnpmgqp7qPnVY6WXLk7qGbMS3YbQ== X-Received: from fuad.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1613]) (user=tabba job=sendgmr) by 2002:a81:f00a:0:b0:5d7:7d30:595c with SMTP id p10-20020a81f00a000000b005d77d30595cmr184549ywm.9.1701771784487; Tue, 05 Dec 2023 02:23:04 -0800 (PST) Date: Tue, 5 Dec 2023 10:22:48 +0000 In-Reply-To: <20231205102248.1915895-1-tabba@google.com> Mime-Version: 1.0 References: <20231205102248.1915895-1-tabba@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Message-ID: <20231205102248.1915895-7-tabba@google.com> Subject: [PATCH v1 6/6] KVM: arm64: Mark features as supported for protected VMs From: Fuad Tabba To: kvmarm@lists.linux.dev Cc: maz@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, eric.auger@redhat.com, jingzhangos@google.com, joey.gouly@arm.com, tabba@google.com, linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_022305_858719_6D343BA5 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add features supported for protected VMs to the allow list. Signed-off-by: Fuad Tabba --- arch/arm64/kvm/hyp/include/nvhe/fixed_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h b/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h index e91922daa8ca..e628541585fc 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h +++ b/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h @@ -101,6 +101,7 @@ * - Privileged Access Never * - SError interrupt exceptions from speculative reads * - Enhanced Translation Synchronization + * - Control for cache maintenance permission */ #define PVM_ID_AA64MMFR1_ALLOW (\ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_HAFDBS) | \ @@ -108,7 +109,8 @@ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_HPDS) | \ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_PAN) | \ ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_SpecSEI) | \ - ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_ETS) \ + ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_ETS) | \ + ARM64_FEATURE_MASK(ID_AA64MMFR1_EL1_CMOW) \ ) /* -- 2.43.0.rc2.451.g8631bc7472-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel