Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: "Yi-De Wu (吳一德)" <Yi-De.Wu@mediatek.com>,
	"corbet@lwn.net" <corbet@lwn.net>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"krzysztof.kozlowski@linaro.org" <krzysztof.kozlowski@linaro.org>,
	"catalin.marinas@arm.com" <catalin.marinas@arm.com>,
	"krzysztof.kozlowski+dt@linaro.org"
	<krzysztof.kozlowski+dt@linaro.org>,
	"Yingshiuan Pan (潘穎軒)" <Yingshiuan.Pan@mediatek.com>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"will@kernel.org" <will@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"MY Chuang (莊明躍)" <MY.Chuang@mediatek.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"PeiLun Suei (隋培倫)" <PeiLun.Suei@mediatek.com>,
	"Liju-clr Chen (陳麗如)" <Liju-clr.Chen@mediatek.com>,
	"Jades Shih (施向玨)" <jades.shih@mediatek.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"Shawn Hsiao (蕭志祥)" <shawn.hsiao@mediatek.com>,
	"Miles Chen (陳民樺)" <Miles.Chen@mediatek.com>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	"Ivan Tseng (曾志軒)" <ivan.tseng@mediatek.com>,
	"Ze-yu Wang (王澤宇)" <Ze-yu.Wang@mediatek.com>
Subject: Re: [PATCH v1 3/6] soc: mediatek: virt: geniezone: Introduce GenieZone hypervisor support
Date: Fri, 14 Apr 2023 12:48:19 +0200	[thread overview]
Message-ID: <a157c5e7-d90c-5b99-42bb-ae02b6677732@collabora.com> (raw)
In-Reply-To: <533a1a9b653cf63f1e5df7f95d1b23902809561d.camel@mediatek.com>

Il 14/04/23 10:43, Yi-De Wu (吳一德) ha scritto:
> On Thu, 2023-04-13 at 19:08 +0200, Matthias Brugger wrote:
>> External email : Please do not click links or open attachments until
>> you have verified the sender or the content.
>>
>>
>> On 13/04/2023 14:55, Krzysztof Kozlowski wrote:
>>> On 13/04/2023 11:07, Yi-De Wu wrote:
>>>> From: "Yingshiuan Pan" <yingshiuan.pan@mediatek.com>
>>>>
>>>> GenieZone is MediaTek proprietary hypervisor solution, and it is
>>>> running
>>>> in EL2 stand alone as a type-I hypervisor. This patch exports a
>>>> set of
>>>> ioctl interfaces for userspace VMM (e.g., crosvm) to operate
>>>> guest VMs
>>>> lifecycle (creation, running, and destroy) on GenieZone.
>>>>
>>>> Signed-off-by: Yingshiuan Pan <yingshiuan.pan@mediatek.com>
>>>> Signed-off-by: Yi-De Wu <yi-de.wu@mediatek.com>
>>>> ---
>>>>    arch/arm64/include/uapi/asm/gzvm_arch.h       |  79 ++++
>>>>    drivers/soc/mediatek/Kconfig                  |   2 +
>>>>    drivers/soc/mediatek/Makefile                 |   1 +
>>>>    drivers/soc/mediatek/virt/geniezone/Kconfig   |  17 +
>>>
>>> Hypervisor drivers do not go to soc. Stop shoving there everything
>>> from
>>> your downstream. Find appropriate directory, e.g. maybe
>>> drivers/virt.
>>
>> Acked, what is the reason you want to add this to drivers/soc instead
>> of
>> drivers/virt?
>>
>> Regards,
>> Matthias
>>
> Noted. We would take your advice and move it from
> drivers/soc/mediatek/virt to /drivers/virt on next version.
> 
> The reason we put it under our soc/ is that the drver is highly
> propietary for mediatek's product and for aarch64 only. Maybe it's not
> general enough to put in under /drivers/virt.

This is the same reason why mediatek-drm is in drivers/gpu/drm/ and the same why
mediatek-cpufreq is in drivers/cpufreq/.

I know that this is a MediaTek specific implementation, but it *is* a hypervisor
driver, hence it belongs to the hypervisor drivers folder.
It's not even granted that this will not support other MediaTek architectures in
the future, but that's not a discussion to do right here and right now, and it's
anyway irrelevant in this moment.

By the way, good job with upstreaming your drivers targeting MediaTek Android SW!
I'm enthusiast to see that.

Regards,
Angelo



  parent reply	other threads:[~2023-04-14 10:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13  9:07 [PATCH v1 0/6] GenieZone hypervisor drivers Yi-De Wu
2023-04-13  9:07 ` [PATCH v1 1/6] docs: geniezone: Introduce GenieZone hypervisor Yi-De Wu
2023-04-13  9:07 ` [PATCH v1 2/6] dt-bindings: hypervisor: Add binding for MediaTek " Yi-De Wu
2023-04-13 13:05   ` Krzysztof Kozlowski
2023-04-14  8:35     ` Yi-De Wu (吳一德)
2023-04-14  8:42       ` Krzysztof Kozlowski
2023-05-12  7:52         ` Yi-De Wu (吳一德)
2023-04-14 15:29       ` Matthias Brugger
2023-05-12  7:52         ` Yi-De Wu (吳一德)
2023-04-13  9:07 ` [PATCH v1 3/6] soc: mediatek: virt: geniezone: Introduce GenieZone hypervisor support Yi-De Wu
2023-04-13 10:37   ` kernel test robot
2023-04-13 12:42   ` kernel test robot
2023-04-13 12:53   ` kernel test robot
2023-04-13 12:55   ` Krzysztof Kozlowski
2023-04-13 17:08     ` Matthias Brugger
2023-04-14  8:43       ` Yi-De Wu (吳一德)
2023-04-14  8:51         ` Krzysztof Kozlowski
2023-04-14 17:17           ` Trilok Soni
2023-05-12  7:29             ` Yi-De Wu (吳一德)
2023-05-12  7:29           ` Yi-De Wu (吳一德)
2023-04-14 10:48         ` AngeloGioacchino Del Regno [this message]
2023-05-12  7:53           ` Yi-De Wu (吳一德)
2023-04-14 11:53   ` AngeloGioacchino Del Regno
2023-04-13  9:07 ` [PATCH v1 4/6] soc: mediatek: virt: geniezone: Introduce irqchip for virtual interrupt injection Yi-De Wu
2023-04-13  9:07 ` [PATCH v1 5/6] soc: mediatek: virt: geniezone: Add ioeventfd support Yi-De Wu
2023-04-13  9:07 ` [PATCH v1 6/6] soc: mediatek: virt: geniezone: Add irqfd support Yi-De Wu
2023-04-13 13:34   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a157c5e7-d90c-5b99-42bb-ae02b6677732@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=Liju-clr.Chen@mediatek.com \
    --cc=MY.Chuang@mediatek.com \
    --cc=Miles.Chen@mediatek.com \
    --cc=PeiLun.Suei@mediatek.com \
    --cc=Yi-De.Wu@mediatek.com \
    --cc=Yingshiuan.Pan@mediatek.com \
    --cc=Ze-yu.Wang@mediatek.com \
    --cc=catalin.marinas@arm.com \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=ivan.tseng@mediatek.com \
    --cc=jades.shih@mediatek.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=shawn.hsiao@mediatek.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox