Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp264117lqn; Fri, 12 Apr 2024 00:01:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXhuvvofFVfez/TiheNuaHDzpVsVoNU9bGLsQ3HtG/aodtlQ+GJMYXemPh2BIsJyoza7ZE7/0jgBMfCqhiC5fcTlOednhF2tiVPva3EQ== X-Google-Smtp-Source: AGHT+IFwJKB+bXRDSpM8EVGfYs/3NzubUOGKHaV2t4JnmFpBHteNVEjsacXgxv2NnTY4x9rKQnU6 X-Received: by 2002:a05:6a00:3a1d:b0:6ed:4a97:10cc with SMTP id fj29-20020a056a003a1d00b006ed4a9710ccmr5885692pfb.3.1712905271905; Fri, 12 Apr 2024 00:01:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712905271; cv=pass; d=google.com; s=arc-20160816; b=zXBZQWZTBioPPR7TgEoFgFGJUmzDty8URg91e97SdO8juTOUzXpY1rOtlqiQKadZMj 76xXO6Cr8NfsTjBDSuaz634Lh23ZRYqq0059sL5Wcl18qFh7WyZAackd1ZQajqVz3/a6 Qe8ygUS0F5Skd+wVa/ncvPzwW1H6EmPllowMsxyklokGiwJeyhkg722s/1blOMH3JXlx jNlAyeXTXBvtucI9K36x4z8kCEsvhHneRL0MAcY7TbVa5M9s1NS7KyuteBkuhNqkDo7S sk7LluooDjo1t7OQpCNXwWQ4TIiZvfssm8UhltkiFq+/k6alIKOqYCAAx7HQ109OC9bx qe5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AiR6hdy4wlQ6FRlbcH1KPtOUfNUNeCb2g6btveoZqFQ=; fh=50wlKO4KhCoL2do3gLgjFh4z8HnS9fBLiSHRikYTbyU=; b=yYkyK17SPtjw6gkXc3e8LRx+GFm65wQd/Fb1Se7FYt6S4lc+DKmtY+PrVZEQkXOwYI xZKteLXlAF2a+YZ9UVDwMfAagDxRP4/XtH7kC6fw2IHWxG0G0+AH8SamgfwiW6xDG5W6 6PB6oQ72MWSoYkypQx5TWqbe969lTt/DgsO1OF6dCnFyqOWrM4du1/eEEWSWjk0T48Sq idvZkuLndbhBoIn3Mjq5ZfauHxCjrAE7MfBmUlhS9nEn9pCA2e28n3uEMN9PvrOr+n11 NiE2siaeP9q9MeitxYM1m+IPbkx0+H9DqjWsmFP0Jf5P06/xUlcKbil8WqhRdC9ZSZt9 Xnow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OJ+ZTZFM; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-142087-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u27-20020a056a00099b00b006ea8148913esi2887184pfg.338.2024.04.12.00.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 00:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142087-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OJ+ZTZFM; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-142087-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 91293281EB1 for ; Fri, 12 Apr 2024 07:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEE5954FAD; Fri, 12 Apr 2024 06:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="OJ+ZTZFM" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 5B8734E1DD; Fri, 12 Apr 2024 06:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712905079; cv=none; b=pahYEvF0yrNEvlbD7YRFb8CP87wPmeowZTeGcVZuEQgk6S8ETuo2YG34AfKAZUOn2PFWZLmT5rJli1uohfFuXN8pFv9Qy0DeUUZ5QRu5nxaP8opWXfoRnn1h/vtR3b0Am61hsAEsyXVHlYbMfTxtgAM9IdhDk0dX1A08mUpjROc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712905079; c=relaxed/simple; bh=FUpETsFgu8pQoCUAi/idXmabQsHYEbi/gDmd3xqHUY8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Vd3PLC0crMyUN9oIvRelP/lKdP4WBw2aH3SsAGhZDUhHIcVYuzE3Q4AfWUTsWtHTHoY8lYL2WPPF8c1Ul5wdeu9vNh6vyGZkyIK/RgyoXIiE60RHflCW8zlEg51MsUXG415QQpF57KRX6iQExHhVcoYVfWI2X1yZQK8IR+OrAJw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=OJ+ZTZFM; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: f843e826f89911eeb8927bc1f75efef4-20240412 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=AiR6hdy4wlQ6FRlbcH1KPtOUfNUNeCb2g6btveoZqFQ=; b=OJ+ZTZFMz00qKLCssGDFUptfjMRZzQT41uMGmIBpkpECLnsCJlrjH7X6bYwRAIcKuJmmdA4HrXPO49S/cw+inu1ldYGellTBAxVYGkoSsB2iAHbevhsrmfz/V20HZQ2DbFqLZwXtY2SPh0B8GjeYbC8NfscloRYhN7E2+x4O9a8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:764619f5-837e-42c0-902e-2e2a315deac6,IP:0,U RL:25,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:6f543d0,CLOUDID:854a9782-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: f843e826f89911eeb8927bc1f75efef4-20240412 Received: from mtkmbs09n2.mediatek.inc [(172.21.101.94)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1534360413; Fri, 12 Apr 2024 14:57:47 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 12 Apr 2024 14:57:45 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 12 Apr 2024 14:57:44 +0800 From: Yi-De Wu To: Yingshiuan Pan , Ze-Yu Wang , Yi-De Wu , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Catalin Marinas , Will Deacon , Richard Cochran , Matthias Brugger , AngeloGioacchino Del Regno CC: , , , , , , David Bradil , Trilok Soni , My Chuang , Shawn Hsiao , PeiLun Suei , Liju Chen , "Willix Yeh" , Kevenny Hsieh Subject: [PATCH v10 03/21] dt-bindings: hypervisor: Add MediaTek GenieZone hypervisor Date: Fri, 12 Apr 2024 14:57:00 +0800 Message-ID: <20240412065718.29105-4-yi-de.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240412065718.29105-1-yi-de.wu@mediatek.com> References: <20240412065718.29105-1-yi-de.wu@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--11.112700-8.000000 X-TMASE-MatchedRID: YXgS1C6OPWzHCChNBbZThW3NvezwBrVmUXlp1FHYSPVfSPKGP39CrlYW wxB9tw0TJhXAZMA4h8Vncviyus0oC5/JE/eOMuX3vGTc5oROod7rpC+cgGEjuhHfiujuTbedOOF xXXPqKHnyga3Otdj4UogmzRSnu+RYqjvsBy5CHDu4jAucHcCqnZYcYQ11P5U/m5zZfbOy37EOsb dDU8hPqApsQGG0bIwTwKX8fpO+yjIFvymnGwMQKcgc0seoKgtWDcK8n+cR7XKbKItl61J/yUGDD kbg1gJk32mPO5tnascgBwKKRHe+r4Tmrs6kIqRYDHUdSdBtRVeFr2eUKstlg95yxw2xiJGmTC56 0xUyzIQ= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--11.112700-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 9DE13550BABBE4B27820AF5D7E56489CBDF4740A6B5978BE7A30613916C11B812000:8 X-MTK: N From: "Yingshiuan Pan" Add documentation for GenieZone(gzvm) node. This node informs gzvm driver to start probing if geniezone hypervisor is available and able to do virtual machine operations. [Reason to use dt solution] - The GenieZone hypervisor serves as a vendor model for facilitating platform virtualization, with an implementation that is independent from Linuxism. - In contrast to the dt solution, our previous approach involved probing via hypercall to determine the existence of our hypervisor. However, this method raised concerns about potentially impacting all systems, including those without the GenieZone hypervisor embedded[ref]. Link: https://lore.kernel.org/all/2fe0c7f9-55fc-ae63-3631-8526a0212ccd@linaro.org/ Signed-off-by: Yingshiuan Pan Signed-off-by: Liju Chen Signed-off-by: Yi-De Wu --- .../hypervisor/mediatek,geniezone-hyp.yaml | 31 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/hypervisor/mediatek,geniezone-hyp.yaml diff --git a/Documentation/devicetree/bindings/hypervisor/mediatek,geniezone-hyp.yaml b/Documentation/devicetree/bindings/hypervisor/mediatek,geniezone-hyp.yaml new file mode 100644 index 000000000000..ab89a4c310cb --- /dev/null +++ b/Documentation/devicetree/bindings/hypervisor/mediatek,geniezone-hyp.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hypervisor/mediatek,geniezone-hyp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek GenieZone hypervisor + +maintainers: + - Yingshiuan Pan + +description: + This interface is designed for integrating GenieZone hypervisor into Android + Virtualization Framework(AVF) along with Crosvm as a VMM. + It acts like a wrapper for every hypercall to GenieZone hypervisor in + order to control guest VM lifecycles and virtual interrupt injections. + +properties: + compatible: + const: mediatek,geniezone-hyp + +required: + - compatible + +additionalProperties: false + +examples: + - | + hypervisor { + compatible = "mediatek,geniezone-hyp"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 0cda103140b4..0d1e5d127929 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9180,6 +9180,7 @@ GENIEZONE HYPERVISOR DRIVER M: Yingshiuan Pan M: Ze-Yu Wang M: Yi-De Wu +F: Documentation/devicetree/bindings/hypervisor/mediatek,geniezone-hyp.yaml F: Documentation/virt/geniezone/ GENWQE (IBM Generic Workqueue Card) -- 2.18.0