[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v7 05/51] x86/mm: avoid building multiple .o from a single .c file
- To: Ian Jackson <iwj@xxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Mon, 11 Oct 2021 15:13:41 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HUss51mAJhkh+vckdc2Bb1hlsinXJjqsUqnVrbtypkg=; b=gjMqTLUZBI0dt1rRt1CSFRIpZeL68dJr8ZI1TMJMkRT9SIN/rcF6InkGfMTwnhQNXnHn8++Qk3hkfWtMtgdzEgfmLXt4eDw3TA29Y7B2XBe9nxo1ShX+qc2HY3uVofNl+z5vSn6B8bwKyREaw828zM30yhew0thKZyt44unwcBYQTaCWBf1mTq50pzbh/MCGNMirrCDIVcZyQhbklwVTiEZvBJN4qgTrS1rSAZ4ucahI+N94Ujo7UX2+kVeM1Y1PE4qkLV3H6n7OI/3Y4idH5X4ObizYb4gpmaisAybpUL4Rg7joMZFkclcnNWGYMQTPLEyoLFuzMboEj/G5UCLxAg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DnMjnj9slz6rfKsWNxUUPmE/5wB6x032ohGdXxceWVYxjzyRvMsBtcmoHDcisbc6ymrDl2uBalGDzcBRd/W0WIGg3UlltoHq+VgaCZ88paKdv5EzOS4HfvPX1WORgZ7toHrVOWwMcDzoAI6YDi9lh7S6WIzsni3HZueTJyO5TZx3waGFNwV+LmtfDyQOBIwiFY+Hk/65H/uzKNMecmtRvQeUHOtaVrK2L8oNTjnWxe05Q+1+cBTudTzpat8SdETC6q+VEqQJtib8lGv0jHuNp1UeETwvCA6zflJEAXvV35Iv6vLsfbwAJgYJSoq+Af+ImxfMK2njilPEbuHJnhLubA==
- Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Jan Beulich <jbeulich@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 11 Oct 2021 14:14:19 +0000
- Ironport-data: A9a23:uT+IvawmEAurpPQd9ph6t+efwSrEfRIJ4+MujC+fZmUNrF6WrkUGy msbUWzTOazfamX0eYh0Od62ox4AuZbWnN81TgRprSAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnvopW1TYhSEUOZugH9IQM8aZfHAsLeNYYH1500s6w7dg2tcAbeWRWGthh /uj+6UzB3f9s9JEGjp8B3Wr8U4HUFza4Vv0j3RmDRx5lAa2e0o9VfrzEZqZPXrgKrS4K8bhL wr1IBNVyUuCl/slIovNfr8W6STmSJaKVeSFoiI+t6RPHnGuD8H9u0o2HKN0VKtZt9mGt91zk uRir53ucDhzGpTngccEfCd9VC4raMWq+JefSZS+mcmazkmAeHrw2fR+SkoxOOX0+M4uXzsIr 6ZBbmlQMFbT3Ipaw5riIgVoru0lINPmI8U0vXZ4wCuCJf0nXYrCU+PB4towMDIY254RQKuCP 5JxhTxHYRuHUixyYkgsBZMck7e5u3n4SyJzpwfAzUYwyzeKl1EguFT3C/LXZ9iLSMN9jkue4 GXc8AzRABsXKdiewjqt6W+3i6nEmiaTc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dythHHfA6uNRmJAStU0Y11QFPVmIxoLIi/JfMMe9KtjrotC5Fil67t8=
- Ironport-hdrordr: A9a23:0ewzaanzN8hz/BwMtMx2zItjdNDpDfOiimdD5ihNYBxZY6Wkfp +V88jzhCWZtN9OYhwdcLC7WZVpQRvnhPtICPoqTMiftW7dyReVxeBZnPbfKljbdREWmdQtrZ uIH5IOb+EYSGIK9/oSgzPIY+rIouP3iZxA7N22pxwGLXAIGtJdBkVCe2Km+yVNNXh77PECZf yhD6R81lidkDgsH7+G7i5vZZm8mzSHruOoXfZAbCRXnzWmvHeN0vrXAhKY1hARX3dmxqojy3 HMl0jc6r+4u/+25xfA3yuLhq4m2efJ+59mPoihm8IVIjLjhkKBY5lgYaSLuHQQrPu04Fgnvd HQq1MLPth16VnWYmapyCGdlTXI4XIL0TvP2FWYiXzsrYjQQy87MdNIgcZjfh7Q+yMbzZtB+Z MO+1jcm4tcDBvGkii4zcPPTQtWmk29pmdnufIPjlREOLFuKoN5nMg6xgd4AZ0AFCX15MQMC+ 91FvzR4/5QbBezc23ZhG9y29ahN05DXStuenJy/vB97gIm20yQlyAjtYoidzY7hdIAoqB/lq H52v8CrsAWcicUBZgNT9vpD/HHUlAk7Hr3QRSvyG/cZdQ60kT22tbKCYUOlZOXkaMzve8Pcb T6IR5lXD0JCg7T4fPn5uwDzvmKehTnYQjQ
- Ironport-sdr: CZFDDOC9wUAecROURszuoYH7DSBd/5B599xP3OrFzWFk5sOTpKO7pqRVOEQPhOBcOgwSfMdYmG OYG5YM3WjNkgk8Vvo47wQKw5Op4uUKs39Pl5p6SJtZ7HDjYNxB1rqr17zLMzhFHCmlvdKRdHML 83sao1qVSCz5XRmGlWvXed4eHdJKDDZFdX5XVKBdM1VODi+cMK1o1lrOFjwf0/MraPZdn/V8JU z9U/Zrz+fmDN87TPuEErVa9C0to/YFdF5+EbOws/sLvJZsFculi/BMpWHWY7HAHCCzXLpHlRUn CgrmC99yxbqfghFY2m0osq6n
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 08/09/2021 12:44, Ian Jackson wrote:
> Anthony PERARD writes ("Re: [XEN PATCH v7 05/51] x86/mm: avoid building
> multiple .o from a single .c file"):
>> On Tue, Sep 07, 2021 at 08:14:14AM +0200, Jan Beulich wrote:
>>> Hmm, when replying to 00/51 I didn't recall I gave an R-b for this one
>>> already. I'd like to restrict it some: It should be taken to stand for
>>> the technical correctness of the change. Nevertheless I'm not really
>>> happy with the introduction of the various tiny source files. I've
>>> meanwhile been wondering: Can't these be generated (in the build tree,
>>> as soon as that's possible to be separate) rather than getting put in
>>> the repo?
>> Do we really need to generated those never to be change tiny source
>> file? Do we really need to make the build system a lot more complicated?
> I'm not an x86 maintainer, but my 2p anyway:
>
> I think the handful of tiny source files is probably better than some
> contraption in the build system. Much less risk of something funny
> and confusing going on.
I agree. This patch is definitely an improvement on the status quo.
> We could reduce the number of copies of the same text by making the
> copies of guest_walk*.c in hap/ be symlinks to ../guest_walk*.c.
The two guest_walk's are totally different logic. Adding a symlink
would be reintroducing "something funny and confusing".
>
>> Can't we commit this patch as is? What kind of issue is there with those
>> tiny source files? Should we add a warning in those tiny source files,
>> something like "No modification of this file allowed, it's part of the
>> build system." ?
> I don't think we need any such warning. No-one is going to take that
> tiny file and try to edit it to put functionality in it, and if they
> do it will be spotted on review.
Agreed.
FTR, this patch is Reviewed-by: Andrew Cooper
<andrew.cooper3@xxxxxxxxxx> and fit to be committed.
|