Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp304273rdb; Sat, 30 Sep 2023 05:24:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdyYUjlwuUM7PnNRVS5+olGuEF3VaSF1EpuDynhYffepM9vcyWCr2jdQhHKbaf1U7+c4WP X-Received: by 2002:a17:90a:f0d0:b0:26c:f6d2:2694 with SMTP id fa16-20020a17090af0d000b0026cf6d22694mr6151026pjb.12.1696076661643; Sat, 30 Sep 2023 05:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696076661; cv=none; d=google.com; s=arc-20160816; b=nzcOnJjqFZ89OAunVGLz0OIqoDR9RRzxmJw4zHHvLoeuxjhv1FYToCB6KnlX3O0nmv c/6PzzCzj+Fz9ewJqCZzHiFTF4fuaWhUFYXgzzAS0fni+1iHhL+OtwIaN9+lsT0yHMxB mw9w4mlEj7/lGjrrhvT/XsdV0iOFYNUrgpTjO1nGWPHkPiwP1yBRZ4/e4YflG0KiWbda 4nA7W77Pa7MDDFl4r/Ri7kGuIy4tik+LcTiywvMPjK3LXrwFa56Xx8ooo3/BDoI2HT9L 5Gd7RHDrAGl0kZapMdXhbzoBGznOr/zNRag6VYjk/fBo0D4554sSDAwDU4gvVJp6yqco qavw== 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=0cA3hTe5u+E8UEN4RPbERSW+YC7N0Ek4JU8wzLRWQw8=; fh=/9QhiiVnblW/5rlU2/j7t69FkF7DE6iP4FbaLAIYoOE=; b=Qv38xJ4Ri+TEAEcSTWZ/KsmyCadwa+MKIlUp048CaBQcTCRqt5n0Ds/UJ1CSZO94T5 7AVjr1UKvgbUjVDQOAM+rmNhUhIHvVW43brswfMFFj6RqSBN8CgVC4/fTG9+f9XqX/08 bTgeHSrQKT8ijf/IJGPjdJjtq5Q10gjtmnwDe7SMN3kDgJn4CPiYyMlGveSNHgfS7QAh +W1tkxmgfqEdZpADbSTYnpOOur4UFYZUtwKM+5+nk+4Kfo71sUuQ6FIkTWTA6ge/nM+2 P8tulMn3y7hhVpiHmNOVGKmiB+nWNIvTp2A9c7Rd8J87EVpdSda41/PEveCfx+GjeOrk 5Mhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YyRBlWnd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y12-20020a17090aca8c00b002792137e34asi3548098pjt.55.2023.09.30.05.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 05:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YyRBlWnd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C34A18142DAA; Fri, 29 Sep 2023 23:09:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbjI3GJZ (ORCPT + 99 others); Sat, 30 Sep 2023 02:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232047AbjI3GJY (ORCPT ); Sat, 30 Sep 2023 02:09:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D7E41A7; Fri, 29 Sep 2023 23:09:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2656CC433C7; Sat, 30 Sep 2023 06:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696054162; bh=uvjHAVtyz+cMLlBpiml8y8WpVPimcnEoijVRbGSv7y0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YyRBlWndR3KwVIYMarncmB/ymR7JLJrQUvl56+M+guaafrMTYE6eV9jnmINKz1Ngd mG2z7FNLyoFAkJfsX7netdXC6W9z6m+MOIPOY+TYgwcq12c5WGHsbQcBJT/2AvLXcJ ySpfKlnuIVN74VanHAw/DkBr+ZnInv5wVMyFTt3Q= Date: Sat, 30 Sep 2023 08:09:19 +0200 From: Greg KH To: Nuno Das Neves Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, patches@lists.linux.dev, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com Subject: Re: [PATCH v4 13/15] uapi: hyperv: Add mshv driver headers defining hypervisor ABIs Message-ID: <2023093057-eggplant-reshoot-8513@gregkh> References: <1696010501-24584-1-git-send-email-nunodasneves@linux.microsoft.com> <1696010501-24584-14-git-send-email-nunodasneves@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1696010501-24584-14-git-send-email-nunodasneves@linux.microsoft.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 29 Sep 2023 23:09:35 -0700 (PDT) On Fri, Sep 29, 2023 at 11:01:39AM -0700, Nuno Das Neves wrote: > These must be in uapi because they will be used in the mshv ioctl API. > > Version numbers for each file: > hvhdk.h 25212 > hvhdk_mini.h 25294 > hvgdk.h 25125 > hvgdk_mini.h 25294 what are version numbers? > These are unstable interfaces and as such must be compiled independently > from published interfaces found in hyperv-tlfs.h. uapi files can NOT be unstable, that's the opposite of an api :( > Signed-off-by: Nuno Das Neves > Acked-by: Wei Liu > --- > include/uapi/hyperv/hvgdk.h | 41 + > include/uapi/hyperv/hvgdk_mini.h | 1076 ++++++++++++++++++++++++ > include/uapi/hyperv/hvhdk.h | 1342 ++++++++++++++++++++++++++++++ > include/uapi/hyperv/hvhdk_mini.h | 160 ++++ > 4 files changed, 2619 insertions(+) > create mode 100644 include/uapi/hyperv/hvgdk.h > create mode 100644 include/uapi/hyperv/hvgdk_mini.h > create mode 100644 include/uapi/hyperv/hvhdk.h > create mode 100644 include/uapi/hyperv/hvhdk_mini.h > > diff --git a/include/uapi/hyperv/hvgdk.h b/include/uapi/hyperv/hvgdk.h > new file mode 100644 > index 000000000000..9bcbb7d902b2 > --- /dev/null > +++ b/include/uapi/hyperv/hvgdk.h > @@ -0,0 +1,41 @@ > +/* SPDX-License-Identifier: MIT */ That's usually not a good license for a new uapi .h file, why did you choose this one? > +/* Define connection identifier type. */ > +union hv_connection_id { > + __u32 asu32; > + struct { > + __u32 id:24; > + __u32 reserved:8; > + } __packed u; bitfields will not work properly in uapi .h files, please never do that. thanks, greg k-h