From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E863BFC0A for ; Mon, 15 May 2023 20:46:06 +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 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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