Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp629683rwo; Fri, 21 Jul 2023 18:57:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGwTeX3+tvS2PxWFIKKihQr0pgzZjFW4i7Io6tZi2iVWVheTlgKGH2xboXHnR3M2nEROKta X-Received: by 2002:a17:903:1205:b0:1b7:e86f:7631 with SMTP id l5-20020a170903120500b001b7e86f7631mr3526245plh.19.1689991021903; Fri, 21 Jul 2023 18:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689991021; cv=none; d=google.com; s=arc-20160816; b=FCEUfj5qqWfiSH+RQSt9UKfsu6tu1PxefAmODzoR/A13F1GcyI/6JMXJcfY2DSWQBo 218ED6Bs9vxiPIcKpSdLct/KOOkVZ25wwIumMSW9I8ui6jYDc6GPulIPeNFZnAXXVTCY /9eYbnOmWtsu54bVBLSiA7buSK0jfntBpg2oFkLdb6OuCMmtbg1rwtuTLaTpDk4BJqy0 7fQ92Q9VejaNRO9tFtdSs8eBWne6mhJjmUfplEJ9NoefsGC7UqyBxZ69YWQPKe2Z4bhT DpmvtV4lC7jSEiWAN6h63kGGTnW3vllG7DGcxV+0jqAt8sXSiQzTb/Em+TQ1Z17EDKGP 7p2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YvapDlgEUzhYWt9kSo8gs1KQpSfobdwO/63wrHbPhWU=; fh=LK/yS5oPmkvvumqw46XbWJKbSv6bJ0HdSenu+PzNebo=; b=mlUkgMlOe2HIEDccxzys2TXDsCZWnboJ0x8Swgl1BshxOxyGb8lvNPuarDVUMBTb0r a4oEC/UZ3S0K3V6ShT26+oKEFxwtGFGO95i2MISqNvYfGUZRSTZkFvZWEgD0fDSprCEx XW7Jj1HU43WQrUFykos2LhCV4jDs+lPdNrkRGz+Q/EVMBlXIdPRD4uJkfOYei9tojroF fIzdEpiTyIvBonDaJADXGkMCyEAGuxI+lVZJf45qkUnZUKHH41WNEtsKEsmKRwf1aYJ6 i7F48L435APcTLcKq0YOCNfEw/9E6sNEXwZb/pa6t95vAIPkqeBgSIKXH1cQ4ZzD7Ios 5FVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=csljY8xG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a17090ab30b00b00262e49c31c2si4473798pjr.28.2023.07.21.18.56.49; Fri, 21 Jul 2023 18:57:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=csljY8xG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjGVB35 (ORCPT + 99 others); Fri, 21 Jul 2023 21:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjGVB3y (ORCPT ); Fri, 21 Jul 2023 21:29:54 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F94A3C01; Fri, 21 Jul 2023 18:29:52 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36M1RjGa015517; Sat, 22 Jul 2023 01:29:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=YvapDlgEUzhYWt9kSo8gs1KQpSfobdwO/63wrHbPhWU=; b=csljY8xGK+xqVZd9kL9pb1hsEQS9UU02KLfZ7LjBQU+8xp/QkTeyqMVgLT+RfJgsSmbv NNq7U4CqUNqBoiyV8+ovGLlM6surnstAdWBmRT0V0TbP5KfGmx8NsOeauf7pnck7gspB 0rtpquf2QMwDDfh0AoN+qWLHTHiLii7bh8Ux5X7qOWTzrlybTOrt8dtRr0Z2FYQT+pk7 ddMXf2SbkElQaVWC8NZBvdE2WO8DLFjSTc58XYAm42QMqemfByKfagPNqDmE9GHAXZiP v91Uy/FGSfwbG95fDDGqjhtrSk+BVzMa3LtWhcnrd+Njaxa1d9vuykDVxh13I4GkmS5B zg== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ryfyf2sqf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Jul 2023 01:29:30 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36M1TLt0013205 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Jul 2023 01:29:21 GMT Received: from [10.110.24.156] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Fri, 21 Jul 2023 18:29:19 -0700 Message-ID: Date: Fri, 21 Jul 2023 18:29:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 2/9] virt: geniezone: Add GenieZone hypervisor support Content-Language: en-US To: =?UTF-8?B?WWktRGUgV3UgKOWQs+S4gOW+tyk=?= , "corbet@lwn.net" , "angelogioacchino.delregno@collabora.com" , "krzysztof.kozlowski@linaro.org" , "catalin.marinas@arm.com" , =?UTF-8?B?WWluZ3NoaXVhbiBQYW4gKOa9mOepjui7kik=?= , "matthias.bgg@gmail.com" , "arnd@arndb.de" , =?UTF-8?B?WmUteXUgV2FuZyAo546L5r6k5a6HKQ==?= , "will@kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "robh+dt@kernel.org" , =?UTF-8?B?TVkgQ2h1YW5nICjojormmI7ouo0p?= , "conor.dooley@microchip.com" , =?UTF-8?B?UGVpTHVuIFN1ZWkgKOmai+WfueWAqyk=?= , =?UTF-8?B?TGlqdS1jbHIgQ2hlbiAo6Zmz6bqX5aaCKQ==?= , =?UTF-8?B?SmFkZXMgU2hpaCAo5pa95ZCR546oKQ==?= , "conor+dt@kernel.org" , "dbrazdil@google.com" , "linux-arm-kernel@lists.infradead.org" , "krzysztof.kozlowski+dt@linaro.org" , =?UTF-8?B?U2hhd24gSHNpYW8gKOiVreW/l+elpSk=?= , "linux-arch@vger.kernel.org" , "linux-doc@vger.kernel.org" , =?UTF-8?B?SXZhbiBUc2VuZyAo5pu+5b+X6LuSKQ==?= , =?UTF-8?B?Q2hpLXNoZW4gWWVoICjokYnlpYfou5Ip?= References: <20230609085214.31071-1-yi-de.wu@mediatek.com> <20230609085214.31071-3-yi-de.wu@mediatek.com> <2fe0c7f9-55fc-ae63-3631-8526a0212ccd@linaro.org> From: Trilok Soni In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: KmU9ARhqeji_KEvAO7GLvlFq471SDz7_ X-Proofpoint-ORIG-GUID: KmU9ARhqeji_KEvAO7GLvlFq471SDz7_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-21_12,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1011 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307220011 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/21/2023 1:46 AM, Yi-De Wu (吳一德) wrote: > On Fri, 2023-06-09 at 17:22 +0200, Krzysztof Kozlowski wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> On 09/06/2023 10:52, Yi-De Wu wrote: >>> From: "Yingshiuan Pan" >>> >>> GenieZone is MediaTek 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 and destroy) on GenieZone. >> >> ... >> >>> +static int gzvm_drv_probe(void) >>> +{ >>> +int ret; >>> + >>> +if (gzvm_arch_probe() != 0) { >>> +pr_err("Not found available conduit\n"); >>> +return -ENODEV; >>> +} >>> + >>> +ret = misc_register(&gzvm_dev); >>> +if (ret) >>> +return ret; >>> +gzvm_debug_dev = &gzvm_dev; >>> + >>> +return 0; >>> +} >>> + >>> +static int gzvm_drv_remove(void) >>> +{ >>> +destroy_all_vm(); >>> +misc_deregister(&gzvm_dev); >>> +return 0; >>> +} >>> + >>> +static int gzvm_dev_init(void) >>> +{ >>> +return gzvm_drv_probe(); >> >> So for every system and architecture you want to: probe, run some SMC >> and then print error that it is not othe system you wanted. >> >> I don't think this is what we want. You basically pollute all of >> other >> users just to have your hypervisor guest additions... >> >> >> Best regards, >> Krzysztof > > > hi Krzysztof, > > After some back-and-forth discussion[1][2][3][4][5], we'd like to bring > bakc all the attension of related issues in this thread. > > We're going to restore the dt solution on our next version, which means > we would maintain a simple dt for discovering the hypervisor node and > probe for the status of the device when needed. .. see the comment below. > > The reasons are listed below for the record. > - Although dt is for hardware, it's difficult to discover a specific > hypervisor without probing on all subsystem and thus pollute all of > other users[4] as a consequence. I don't understand. Patches will help here to understand what exactly you are referring here. > - The GenieZone hypervisor could be considered as a vendor model to > assist platform virtualization whose implementation is independent from > Linuxism. Then why we are adding this hypervisor support in Linux? > > Please let us if there're any other concerns. > > Reference > > [1] > https://android-review.googlesource.com/c/kernel/common/+/2447547/comment/495502f3_bb52344b/ Why we look at the ACK patches here on the LKML? Please submit them here if you would like to discuss and review? ---Trilok Soni