From patchwork Mon Mar 28 10:33:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 12793388 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 256FDC433F5 for ; Mon, 28 Mar 2022 10:34:51 +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:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xLhVdj49z8w/Kf7BE6q7oy2nGk5sKDRX0wcUdEGNgws=; b=Yo7nCSvpADEgdU 1EnIj9SedERg2KrYiIX2gcNiU6OJnClpLTgcRYRdn4ktMPBW+BoMbi4tOwHDLNOew9mOfFWaY9zG2 9jgRNhOi5KdM2ESCBvYPAmbA/Hn+IrV2CMe7U/Ib1+pJX+wRhj56kK1fBAIWym4TF3OuriX9aplpI 1xLiISIUTP8Fv1CfIHwiklXx+QZtkh9gwfSQ/NVWCBif2+TWYxtgPUimirJ1KiLKNYT+ur+W+a0tv r7RluaCRDToGUnJ+X2oeQ+1fb08Pdkq8cXOXIe0/8Hy2e5tHLrNjLOx4OJ6l/gW0iDKaxvNYfdeRN zIl3Jdt+z3V3Qj9e4EHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nYmgw-008CKE-PQ; Mon, 28 Mar 2022 10:33:42 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nYmgt-008CIm-HR for linux-arm-kernel@lists.infradead.org; Mon, 28 Mar 2022 10:33: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 AF5ADD6E; Mon, 28 Mar 2022 03:33:36 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 73BF43F66F; Mon, 28 Mar 2022 03:33:35 -0700 (PDT) From: Alexandru Elisei To: will@kernel.org, kvm@vger.kernel.org, julien.thierry.kdev@gmail.com, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, steven.price@arm.com, vladimir.murzin@arm.com Subject: [kvmtool PATCH v3 0/2] arm64: Add MTE support Date: Mon, 28 Mar 2022 11:33:26 +0100 Message-Id: <20220328103328.18768-1-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220328_033339_664058_25073868 X-CRM114-Status: GOOD ( 10.53 ) 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 Add Memory Tagging Extension (MTE) support in kvmtool. Changes since v2: * Gathered Reviewed-by and Tested-by tags from Vladimir, thank you! * Slight tweaks to the kvmtool debug and user messages. * Do not set kvm->arch.cfg.mte_disabled is the MTE capability is not available. It is not used anywhere outside of the MTE setup function and kvm->arch.cfg is for user config options. Changes since v1: * Update headers to v5.17 * MTE capability is now enabled by default and the command line option --disable-mte has been added. Alexandru Elisei (2): update_headers.sh: Sync ABI headers with Linux v5.17 aarch64: Add support for MTE arm/aarch32/include/kvm/kvm-arch.h | 3 +++ arm/aarch64/include/asm/kvm.h | 5 +++++ arm/aarch64/include/kvm/kvm-arch.h | 1 + arm/aarch64/include/kvm/kvm-config-arch.h | 2 ++ arm/aarch64/kvm.c | 22 ++++++++++++++++++++++ arm/include/arm-common/kvm-config-arch.h | 1 + arm/kvm.c | 2 ++ include/linux/kvm.h | 18 ++++++++++++++++++ x86/include/asm/kvm.h | 19 ++++++++++++++++++- 9 files changed, 72 insertions(+), 1 deletion(-)