Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp787098ybj; Thu, 7 May 2020 07:38:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLPruUV8Wkg5+K9l02mxUB1xsmI0BYqpvdE0iPICE792x/QJIe1wwrut54bJtePHTLE5AwC X-Received: by 2002:a05:6402:1a46:: with SMTP id bf6mr11923778edb.44.1588862319445; Thu, 07 May 2020 07:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588862319; cv=none; d=google.com; s=arc-20160816; b=m/II+bp1/of8ZS8kikBP3/m9y53pSO99SPf4+K+Ljtq4+A+VW01wrSCYZ6RM4gAyzR GdCmeSS2qPzZHLJawEmZ9HV7YnYKVeY2OeFSwp4QtaQCNZN9LU8uD4pmMifELIvhcaCg VgSRCWFf5J2Rq6gElIjUh5vizGEfNH0GChVekOTK1+AJ28pHi2IzkzJ7+9Z54M+bEd1G jFbsnUMmrYgMFi5ckvViwAIjA1DIf0NUj3EhpxwktgDaCY5giAyby9JjoM5sbBZnaWtq pK72gHCpQFYfXhHIfouqcCFqHf5mid4zHQNqFdMWckDnRowaXXB/Ypa3Qk7PExzVhJaL aJlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=97qbtlSksxUqP4IepQZvJvrELnOIuCcLtceZei2X0fU=; b=QSOO1hsT3Cl/ofQQFlwiVDyegnGw/ZqASTgLX+YweoSYQF02xzGSyA8NiGLUhim2fK 8D0QMdTrLHIgPEVjzR2ZoMr86h9gK+LvP+HbU4pL/OJMZgGIIX+hmK8nxFsC9EpYIlnX /Ug9YIYOH3wSyWxI8HbU2Leuq1p9PLV61/s2JuW5Os+SYKH0x0yKp03u25i4ZUgwvBg6 AIh7DKeIn50h5npjUsAKXjXiZaOBInUivCw5YNCa6w1hIbGC4E0/v82I4Vscqnv/tNha q7wy4KZhDShBNNRaNBMQf6J+nUsbaoWc55+jbgp/GKKH8tjkFYkK/6GA6dwWx1e3v5PV 1dgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZzB4d4PH; 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 u2si3319037ejr.370.2020.05.07.07.38.16; Thu, 07 May 2020 07:38:39 -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=ZzB4d4PH; 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 S1728686AbgEGOgX (ORCPT + 99 others); Thu, 7 May 2020 10:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbgEGOgV (ORCPT ); Thu, 7 May 2020 10:36:21 -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 1E26CC05BD43 for ; Thu, 7 May 2020 07:36:21 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id u127so7082430wmg.1 for ; Thu, 07 May 2020 07:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=97qbtlSksxUqP4IepQZvJvrELnOIuCcLtceZei2X0fU=; b=ZzB4d4PH21eRkcpcL8/dT+++RvB0ZZmSphkIMJLtD5oMY2Jnwy7S98JFpZfw1OYm52 3TWG2h2gorD9PKb0JKdyLP7kgH0CYBI6AQD+bD51IoyPOPJmai2OhLaOaM2Tn8KR/r+T 0HjMn9km6DG+HcLGaNGTTtsaAmKgEi66yeYEVYKrej1QmHPcsTZfgNVFFeqPB5IR4/oJ G297cddKz4Z7Lxx7yvZy8V268l+77Bsr7s7lMPa0lTjhhO62NCnger0sZ9xW99EGDqJN GyLqbTJdof20XyI1vBiW1i2flDKKGUJpK3R7pfKCu/PK8sMvX8aEdJ/CQGv2O2uojqIf fROw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=97qbtlSksxUqP4IepQZvJvrELnOIuCcLtceZei2X0fU=; b=qdYbRwqapsTMBLMkd7eB5YqMNBMXT38IjC2eUaEmVm8UMzP+e7JD8g34KepwZ3BNq8 OiWKliqJ0A2hxELTqlcrrqKK2hj45hjb1PLeCNrdS1GuMuNMZsXg/zc9Tgq18yb/OfDf 2I0MSNhab8SYV7di7HhNTuvMyEh1Q2xjoBKYP51hvw/l0UxKFHpjU7Ie5aMeAe2s3zBM 5V7rEkH63tAJwcLxDG2Ap8dWUxXGFwtlKJCt8Wzj7ajP8NUQNsBHsU8daJNyoQVCzAe4 FYHr1ToAna++/ri82EESq7rZ7vbQp0NP/tPZFWIWtp0uSFtEB4lJYdKQ15IdG5bm/ZcW KQnA== X-Gm-Message-State: AGi0Pua5ima61+tG6J4JVA57DPgE9IrSC+ISM53BZ+K5SmRXZn57KS8m ztbA05DUGORDVHbgiZ4q0WiOTA== X-Received: by 2002:a1c:7d4b:: with SMTP id y72mr10888700wmc.11.1588862179402; Thu, 07 May 2020 07:36:19 -0700 (PDT) Received: from dbrazdil-macbookpro.roam.corp.google.com ([2a01:4b00:8523:2d03:1887:a290:f251:d169]) by smtp.gmail.com with ESMTPSA id c190sm8793473wme.4.2020.05.07.07.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 07:36:18 -0700 (PDT) From: David Brazdil X-Google-Original-From: David Brazdil Date: Thu, 7 May 2020 15:36:17 +0100 To: Marc Zyngier Cc: David Brazdil , Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/15] arm64: kvm: Fix symbol dependency in __hyp_call_panic_nvhe Message-ID: <20200507143617.2j5x3mfxi3ber7ig@dbrazdil-macbookpro.roam.corp.google.com> References: <20200430144831.59194-1-dbrazdil@google.com> <20200430144831.59194-4-dbrazdil@google.com> <87blmzj2w5.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87blmzj2w5.wl-maz@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, > > What breaks without this constraint? Is it a fix that should go in > early? Otherwise looks good. This only becomes an issue when __hyp_call_panic_nvhe() and __hyp_call_panic_vhe() are moved to separate files, so I don't think it's necessary to go in early. Currently the string variable (declared static) is seen by the C compiler as used by __hyp_call_panic_vhe(). But when split, the variable in the nVHE source file becomes unused, is dropped by the compiler and the inline assembly's reference is unresolved. We could then alias __hyp_text___hyp_panic_string back to the VHE copy, but this is the right way of addressing it. Thanks for the review, David