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 E099AC77B7D for ; Mon, 15 May 2023 20:46:35 +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: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=o+gLDA3bMbR0nAzBNji0gxmJs+VdPhxU7VzyXGEeZEc=; b=PJknFdjM4hbfLg +M83PNHV4IxXx9Zgo7HbtlPXSc2Y7THrcyOpHAWJiIoYLZ+jevVRxz3cBQ0Qy8m1OVgGjPnhu0L4j HDLi45vqC+mC0/I4W+7Y7ttIdkS+eCKbXdd8V+FOPsf1mLT0Lzlc/RtGrAU5VV1+GjeiCIrtjHIXy 57bbJHGjEq8JAcbSjmTRLkiW1BKHprwCJUsD//RVPIZG0QwL42FQf3RDxxxHjlcebbO4ZtEz6eGVu vMPE44Jr3AcUU3hklh8JnwpQvpHV2JcGRwMAbwLCRNgoTnxLkcnVLkDqHsLT/XS3b5b+ShTZowUnD id0OPE5P1C8FziiAZg+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyf5C-003Srp-0c; Mon, 15 May 2023 20:46:14 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyf56-003SpI-17 for linux-arm-kernel@lists.infradead.org; Mon, 15 May 2023 20:46:09 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4063C621E9; Mon, 15 May 2023 20:46:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7249C433EF; Mon, 15 May 2023 20:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684183566; bh=IgotsoE+lKbu+zjyxa2eaxVvm4lP9qydqGNJoKmctcw=; h=From:To:Cc:Subject:Date:From; b=U/bRCxs3nu/a5nb/hVAm7N+rbLiZh5wXdH3kNCDzRepPrJdDZmhYG/VWSIYAcLLrJ z7wPtDIOPVGBjwkFt/24xjYVrbMIWPu0d32EwHdMTXhK0A0cvGZeXl8TJzLXXi+44c +J8HUHsirHv1fGWOO4MUiu8yhte8Bo3pm9HkPxwYe+KQlRJrFYjYZOPdhB27I/3cDW Rt49tveNT4IuDar0C/LMwUrDIeM3vOfNkchJQq7+U8iZmH3L5oH4HBqmlCQOXoiVLh hTLjP9tui1bR5riEccvdQyrNmbIpJbBtUmrH28bfjaJqb63qvLfNLS4AeJBpAt61lM IbqUoXns0us0Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pyf52-00FM0a-A5; Mon, 15 May 2023 21:46:04 +0100 From: Marc Zyngier To: James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Cc: Catalin Marinas , steven.price@arm.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Subject: [PATCH 0/2] KVM: arm64: Handle MTE Set/Way CMOs Date: Mon, 15 May 2023 21:45:59 +0100 Message-Id: <20230515204601.1270428-1-maz@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, catalin.marinas@arm.com, steven.price@arm.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230515_134608_428396_8E3DDC67 X-CRM114-Status: GOOD ( 10.16 ) 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 When the MTE support was added, it seens the handling of MTE Set/Way was ommited, meaning that the guest will get an UNDEF if it tries to do something that is quite stupid, but still allowed by the architecture... Found by inspection while writting the trap support for NV. Marc Zyngier (2): arm64: Add missing Set/Way CMO encodings KVM: arm64: Handle trap of tagged Set/Way CMOs arch/arm64/include/asm/sysreg.h | 6 ++++++ arch/arm64/kvm/sys_regs.c | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel