Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp308138rwi; Wed, 2 Nov 2022 12:09:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RbwzZaBKRS3iPEW1ksv9ZskKDxD1auSh3cAZipJe9OlUEcHi6rbDHWcf0hdxbg0n0rzvt X-Received: by 2002:a50:e616:0:b0:461:fc07:b630 with SMTP id y22-20020a50e616000000b00461fc07b630mr26291700edm.219.1667416183089; Wed, 02 Nov 2022 12:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667416183; cv=none; d=google.com; s=arc-20160816; b=JnBMU12+cmDKB0soihrWGGK8/phnd8PhNDO3ONe35nNOiV2UhT5ffXITN4GvZaQa5X XvsenGAHT+auoXfNYrtZLb2+f6scmcu/gYBH9gDVLz6tdWBRHsNTEtIW/14c7G8vFst4 Kq0FHEVi5jrx33HNLGifkTtXBHQK3ce/L/5Hj2ZzC1//nPWQCpKPC16eYhY+utuCX/E3 fTIVJz8H2DCoAlU0v1Czuvonj/76UBMzDI76jQ+W/ldQKA+vvYrEIw5ElCpGOK+2xkhd NWh+r2iEH8mqFf8/3BaDN3sMaR5xygrB9rIoK9BYHEkBy20qUMMhDEYgttDR3PfkiPVD aOqg== 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=64cDp4XZK7MDRsKDrR2aIMGpGCvaBZIPsLm49hh6sCY=; b=Aj8PdVUm6kEK/mnQ93+qGuflUg1NzNMjeSRBKR7ru5FCdat32niYBDQA82iepKz0X3 /HKWxJUeVT0lWqhvsDiScxTmTQqkQBOh78UXc3m93KSqImzLqhswWWlfDRiWwVKRzNrD zZScGq4+clH647LoIRafZOSzxOf7lmyFt9huCosZIaHGoYhrPgDlsIFLgF8kh4q6Fzpe 5m8KYcAVFGemD4sOYqe0ETadIR0L/p/FTZJXfPNLR2Xhq0LPJWBzeg9wV18UkDc2HFI2 jTsathiPzIBPK2Gjdequ19Qb/PxbXo1G6qpRfGapGrIMfwOckw1RCuM9RIxdju5CCIca ze2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=D5A5uGIN; 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 hp42-20020a1709073e2a00b007417040d1c5si18388409ejc.823.2022.11.02.12.09.19; Wed, 02 Nov 2022 12:09:43 -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=D5A5uGIN; 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 S231650AbiKBSpl (ORCPT + 98 others); Wed, 2 Nov 2022 14:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbiKBSpe (ORCPT ); Wed, 2 Nov 2022 14:45:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4E82DA9D; Wed, 2 Nov 2022 11:45:34 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A2Hx4Nv023382; Wed, 2 Nov 2022 18:45:16 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=64cDp4XZK7MDRsKDrR2aIMGpGCvaBZIPsLm49hh6sCY=; b=D5A5uGIN/PW1hE/eNPEUV9u91IJZ4WMKc9pDD+YsWv4JNAcHcP/ZgrV1jStxGf5M0lpL uRje1cDue6LjvIN2tDSJWg4JPA+ru9qMn7IHRBoKraoQ70wLaJYFocnVk2irrpMJ6/VW 19yIVRveU0jGSjVwtz2GnjKy1UmnKe1z8YaPjUB5jlvnr7RWDUSMso9IfZqX2WGJJHDU I2R2mlZCiNwwUPtYb2jTLzTl1WX1PsbJc/HAlCnjiLe8q6wU4goAbptmcuEKctOJPuc1 hAYeizhfXZc72hmOfwRAyvrxGVLBNAOLroTeaOs+tMp2mDqULR66g/n6P1GFRTEIPhFU mg== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kkwe3r5q1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Nov 2022 18:45:16 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2A2IjFbU003849 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Nov 2022 18:45:15 GMT Received: from [10.134.65.5] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 2 Nov 2022 11:45:15 -0700 Message-ID: <722b05a1-4bf5-0837-baea-b1d0a9cc1e43@quicinc.com> Date: Wed, 2 Nov 2022 11:45:12 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v6 13/21] gunyah: vm_mgr: Introduce basic VM Manager Content-Language: en-US To: Greg Kroah-Hartman , CC: Bjorn Andersson , Murali Nalajala , Trilok Soni , "Srivatsa Vaddagiri" , Carl van Schaik , Prakruthi Deepak Heragu , Andy Gross , Dmitry Baryshkov , Jassi Brar , , Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , "Will Deacon" , Catalin Marinas , "Arnd Bergmann" , Srinivas Kandagatla , Amol Maheshwari , Kalle Valo , , , , References: <20221026185846.3983888-1-quic_eberman@quicinc.com> <20221026185846.3983888-14-quic_eberman@quicinc.com> From: Elliot Berman In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Lyc7CpRPI46t50CA9QxhFyVNsGbRVUPl X-Proofpoint-ORIG-GUID: Lyc7CpRPI46t50CA9QxhFyVNsGbRVUPl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-02_14,2022-11-02_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=604 mlxscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211020122 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 +Michael On 11/1/2022 10:14 PM, Greg Kroah-Hartman wrote: > On Wed, Oct 26, 2022 at 11:58:38AM -0700, Elliot Berman wrote: >> +#define GH_CREATE_VM _IO(GH_IOCTL_TYPE, 0x40) /* Returns a Gunyah VM fd */ > > Why 0x40? Why not just use the same KVM ioctl numbers and names as you > are doing the same thing as them, right? We've designed so that there are a few ioctls that will feel similar to KVM ioctls since we know this design has been successful, but we don't intend to support KVM ioctls 1:1. Gunyah has different semantics for many of the name-identical ioctls. It seems odd to mix some re-used KVM ioctls with novel Gunyah ioctls? > > Normally your first ioctl is "0x01", not "0x40", so this feels really > odd. > Documentation/userspace-api/ioctl/iocl-number.rst advises to pick an unused block. We picked ioctl code 'G' and unused sequence numbers under that code. I'm ok to move the block around. Thanks, Elliot