Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp739230rwi; Wed, 2 Nov 2022 18:04:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xvIWYxfFsrw1Oy1e+at1vch0v+NZThBdD40YMegc2JDDN1SYobO4JrRoegGX9vVgPADsE X-Received: by 2002:a17:907:3f8f:b0:78d:f741:7f5a with SMTP id hr15-20020a1709073f8f00b0078df7417f5amr26529585ejc.71.1667437460409; Wed, 02 Nov 2022 18:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667437460; cv=none; d=google.com; s=arc-20160816; b=qq4LeSC7EVBsUZkekktipOsH2PadbkBZVVLkzmpOANxb6vsu75hq1XYGGC0VM7qbVf nbhZy/Qib3/yuifIljyaW20Bl5KKjjFpnxY/E8HdjuYLsyc8fjQdEc4CYnkqAoCjqSnF 9VAHVAKxjUu905xaDTT34esspV02t6+1ZC1SjOZgIbODui8LT2n0PsRtFMMkAXJeKgar 2J4yT16x3afssrqEUOtR5F80sv33RbQyPd/9E/BINveqMXfm3Fa+sLzB2W+xskx71jw4 SP1CJ3euIoNNvbc7C60BiLnBsD+ELuBFQVJB/JzuIx34dJggAwLrn4YxWKQck3++Qzda PvGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gW3FAP+EIiSAZB0SutUrr6g7EP+rWLK78GUZ8JPSMhg=; b=k1VdvrthT0YMhI1O4pJ38957P1rIalswvvW5eGvYZFKqeufkBjAX03hg9PDWGwX0J2 2oIxSUnMcRMnk4DI+PjIkMtDZw/M7UMOuECBFL7a21gAnon5UE0gk1zB4x3opnZrVQdT O3NIbIgvHXfw02Ku29qe3lhxYznKG2mQPU3e4gdC1G0eKsy4S5e3JhrTd3xGT1rUPxLK +0iRsezW7qwnaGXdyUnvPUe05beBie9vBDd8fVDcEOU3x3Weti8Y28BKjosRlHAC8zxU /agdph/KxKouzyK2WWhd2igFG7UQ5Cr4XJJ+/eShfES3oj95siyk9fHU28s4MpD0qFeW oAvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jjKbU6Ih; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa34-20020a17090786a200b0072fb108db55si18619948ejc.895.2022.11.02.18.03.55; Wed, 02 Nov 2022 18:04:20 -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=@linuxfoundation.org header.s=korg header.b=jjKbU6Ih; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230259AbiKCAYE (ORCPT + 97 others); Wed, 2 Nov 2022 20:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiKCAYC (ORCPT ); Wed, 2 Nov 2022 20:24:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE0E60D5; Wed, 2 Nov 2022 17:24:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5820661CE1; Thu, 3 Nov 2022 00:24:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 185E0C433D7; Thu, 3 Nov 2022 00:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667435040; bh=UexGygkWb0bGtw2UM0ZjgXrlEJjm3frSfcJCq0INPNA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jjKbU6IhfMUx+o1ufnCQAmcEuO5CEdisP9B5Qkx4RXE5Cpyvm0UtFX6rrU+zIMTgD sYg5NLJ72WjViycClrYCyl1jT/tMeTeokobqPMoRU6JVQnZWcAvIkUBRW9/pUwow1Q 4LSOIqHHuf9KsAMtE+ZS/kKA5zZXWUsdn+TTAP/4= Date: Thu, 3 Nov 2022 01:24:56 +0100 From: Greg Kroah-Hartman To: Elliot Berman Cc: mec@shout.net, Bjorn Andersson , Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Prakruthi Deepak Heragu , Andy Gross , Dmitry Baryshkov , Jassi Brar , linux-arm-kernel@lists.infradead.org, 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 , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 13/21] gunyah: vm_mgr: Introduce basic VM Manager Message-ID: References: <20221026185846.3983888-1-quic_eberman@quicinc.com> <20221026185846.3983888-14-quic_eberman@quicinc.com> <722b05a1-4bf5-0837-baea-b1d0a9cc1e43@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <722b05a1-4bf5-0837-baea-b1d0a9cc1e43@quicinc.com> X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Nov 02, 2022 at 11:45:12AM -0700, Elliot Berman wrote: > +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? Even if you don't support it 1:1, at least for the ones that are the same thing, pick the same numbers as that's a nicer thing to do, right? > > 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. How do you know you picked an unused block? It wasn't obvious where you got these values from at all, and unfortunatly, no one really ever updates that documentation file. Luckily it never really matters. thanks, greg k-h