From patchwork Fri Apr 9 15:21:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 12194349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A49C7C433ED for ; Fri, 9 Apr 2021 15:23:34 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4CFAA610CF for ; Fri, 9 Apr 2021 15:23:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CFAA610CF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Vt3EzlS8IQFNFel/I8oGvHmLF3SmOBxAPEGl64WRLqM=; b=bFIY3XwR+pB43XH5Wjmaf/UPAP IsoO8UOntLfV+hSYP+vfdA1wx3KXJwIDlElBzs9IOY+sIHud+U86QPwugW1JEYTX5Ta34cRStrC6Y YuUFPg8xUlBGeyD6v/Dy5iTbZa+KvErB+g+1yiZ9TIrXbgf3cAcg98Krri3aFM98teiJdaSYAY1sy 3ZFCOrYBM65rJy6MxBX3QKKrBROOKup9vvZJpUOfCbBDZEWxJ3WYJsUtew/p3zKZ4m7QJVtDoYwxs WXRffTX/RwjWbNTCSr80ek48w8eVlTLsFcxkTao62yNsu95XY3lDWAjhwbZtmSIKJJjbbcmEHkBV/ oPIWSfbg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUsxL-000ztd-JF; Fri, 09 Apr 2021 15:21:59 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUsx3-000zro-GN for linux-arm-kernel@desiato.infradead.org; Fri, 09 Apr 2021 15:21:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=3LLGucK0G5JjMOwe8INbMKLRLNaFWNKMM5mM02DV8bI=; b=Jk3TQ46K/sZ4VdJA0hN99VuhfV lhN9azD2N6VXmcVzLIuqFOoqbBfh56Po8E4p2NYiHumiZa7b1sOctYce1keDgyLgd4FL1z5qhV1X4 znZNIiHigsqrb6WCqgWrvavD/qA37fV0SgOr4HniUFwgPk+XLi9r9Mb5Q/rUhR/ykmyrrcvqHw9nF e97rYodcTTeJcga0ednDJ7LJyHrWvOKQ5ZjWzj8D8KaM2rPzL78M5gegm3B8GmSiGCPiTWJCveOIv /0l7nGqX8GzChM/GwGa/ZT92nIKEhnpO2OKQQbW7KfT72VjiMlSQLRvbpx1EIhDbUNKlyXULyjHsM 7Eb9KVOg==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUsx0-004cIX-Pg for linux-arm-kernel@lists.infradead.org; Fri, 09 Apr 2021 15:21:40 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 264A51FB; Fri, 9 Apr 2021 08:21:31 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 21E773F694; Fri, 9 Apr 2021 08:21:30 -0700 (PDT) From: Alexandru Elisei To: maz@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com Subject: [PATCH 0/2] KVM: arm64: Hide SPE from guests Date: Fri, 9 Apr 2021 16:21:52 +0100 Message-Id: <20210409152154.198566-1-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210409_082138_896936_8C5F710D X-CRM114-Status: UNSURE ( 8.35 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This was part of the KVM SPE series that I posted some time ago [1]. The series didn't get too much attention, so I've decided to send this fix/cleanup/improvement separately, to make it easier to review. I've split the original patch into two because it makes more sense to me this way, but I'm not opposed to squashing the series back into a single patch if that is preferred. Based on v5.12-rc6. [1] https://www.spinics.net/lists/kvm-arm/msg42962.html Alexandru Elisei (2): KVM: arm64: Don't print warning when trapping SPE registers KVM: arm64: Don't advertise FEAT_SPE to guests arch/arm64/include/asm/sysreg.h | 2 ++ arch/arm64/kvm/sys_regs.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+)