Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp332057pxt; Wed, 4 Aug 2021 12:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHRIuxs7UWYzMqE500LQ3zB4RU9h0ALIdgFK3lFxF3hBl7ytOKGTZqqhkiTjWkbwAHY8OV X-Received: by 2002:a05:6e02:1a43:: with SMTP id u3mr465055ilv.91.1628104732522; Wed, 04 Aug 2021 12:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628104732; cv=none; d=google.com; s=arc-20160816; b=x6/gnyzHNHGyf7uLYq+V/WzdwrXnRSjokTj5SaeFLY8bkjWUloHWSlUHoeXbytIjTX KncukFhDEvmtuZ/1kpKGglVwB86Nc3Bh6Kt7qJmBZdtTpGAXotH8QiCj/7dteF9G0oaf pX3cg3SKmzIsnCNBF6YZgQivmbIW2cE7gGWewAsRo/x69qv/9Zqr3z1GWFlWHnVn4f93 j/SW40ddOfYoRO16wExNpUqjzCSQKaivMKV2jjjOnZq2XsMVIiiwUjBntYuD/maUqsPm ykYSvJV69CREzk2UGj7+s38I0Rx58WroeSPE85i5k462FHkANsQk6wZy77MdaD9K4BgQ qWew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ufo/XIKnhmtkY9frt43yyfLDnbMSA+63Xx4cMAVvhwM=; b=mfTTYk/jZRfZ0uuM+yFYP/h6KseMybEc+zmVAvp63Tg8JZdJ92i+y1EKVpargdPvfM VRwhHUQ8pAQV3qJ0Kl17PiQ9c5c+u6q7WA//8XaOBmC6UUGCiqq8irZT9goqJRfi3rqT Wxvc7KcVqZMlbqQyf1/Qz9Ps1YESrkXH8d4qzydWxwUznAbufXt2Ns0mbUfr84S9sxET gjB9P4htZJnJCY4pksEV84DrrR0xM708Y4R0nhLNpgrxrb27QzQMjBygeUQI7Z48PGXF SXabuKrjKB0r3ua4Dy3j6uMqzHOaJxBK3rHXMnPaoNu6BpL+d39oVC+xiFxPIdC5a8yL DOlQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si2861554ior.73.2021.08.04.12.18.40; Wed, 04 Aug 2021 12:18:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234589AbhHDQNB (ORCPT + 99 others); Wed, 4 Aug 2021 12:13:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:34988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234238AbhHDQK6 (ORCPT ); Wed, 4 Aug 2021 12:10:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ECB0560F35; Wed, 4 Aug 2021 16:10:43 +0000 (UTC) Date: Wed, 4 Aug 2021 17:10:41 +0100 From: Catalin Marinas To: Michael Kelley Cc: will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-efi@vger.kernel.org, wei.liu@kernel.org, kys@microsoft.com, sthemmin@microsoft.com, ardb@kernel.org Subject: Re: [PATCH v12 5/5] Drivers: hv: Enable Hyper-V code to be built on ARM64 Message-ID: <20210804161040.GC4857@arm.com> References: <1628092359-61351-1-git-send-email-mikelley@microsoft.com> <1628092359-61351-6-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1628092359-61351-6-git-send-email-mikelley@microsoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 08:52:39AM -0700, Michael Kelley wrote: > Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on > ARM64, causing the Hyper-V specific code to be built. Exclude the > Hyper-V enlightened clocks/timers code from being built for ARM64. > > Signed-off-by: Michael Kelley > Reviewed-by: Boqun Feng > Acked-by: Marc Zyngier > Acked-by: Mark Rutland > > --- > drivers/hv/Kconfig | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig > index 66c794d..e509d5d 100644 > --- a/drivers/hv/Kconfig > +++ b/drivers/hv/Kconfig > @@ -4,7 +4,8 @@ menu "Microsoft Hyper-V guest support" > > config HYPERV > tristate "Microsoft Hyper-V client drivers" > - depends on X86 && ACPI && X86_LOCAL_APIC && HYPERVISOR_GUEST > + depends on ACPI && ((X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \ > + || (ARM64 && !CPU_BIG_ENDIAN)) > select PARAVIRT > select X86_HV_CALLBACK_VECTOR Does this need to be: select X86_HV_CALLBACK_VECTOR if X86 I haven't checked whether it gives a warning on arm64 but that symbol doesn't exist. Anyway, I can fix it up locally. As an additional patch (it can be done later, once this goes upstream) I think we should replace the depends on with a single ARCH_HAS_HYPERV. -- Catalin