Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3186851ioa; Mon, 25 Apr 2022 20:45:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPzWW1hYEwvFOmy9ESNhtBYMIhtp6VKCOWgPL30iFQgURXRu/7gL+HOeE0+aXwZ+4D0VEZ X-Received: by 2002:a05:6402:198:b0:410:83e3:21d7 with SMTP id r24-20020a056402019800b0041083e321d7mr22724247edv.159.1650944759425; Mon, 25 Apr 2022 20:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650944759; cv=none; d=google.com; s=arc-20160816; b=iV6CZ/ViErP74zNrv3b+BCVv01S7N7KVMNh32WJ8hv1avJyJed0XsGaF6SRMhsFgm8 gGnElO94wQSD/Fp2ezVKLCjHLjSWL8A+wWg6U36OarcJW/iuh1/FSHRGd6DGFJhcLi6s V+4li2WzEvJcsVPBvC9Stdd4Yl/SWTHbDrGGWlffC8k4S2wESVvE9zCC0AtxzXBZINQU cA4NLkbJ3CZUKHyBlW1OgZAJQS/DA4cNigqjFLCbSpsklIoWaFwTMDgzk+Cs3OE/sbDy 9Wx/v52FpaQpaG37+4gRQWdI5Q2h8OBu9/IsL9VjX9MA+IuqlsrEA06KXbF0I9hGCCl8 zKoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N7fee2Yrx0qNzoi9PdXZ5hx4nrnlVdrW/GV2fmMxG2M=; b=LaKqEuh2r/4lpBTouaw1sOXv+5XK6bMbpvSMO5pOh1OARpBYQEis/Pka4dap9UIW8C IRiZqslu2biCeObO779PCk+w8/K5A1FVUMwV+ideyY/wKrZBXcRs1FDGG25hYzlG2tLc a/WTFiu/8lgeZwfB8PU9eTewrOP7Qmt2enfHUVzSXvVbbJVM8pKZ/Hup4UYQgfKYKKnn aku04R+Qu3yz82pqCAbz04YSWof7hcrGJo5l0njHVBr2EW07hAg+C8EfO23VV/PCbrvi GWTPGwa5kSZ7Oiyqq5sx5k8iWuS9OC4aTfEEKxfoSJlqOeLJZgiiaKj23wxT+VG9lyZH eGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=acRadtvA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a1709060c4d00b006ef57f5e94esi5351000ejf.1006.2022.04.25.20.45.36; Mon, 25 Apr 2022 20:45:59 -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=@google.com header.s=20210112 header.b=acRadtvA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243747AbiDYRPw (ORCPT + 99 others); Mon, 25 Apr 2022 13:15:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235346AbiDYRPu (ORCPT ); Mon, 25 Apr 2022 13:15:50 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ED4F15FF8 for ; Mon, 25 Apr 2022 10:12:45 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 16so3536689lju.13 for ; Mon, 25 Apr 2022 10:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N7fee2Yrx0qNzoi9PdXZ5hx4nrnlVdrW/GV2fmMxG2M=; b=acRadtvAlYLUZrCmq9O5iI5dPYliXwwNI96yUgxN2vvYnQyHFYWbIq3YSk6wxSOnDA GX9RTiQdnHyQtA4OQ7FAx/eRuBe2F7nW7K20QiBw/g4p0zT/aDNIb6GoMhyOYCqluUsp w966oKCZq/KG44LRlyljtZupZ4wx32aOVe7+Hy5Wp+N7xnx+tccplGXtnJVAGCdgqJyB 1sBDmWynVnSD+y20tg/j5uLrhve94nndrnKPQyKku8wVj2d2fT/EX/EyAnZIXYqJGaZp x6AKN+qlvspopkwCnb+v9+yZhH/oDM5Srj9sWSLPXfpmXjBom7/BSqtbI/xONPkGOToT 8cJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N7fee2Yrx0qNzoi9PdXZ5hx4nrnlVdrW/GV2fmMxG2M=; b=nf6gGX+ZY4oK5layIs4CH8PtCjHXSitZ0/OFwhuHfsso+V2tpt+xT+Zzt1ZhzZs0Ui OeIy/eU/jrITx8vFhBquBIjSLaPaer2iGmQQ+1ZfnxhsdU0q43MYI+KwNCVybTdsKh5i MH1PVx8V4IOcYMx5e2sw8D8ijKWCPUSWZ7UdLSYxAmaJmuIMj5ta38dcbWota94u2u2Z 2t7NsWh6JAyrbUannBI7DULyC7oOK5Lbgo1hV6bgrAMVRfW9nqFFNeUZzlkGYRpBxFjl y9Pz+rZd/wXcXK9guUZFRY4qXsKxw73tgzxujz6ryfJAatOEyEjbR6iK1947VfHVmG0v t5sA== X-Gm-Message-State: AOAM5304zIfLr5QwYKqBwC+8X6tkUUm31jo4e/vr4s6wAZni3mEtmiiE QIlocEO1s0hGQdFTNt2gDJFGTjjCN00WV/hn7LEkIA== X-Received: by 2002:a2e:5c6:0:b0:24f:5bd:5f89 with SMTP id 189-20020a2e05c6000000b0024f05bd5f89mr7433707ljf.170.1650906763210; Mon, 25 Apr 2022 10:12:43 -0700 (PDT) MIME-Version: 1.0 References: <20220423000328.2103733-1-rananta@google.com> <20220423000328.2103733-5-rananta@google.com> In-Reply-To: From: Oliver Upton Date: Mon, 25 Apr 2022 10:12:32 -0700 Message-ID: Subject: Re: [PATCH v6 4/9] KVM: arm64: Add vendor hypervisor firmware register To: Raghavendra Rao Ananta Cc: Reiji Watanabe , Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Jing Zhang , Linux ARM , kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Apr 25, 2022 at 9:52 AM Raghavendra Rao Ananta wrote: [...] > > > +#define KVM_REG_ARM_VENDOR_HYP_BMAP_BIT_MAX 1 > > > > Nit: IMHO perhaps it might be more convenient to define the MAX macro > > in arch/arm64/include/uapi/asm/kvm.h like below for maintenance ? > > (The same comments are applied to other KVM_REG_ARM_*_BMAP_BIT_MAX) > > > > #define KVM_REG_ARM_VENDOR_HYP_BIT_MAX KVM_REG_ARM_VENDOR_HYP_BIT_PTP > > > We have been going back and forth on this :) > It made sense for me to keep it in uapi as well, but I took Oliver's > suggestion of keeping it outside of uapi since this is something that > could be constantly changing [1]. The maximum set of features in a given bitmap register is a property of the running system, not the headers chosen at compile time. There is an illusion of ABI breakage when adding new bits to the registers if we've declared the max bit in UAPI. We also define KVM_VCPU_MAX_FEATURES outside of UAPI, even though it is related to the KVM_ARM_VCPU_INIT ioctl. -- Thanks, Oliver