Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1031039ybk; Sun, 10 May 2020 04:16:34 -0700 (PDT) X-Google-Smtp-Source: APiQypL0MepZX41ILco5nGqNcR9XFQ601qagZ0A6dziRPBESRwDdeey2XTVRLJ1CbDgGHwZSbWvf X-Received: by 2002:a17:906:2e4d:: with SMTP id r13mr2070404eji.379.1589109394002; Sun, 10 May 2020 04:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589109393; cv=none; d=google.com; s=arc-20160816; b=m40PnQOdEAsrrmHXM84vUGG/J3sZ6At0FwhuplGcksDuo67J+GbY3mnJF/tyb2QTAr I1eoUcTSu9eBLmcK3eqLCwKmlfaHOJtyIwDQQ23BzcZgxFwXqE7inZNTceagjrLynmgG ZTedGETBXzOTN/jBkK6kzKAuIiZMNzjlLZfXsPQLJPnYogAHLo/9v4Pkr46BXeTfuX+z oPWyhS7W2BNO9okH+2+d044nY3QTTsjHJ5GoNQR+ddI1tlAOq6fAUE3wfh8g4mrigz6J ETAaNAoYK6MK1IsBi9GbZVnU2VNgKAKvO/rGwHC13lQRnIx/crv5Qr5DhxvjK1Jqy5FZ pvGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date:dkim-signature; bh=JGk8xSwj+p84EteLlas5CwmDiByXIQmJIJDxN4HLz6o=; b=N46rtsTdmJtiAsxBDgRuINwOVfcXdvhCAFw3Ad2zc1i7MsEzQmo7cZDh1Rl9NA/5Fg sJC71CzqH7zTUtzfQgdhbD50l+4Qqg6mQqNEKyX/H+JZvcqxTGGXz+A/Z088Gra1iang lZzCLGKjB01i3Fd1mA7mu221fvcuWg92dPjn7dPDIE0D9b0bK87qXdY4de4Ww5Xgq114 xqzbpRF+MGl/Jz6xOyQJ87TLhPlU8unClIk/C5qAVL5DfO90La84jFPF/+/Nkn3fLRcP JqbOykEtN1DcSnaF6rwu4aKRwJKMPlBC+cobBC+d5lGQbDryzUJlbXyyPqhOA6fZaL8g 3sUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ksl3qV3w; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si4411491edy.155.2020.05.10.04.16.11; Sun, 10 May 2020 04:16:33 -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=@kernel.org header.s=default header.b=ksl3qV3w; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbgEJLOd (ORCPT + 99 others); Sun, 10 May 2020 07:14:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:50534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgEJLOd (ORCPT ); Sun, 10 May 2020 07:14:33 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C0D920820; Sun, 10 May 2020 11:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589109272; bh=COlajW8RQKFlinJelX+sun7g6nJcYpctTT4QvIPlbX8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ksl3qV3whlzZHfDZ/iooD4rNAwXGnBpVXEeLbI99mabix0HJLXjJxB5UVIAazarRl k9v7Slcjlp8FQcOYiQMeleTwsNZzGaeokKb1YKDKDjqlOANUsiluwpyGjlnnXikKyi xWdBqSu93fUOucfzYcRydKpWilnWbNMrNjxBfq5w= Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXjug-00B1qO-OD; Sun, 10 May 2020 12:14:30 +0100 Date: Sun, 10 May 2020 12:14:29 +0100 Message-ID: <87zhagyrca.wl-maz@kernel.org> From: Marc Zyngier To: David Brazdil Cc: 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 In-Reply-To: <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> <20200507143617.2j5x3mfxi3ber7ig@dbrazdil-macbookpro.roam.corp.google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: dbrazdil@google.com, catalin.marinas@arm.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Thu, 07 May 2020 15:36:17 +0100, David Brazdil wrote: > > 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 detailed explanation. I think some of it should make it in the commit message, pointing what breaks and when. M. -- Without deviation from the norm, progress is not possible.