Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp231544pxb; Mon, 13 Sep 2021 17:50:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpltmZkT81EAtFyyDZRaVA74PkcHxYt9h1frCKQferOKP+ZCnf6gPXpPc0KKu7V32BX5uF X-Received: by 2002:a05:6e02:1b89:: with SMTP id h9mr1445914ili.297.1631580651444; Mon, 13 Sep 2021 17:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580651; cv=none; d=google.com; s=arc-20160816; b=Hhxo50tnOfK+EQk9PahZKrO+JUDY9h0b48YHZKsbahyuTnDygJGr+vaxtVPZ0Au4MP hkSBPoQNyrOWMqyrivW5sroqD+OHG0zkGP5qIcvzQDch3AdhoEA9MMqUGDMOV/yV3a5X iPI9iJ59R4O2koplWwGY2nTUdOw90u5I51SD7feOOtnPQ2lWqIvB2keRQlUiH96o9Xit kMez9cOPeW/kqufo7VgxEMQssjL1lvKeGvPLQcAzkuJNx/2nUyh1XG29Ss83XoIA9O7V w8/IyJGHF9ko0CSJ+kZGl+Usg8QGTXsJmHim5MyMS6BkKfHhBqaFQZEkN8uJBU9XPYkr /4fA== 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=6++MUHqyHKCB5FgpZ/mPI8mWFFcZJMAIOAPJiYxj2J8=; b=ZT/f6M+yESRE0OQIKZjkXE7bWsxXSNGnV6SiseXZak6aNae8bxR5MthbUS0aBR01h1 TgdtRYOZbihYfhqEREewG8I9mCR2PmmOolA7k9E0iYX1YyYg5JTg3IUDXDNmwSkAR3JN jB85/wUhjfxf/uynab2BOHpVcjDte2Rcl1DovHlUqTWExoIGEcnhxzPkBITG42XJjyuU zntTK6FzcKj0QRJ/+s/VgOXi+MyjKpWswE5Va/nMPushvOwsNXmSzrRK6zulXJJ1QoOv +3d799d3SZmfszHDoXP6SSQWBe1Px+xzQx7Xyvr87rMU/NlYcoywpA2HH0k8A91LGtVm 2svQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=I8oAss5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si8004006ioc.79.2021.09.13.17.50.39; Mon, 13 Sep 2021 17:50:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=I8oAss5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244467AbhIMSWr (ORCPT + 99 others); Mon, 13 Sep 2021 14:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241199AbhIMSWq (ORCPT ); Mon, 13 Sep 2021 14:22:46 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E25C061766 for ; Mon, 13 Sep 2021 11:21:30 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id j16so9661241pfc.2 for ; Mon, 13 Sep 2021 11:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6++MUHqyHKCB5FgpZ/mPI8mWFFcZJMAIOAPJiYxj2J8=; b=I8oAss5KvNOxSzhenZXmIesL1MTLaeyUnk6Q8EYJv5KLYqd1LxYtn/ptQxgv3SD+T9 PsQ3lmeYGUOmkmNBEchDt3vbOWf9cDZ90nOdyyxe+PJxS6IItldgrzQgOojUBQJ9bxR0 MyBt75NYyvzrKbm2331lHF5jPUnLM/Z4/K+PyuyXMBjivWPXQ5CUE0HDc1dRbLaZYOKY BxXw50eAQgSRSTQ7ePnQPyXCKvYAlFcNZ3SQ6pgwqdpfVP7+nhLYaOvgheq0lrdxWlWB 3bBhDAN6CcQfyLsrTyRTzGqroPXLKVttcyRR7ITwmfGoVYHHNY4Xpa/Dj/oY2lcBFm/W hDMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6++MUHqyHKCB5FgpZ/mPI8mWFFcZJMAIOAPJiYxj2J8=; b=vYN4alx6xZugOZCKMptaES7meK87jVKAHrmM7gcA391xJoUTlDz6eWS70Tvk4MDya7 zu0dY8E+OHq68QsCnJX5PRDv15oLX+S5ANlJsBJuxEPyjbtd5Dpa8vw1jW2QysZlvwqD zforZ9JeOd0ZCEEUl5phGgTtiQ5obXBFJBOoySDYr3DzGwvTtZJe37sBMXywSN7utBPh Ilk0+w1vVatu3XRwiSj89a6D1deXUQhHD3EXWWpJ4JoukyZ4hDApCqrke5M/y6+yFUQr QDFiEWzS5+uKTaIXAjfZat1vsQywikI6hN+ShekI+6XDFC3H+JcT54RCgBzIwF9l0Ajd fi7A== X-Gm-Message-State: AOAM531jNNjORpYBLWnV5uquVsto22PcJ4+toPq9Y6hKh79LnfSho0ze YduD8nA0cm7xi1QsOLGcqiJ+oA== X-Received: by 2002:a05:6a00:1a10:b0:412:448c:89ca with SMTP id g16-20020a056a001a1000b00412448c89camr811832pfv.86.1631557289837; Mon, 13 Sep 2021 11:21:29 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id x13sm4547221pfp.133.2021.09.13.11.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 11:21:29 -0700 (PDT) Date: Mon, 13 Sep 2021 18:21:25 +0000 From: Sean Christopherson To: Eduardo Habkost Cc: Juergen Gross , kvm@vger.kernel.org, x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org, Paolo Bonzini , Jonathan Corbet , Huacai Chen , Aleksandar Markovic , Thomas Bogendoerfer , Paul Mackerras , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Shuah Khan , Shuah Khan Subject: Re: [PATCH 2/2] kvm: rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS Message-ID: References: <20210913135745.13944-1-jgross@suse.com> <20210913135745.13944-3-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021, Eduardo Habkost wrote: > On Mon, Sep 13, 2021 at 12:24 PM Sean Christopherson wrote: > > > > On Mon, Sep 13, 2021, Juergen Gross wrote: > > > KVM_MAX_VCPU_ID is not specifying the highest allowed vcpu-id, but the > > > number of allowed vcpu-ids. This has already led to confusion, so > > > rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS to make its semantics more > > > clear > > > > My hesitation with this rename is that the max _number_ of IDs is not the same > > thing as the max allowed ID. E.g. on x86, given a capability that enumerates the > > max number of IDs, I would expect to be able to create vCPUs with arbitrary 32-bit > > x2APIC IDs so long as the total number of IDs is below the max. > > > > What name would you suggest instead? KVM_VCPU_ID_LIMIT, maybe? > > I'm assuming we are not going to redefine KVM_MAX_VCPU_ID to be an > inclusive limit. Heh, I haven't been able to come up with one, which is why I suggested the route of making it an inclusive value internally within KVM.