Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1471096lqp; Mon, 15 Apr 2024 07:30:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWnNJzwgGi/pIpWtMWYftYNNs26AjtISmJspNFfWlWpHDI690+DY8K4B8I7sKnHlLy9Jt/HsAENgAqv/b6wTV7ZWo9HoIfbYa00XgaC8Q== X-Google-Smtp-Source: AGHT+IG/OUBGX7ZKUqjfC6gl317nXu2TkSQrQg42aSg0EyTYzJ0eeI/wkb+lWSnVVbjuKK850rDf X-Received: by 2002:a50:d7d9:0:b0:56b:986b:b4e7 with SMTP id m25-20020a50d7d9000000b0056b986bb4e7mr9003946edj.27.1713191448486; Mon, 15 Apr 2024 07:30:48 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u30-20020a50c05e000000b0056e029473a1si4461689edd.663.2024.04.15.07.30.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 07:30:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=PVoYqzxV; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-145356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 365281F21ADE for ; Mon, 15 Apr 2024 14:30:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0A982C6C; Mon, 15 Apr 2024 14:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PVoYqzxV" 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 CEC0478C75; Mon, 15 Apr 2024 14:28:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713191316; cv=none; b=oJRv9SFyfKP99PRrbmLMhXG6laYjVBmsdi8hGHJ2EDSpPub24eyzhDkIT5HLtnWrZGM0Sjcit+/0r6QKDM7uGYTfFw6Q3VbTqnEpYCjmZLkgmBqgY1r/byE+FTiJjf3onYvkegdgi/agnuLuKiqbAwBUfar2z7aSclaCi98xaIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713191316; c=relaxed/simple; bh=apPf5YxAYqe7YNBX6Cyef/BfXebvMrMHj5etULK04HA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MT2vHQbxjkU04u1UjZ+cuuI+Ot6C9JRQnJ1xF1ITRHZF4/MsG7K9/BX/YkDc1Gdo6nvEnCCiUocQDVO1DZmxZWg/c0EIhn2ylGudAuYwtM/tx+NKHXjo6UQ1pSlixwpfl+zVY8dF2dYrHeeRwwHMgqUlSdJwR8/r6Wop2fkgLrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PVoYqzxV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66DAEC2BD11; Mon, 15 Apr 2024 14:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713191315; bh=apPf5YxAYqe7YNBX6Cyef/BfXebvMrMHj5etULK04HA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PVoYqzxV6FYz2QdGdPUrtfj/AviX3PbD+lIC58voYZbHaWIlbDiQtx/QSrLGh9Cxu fxtbAFLtLOAcIFaOofyfd/B88GcuceWzI3sgWI3yE1kraBv1gt4sapwjenC+87Z9XJ 9hFGKoZvIZ79nhAd2P+8ut4HoqUxCA2LtFZHjenRtpzkbsR9SW5Zq33JaF1HL+mZ9+ UQD3tLk1yOAu0n8Xgh1OssQookLWj2d2RW5zOmxwjkqUjHIt5Hi5mNJeOEtZCZbOCN d4jVOfgZ0kZYTKBL7pSx3JTCoMaxVzKVt+mGUPOlAxwf5160v3sVcSl6ealmyvOZ9E inKWtr9TQffoQ== Date: Mon, 15 Apr 2024 15:28:27 +0100 From: Simon Horman To: Yi-De Wu Cc: Yingshiuan Pan , Ze-Yu Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Catalin Marinas , Will Deacon , Richard Cochran , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, David Bradil , Trilok Soni , My Chuang , Shawn Hsiao , PeiLun Suei , Liju Chen , Willix Yeh , Kevenny Hsieh Subject: Re: [PATCH v10 04/21] virt: geniezone: Add GenieZone hypervisor driver Message-ID: <20240415142827.GA2320920@kernel.org> References: <20240412065718.29105-1-yi-de.wu@mediatek.com> <20240412065718.29105-5-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; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240412065718.29105-5-yi-de.wu@mediatek.com> On Fri, Apr 12, 2024 at 02:57:01PM +0800, Yi-De Wu wrote: > From: "Yingshiuan Pan" > > GenieZone hypervisor(gzvm) is a type-1 hypervisor that supports various > virtual machine types and provides security features such as TEE-like > scenarios and secure boot. It can create guest VMs for security use > cases and has virtualization capabilities for both platform and > interrupt. Although the hypervisor can be booted independently, it > requires the assistance of GenieZone hypervisor kernel driver(gzvm-ko) > to leverage the ability of Linux kernel for vCPU scheduling, memory > management, inter-VM communication and virtio backend support. > > Add the basic hypervisor driver. Subsequent patches will add more > supported features to this driver. > > Signed-off-by: Yingshiuan Pan > Signed-off-by: Jerry Wang > Signed-off-by: Liju Chen > Signed-off-by: Yi-De Wu .. > +static struct platform_driver gzvm_driver = { > + .probe = gzvm_drv_probe, > + .remove = gzvm_drv_remove, > + .driver = { > + .name = KBUILD_MODNAME, > + .owner = THIS_MODULE, Hi Yi-De Wu, A minor nit from my side: There is no need to set owner here as owner is set (overridden) by module_platform_driver(). Flagged by Coccinelle. > + .of_match_table = gzvm_of_match, > + }, > +}; > + > +module_platform_driver(gzvm_driver); > + > +MODULE_DEVICE_TABLE(of, gzvm_of_match); > +MODULE_AUTHOR("MediaTek"); > +MODULE_DESCRIPTION("GenieZone interface for VMM"); > +MODULE_LICENSE("GPL"); ..