Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4129272pxk; Tue, 22 Sep 2020 10:58:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrp6HHQ9Y/DjX3nS+iuodV/Qv47D7b3/OihgsV7SkudoNkCOa+bGACJh7lX5NcjZ9ePCOJ X-Received: by 2002:a17:906:4cc7:: with SMTP id q7mr6325088ejt.437.1600797539006; Tue, 22 Sep 2020 10:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600797538; cv=none; d=google.com; s=arc-20160816; b=FE8Dz3aCvL8pfKHYP2Dx344K6afxkkkchESZeSng2Pcp5xDq09HvtQI3kR5YWUWRgi /yFzhAalORXlOmMp9m7QVwKQwOaeSqBgnAQSb6jnhNwE+56f3fatHGFq9oHDeLTE0zkH Fc8oZoYx09+bBPptpToSBbgx2C7FFF6oBYIESXE7aC3BLrDCuIQDUWQ4UV7V5dlfzcff jMAFTt5RZ3F9Nb4eqpoJKEwYYiVXrtEy1rE5wxlsOyG7sXkWMdzUYmnoop91MI4gcvfj KNYaUv33oZDFiYEDCtAHH1/TDMewCk9FuNb0Uz9EyZcNRgG87IFknyMJjKZS5odZLViU 5j1Q== 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=qDuqWZC1VW8EQfRTwPy1SQY9Ugia7fQLlUkBJbJw2ug=; b=rhOq6Ldwvh5k+qrAGjJ6usbJvHYHTst0QnpaEjEzIso5NZhVzZOemCwoP2chRNSH0r NZ0pAoVZeu88cVOIa2ivs8wd2AMmgKTj/eTtac5B4Te2Tlie+fiTVtcuYWpf0itTKh47 rds8whCf5QZWXNoh7GMBn3hkQJz3i78wee57Ovhn1J3DRiJCRN5r4EtybHA/KnYjxExy KOsob3+3xgnlH3wHAn/Dt5CDpV05HMq0ah49CV3LKRU1G8kZNc7Z1fLceAuszeZp2PgX HRr72K/UW9l7sJ4zH6m86pOgdGrc2OGE24iXMgsAvfRLrqvea9Dd4sbfNRz6MQc9E0xJ I7mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mpb3KRYs; 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 n11si10991887ejh.372.2020.09.22.10.58.34; Tue, 22 Sep 2020 10:58:58 -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=20161025 header.b=mpb3KRYs; 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 S1726650AbgIVRzG (ORCPT + 99 others); Tue, 22 Sep 2020 13:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbgIVRzG (ORCPT ); Tue, 22 Sep 2020 13:55:06 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC70DC061755 for ; Tue, 22 Sep 2020 10:55:05 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id v12so2433896wmh.3 for ; Tue, 22 Sep 2020 10:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qDuqWZC1VW8EQfRTwPy1SQY9Ugia7fQLlUkBJbJw2ug=; b=mpb3KRYsHGqaV+XbtgbH5xYHePKnUNApKF+8H80qUiSDOh2I7ZkW6cemtP/OqS4sfa O9qNFo6rYWvbfjngVHSQJtV39YfrqDBygii/bNyFKYK/QYQXRapOjGChdBZDONhoYCEw C+N5zK4PUScYEiO/iwfysMRi+n0SI+ghafp3hF+D0WgIhsd5ca9O2VlvYGUpdDa/xWY4 +luI/GJNy0LTakzRhcTqnAbxtl2WCkWQNx/vkTpcb4n4t+vYOrtkcYzzAN+/OuBlOs4d HuyPtqS/sy82pht3gov8SpLOvtkriDaLFIXFKpyxddBR485hmSZbKMwY9tm6WQ7AYHm7 u8/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qDuqWZC1VW8EQfRTwPy1SQY9Ugia7fQLlUkBJbJw2ug=; b=P0t9uIYDW47cnPnaohBPlaQ4rY3jjrpV4a4rwULBP2H0U66SC5HBkeKRBNUWDuLIsw EIOMGPkTXS8AfgJN/sqAVZ4QycBY6VeWE2zS7XdwOG+izvloA+DWLDW6I1g1DNzhmi49 uj0Eo9UPeyqtaBUSXpGuOk13G9wseE3hIZnpt5ITJP7dqjYClOjdzTQd4lt7YwgyAg3e cId8dSgZZOnPClUhmcX46Bgm9B+M7am3VEKqp0/GxxYjg1AffPWr6ivus+oV7FAaS7+X QH6P8Vsenqq5AlulqxID2K0avTdshzveSo0xxQ3KPv27liEu31hBYXN6mg65jJFTA+g4 2nPA== X-Gm-Message-State: AOAM533mI0dQ6WN49MkDTCOZ+PRUeDwowTD5BH0MIZxk+unGkBUtNkuk Is++yn4IA3FuK4LNq0d6IHPH9A== X-Received: by 2002:a7b:c958:: with SMTP id i24mr2379869wml.50.1600797304450; Tue, 22 Sep 2020 10:55:04 -0700 (PDT) Received: from google.com ([2a01:4b00:8523:2d03:55c2:2cdf:ff31:96a3]) by smtp.gmail.com with ESMTPSA id q4sm26879934wru.65.2020.09.22.10.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 10:55:03 -0700 (PDT) Date: Tue, 22 Sep 2020 18:55:02 +0100 From: David Brazdil To: Will Deacon Cc: kvmarm@lists.cs.columbia.edu, Catalin Marinas , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Dennis Zhou , Tejun Heo , Christoph Lameter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v3 01/11] kvm: arm64: Partially link nVHE hyp code, simplify HYPCOPY Message-ID: <20200922175205.6gacjibejr7mmbgw@google.com> References: <20200916173439.32265-1-dbrazdil@google.com> <20200916173439.32265-2-dbrazdil@google.com> <20200918085116.GA30834@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200918085116.GA30834@willie-the-truck> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +#define HYP_SECTION_NAME(NAME) .hyp##NAME > > + > > +/* Defines an ELF hyp section from input section @NAME and its subsections. */ > > +#define HYP_SECTION(NAME) \ > > + HYP_SECTION_NAME(NAME) : { *(NAME NAME##.[0-9a-zA-Z_]*) } > > I still don't get why we can't just use NAME ## .* for the regex here. That > matches what we do elsewhere for linker script wildcarding, e.g. .rodata.*, > .init.text.* ... in asm-generic/vmlinux.lds.h. Why is it different for > these sections? Shouldn't matter. I copied it from a script in the Clang LTO branch. Will align it with what's in the main arm64 script. > > +# 2) Compile linker script. > > +$(obj)/hyp.lds: $(src)/hyp.lds.S FORCE > > + $(call if_changed_dep,cpp_lds_S) > > You need a .gitignore file listing hyp.lds, otherwise some idiot will end > up committing it. I definitely didn't do that when playing around with this > series. Nope. Not at all. Thanks for noticing, I never compile in-tree. Added