From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E6A5C433E7 for ; Fri, 16 Oct 2020 07:25:38 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB9E32073A for ; Fri, 16 Oct 2020 07:25:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="olutEQY0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB9E32073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.7800.20567 (Exim 4.92) (envelope-from ) id 1kTK72-0002FY-IM; Fri, 16 Oct 2020 07:25:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 7800.20567; Fri, 16 Oct 2020 07:25:16 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kTK72-0002FR-Ei; Fri, 16 Oct 2020 07:25:16 +0000 Received: by outflank-mailman (input) for mailman id 7800; Fri, 16 Oct 2020 07:25:15 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kTK71-0002FM-5A for xen-devel@lists.xenproject.org; Fri, 16 Oct 2020 07:25:15 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3bf5118c-7b2d-4b34-a96d-00d5dba143e8; Fri, 16 Oct 2020 07:25:14 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2D9A6AD04; Fri, 16 Oct 2020 07:25:13 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kTK71-0002FM-5A for xen-devel@lists.xenproject.org; Fri, 16 Oct 2020 07:25:15 +0000 X-Inumbo-ID: 3bf5118c-7b2d-4b34-a96d-00d5dba143e8 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3bf5118c-7b2d-4b34-a96d-00d5dba143e8; Fri, 16 Oct 2020 07:25:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1602833113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JFYvjnKPkIkyDnPbDArRURXDRNLfWak2oUB07OLBF7M=; b=olutEQY0Xjz0BuA1/QBGLs1LwH+6sw+kskd/EruVL7aNQnzfNI3q9o8ZixDNnRjVkRXppA uE6cx7LtYEU8+xquYKla9ZhxbTOvjNVTDHrA45hbvFSVE6yPzJG+tbC5adTYe12cB2LOiZ 2ZENxTL3axPPN25cTnYsqiwc65CSUjY= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2D9A6AD04; Fri, 16 Oct 2020 07:25:13 +0000 (UTC) Subject: Re: Getting rid of (many) dynamic link creations in the xen build To: Jan Beulich Cc: "xen-devel@lists.xenproject.org" , Andrew Cooper , Wei Liu , Ian Jackson , George Dunlap References: <85f1eea2-0c8b-de06-b9d8-69f9a7e34ea8@suse.com> <5c9d5d97-10c4-f5de-e4eb-7ae933706240@suse.com> <973eca36-d278-4c82-627a-e0d80a6055d5@suse.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Fri, 16 Oct 2020 09:25:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <973eca36-d278-4c82-627a-e0d80a6055d5@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit On 16.10.20 08:58, Jan Beulich wrote: > On 15.10.2020 12:41, Jürgen Groß wrote: >> On 15.10.20 12:09, Jan Beulich wrote: >>> On 15.10.2020 09:58, Jürgen Groß wrote: >>>> - tools/include/xen/foreign -> tools/include/xen-foreign: >>>> Get rid of tools/include/xen-foreign and generate the headers directly >>>> in xen/include/public/foreign instead. >>> >>> Except that conceptually building in tools/ would better not alter >>> the xen/ subtree in any way. >> >> I meant to generate the headers from the hypervisor build instead. > > This would make the tools/ build dependent upon xen/ having got > built first aiui, which I think we want to avoid. Today we have a mechanism to build tools/include (i.e. setup the links) from the main Makefile. The same rule could be used to create the needed headers in xen/include/public/foreign. > >>>> - tools/include/xen/lib//* -> xen/include/xen/lib//*: >>>> Move xen/include/xen/lib/ to xen/include/tools/lib/ and >>>> add "-Ixen/include/tools" to the CFLAGS of tools. >>> >>> Why not -Ixen/include/xen without any movement? Perhaps because >> >> This would open up most of the hypervisor private headers to be >> easily includable by tools. > > Without the xen/ prefix, yes. But if someone wants to violate the > naming scheme to get at them, adding a suitable number of ../ will > also work as soon as symlinks aren't being used, or symlinks of > full directories are used instead of ones referencing individual > files. We'd need to be very careful regarding name collisions in this case (there is e.g. xen/list.h and we have at least one list.h in a local directory). I'm not sure we want to take that additional risk. Juergen