Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2813175ybk; Mon, 18 May 2020 08:31:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7D7BBEOVl79MNLPCzZ3fFVA1hoZzyMpM6v0R+1MCkxrw5PAxa2NpNghgo6LFhxFcbPHzV X-Received: by 2002:a17:906:304d:: with SMTP id d13mr14357300ejd.159.1589815867929; Mon, 18 May 2020 08:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589815867; cv=none; d=google.com; s=arc-20160816; b=qS6QdSBrfyW8BAZaikQj3GOE5i4ZrCFUPubOjwlTKkZ6AKMSJfUb1GJOPTIhm6OVop ry5QLprWNZz76N3/PY1CpmNOMJmWvOfbiJhMeMTB0yf1jAyqJfnGuT5rzxS8DHzA4Ctc q6f4b/OPUMhGHZXPWdmqV0IcvWMVm2RfPERwakXBgTiFa0V79tzeaK3CLJRLv8sjYJyh 7YmEdcMKhqwfBS2tqOEtcXVifNr73jvgEt2cPhZDsqswvtPPHsm8Ub953LN8Ybn48wnh 49WyqO33PC1unWLlygVOYnTNfPwRG6lxskeXaVhwWx35CkncE3IKimK2cH1q0OBkboGs m/qA== 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:from:date :dkim-signature; bh=4WixP9zOQESaEUk+grq6tjXSo20K+tLvJTvsRgnudUk=; b=TRmX12GEhHOIG93pXoOnRtvXqScCFmqXrfQH6QFev9QBVE3TtXvN9j4u2hScPJHmUT bOmJAWpSDODoB5xcWVoh4II7YqR7qPDIAK+Drzq3rOLLXrPyHqdeKRt5ULpbPctSymUf D5RinV+KLavUUqt/ZP8PXgTjdmTob7KFXDhu/S+Wh2UlK1iEnPIyCGKh4puVvHIm4hhl N7flzw1tBnAQeXPp2ziy1w+STRq/NljoPB8gCCAX+6vt544lA7w2srcCzSQBB5WcxXkV qQUBWixZHrPAfYK8c/0rdDgR079bfAM/Ae6PYSMPYsmJ6tRlX2gSX1bmuCNE8jyYdiXR 9/9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="RWSt17Q/"; 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 l24si1541249edj.16.2020.05.18.08.30.42; Mon, 18 May 2020 08:31:07 -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="RWSt17Q/"; 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 S1727040AbgERP3A (ORCPT + 99 others); Mon, 18 May 2020 11:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgERP27 (ORCPT ); Mon, 18 May 2020 11:28:59 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F707C061A0C for ; Mon, 18 May 2020 08:28:58 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id k12so9723317wmj.3 for ; Mon, 18 May 2020 08:28:58 -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=4WixP9zOQESaEUk+grq6tjXSo20K+tLvJTvsRgnudUk=; b=RWSt17Q/P+CTGFhSHnF5vSVIgqEukfT/ue7prWyK3v1ihEQJc74VjQg5Bf31WcJ8k4 jouQvwUwfngsU4A8QwLSizOwMcPiatSqqmPp2eqpf6+ZgdMWG/CwdnXnaFSH95kncofW /3vslGy5j3My4P0CocjIZaqunf0B3RGMsfOFHTDhT1yA7eMR65w13RBfRRWu9A2RRq3w PhKzgdxDPMxyMmYxNMqqiqB7BAkv8RHT8Cfw12/pH5LYoKTZyT5pss5xdr7wLA3w5YHj TGlG5y2rQLbmZQRREQPmyNEeDBoqsCtgSPI8DYfBiw0OQQSr8AvpQOsVY9LVCxvlB54i kMVQ== 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=4WixP9zOQESaEUk+grq6tjXSo20K+tLvJTvsRgnudUk=; b=VF/JDirs8x14IG4XWEyMBDyVvRUsA9fm2kj9T2zd/HtUP/YN98QR22cyhSE5KDDEC8 sQopVazNULXb1CVNCcA8r2v9iJgHNnAEQbD1lAfFlB0IcFuSpYLHVqyev58uB+2KqXIe A9XetoWdKb7qxMHJLnHnCLJDicIOqnBwBBdJEN9juX6WAWMBG2Ga/9mFiX+c+60TSGkX hCu4Q24tzy4t9SzHWmdMoR9ZVN/7XihJIqD+LlHjfI2R485JlSxQZ8PZdrrqmezIGMVt 6CMcCx8ZIO3j/lL7H3hO1SsaIbOI/WgTimuzmPotcSNRzNQLqns2zf67G2ovpA1PPJHW CwmA== X-Gm-Message-State: AOAM533QJW7RxoAcaAIDw7ztaS3WTt+A1w1mxq9SOzwwg2GorlIS6A7H NEbRTa688Q7nSqIRIPD+hvvf3w== X-Received: by 2002:a05:600c:1006:: with SMTP id c6mr20951848wmc.133.1589815736776; Mon, 18 May 2020 08:28:56 -0700 (PDT) Received: from google.com ([2a00:79e0:d:109:355c:447d:ad3d:ac5c]) by smtp.gmail.com with ESMTPSA id r2sm17269506wrg.84.2020.05.18.08.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 08:28:55 -0700 (PDT) Date: Mon, 18 May 2020 16:28:51 +0100 From: Andrew Scull To: David Brazdil Cc: Catalin Marinas , James Morse , Julien Thierry , Marc Zyngier , Suzuki K Poulose , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 07/14] arm64: kvm: Split hyp/switch.c to VHE/nVHE Message-ID: <20200518152851.GA147668@google.com> References: <20200515105841.73532-1-dbrazdil@google.com> <20200515105841.73532-8-dbrazdil@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515105841.73532-8-dbrazdil@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 11:58:34AM +0100, David Brazdil wrote: > +__kvm_nvhe_sve_load_state = sve_load_state; > +__kvm_nvhe_sve_save_state = sve_save_state; Building without CONFIG_ARM64_VHE leads to a linker error due to the SVE functions being referenced in this list. This is caused by CONFIG_ARM64_VHE disabling CONFIG_ARM64_SVE and, in turn, preventing the generation of those symbols. There aren't any references from code, just this file. It can be resolved by having the SVE symbol aliases depend on CONFIG_ARM64_SVE.