Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp364983pxt; Wed, 4 Aug 2021 13:16:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8xawD22bDtYuxmEbxNFwRU5Qz1LJ5APDncUFlxggokv+gmnWYxnAmNbZMKNDOM1XiYX7V X-Received: by 2002:a05:6638:1251:: with SMTP id o17mr1157742jas.15.1628108197294; Wed, 04 Aug 2021 13:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628108197; cv=none; d=google.com; s=arc-20160816; b=fr8aJZ+6tQkb/4no8YTqhLHS5+R8NtK3bHbJJmujwvbDD8RM4eOtCfv9enQHPI0KL7 WfofqclTy9dB76+TRvcTQcQXzsgpr65cGoKMNgQP7RJokPJN/r3NPUKcNz8Mi4aH0FtC h1uq6Hoq+v3SJyTgb64ZIzmHqsHAKiUSpMNLhX9TbFtRIJDGEkn4PpiYMfxFf53WvbgY ZDcGUsvqKn9D2Cdel/kj2WLSj/DVGgGcwtaF6MxR5ey52tjAozqXa4ZFZBZBMQfsty5g buLcGy/FK7AOp1CShloUUIjP3u31fXrTZ1HWOirDTWqoC2qHyK77FHnMb5j9O5h9ojaV bImw== 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; bh=ntN9WY4zmMZ23iXHsqDbV7BPHjIIMx7cF5b4w8slmdM=; b=pmCdrKkSGmlyaiWqIFPyQFXAQuIu4vA5M7BxpzDR2n8q+Rm5AqEi7LaeYL/NCLonzr Vr31j4ZEJQh91fYyri5RZxeqIuNDhTMmWcyGrNZVW5UZQ8tk+Ar6syVZ97PlBSV7JrRo TwkMzBfJbpSpN5US19WZlgJZoXyarPZEwrLQf3b6s6uft95mI6ETzzdLrSUC26u/vNaU CgBVoZt80jPphMPydnz9Q8NZWFVGd9uXLeYt9q8aYQ0hdWZSP51auGN6uAqTp4Df7VwF r3tfMW50RDiF2z5cgX4v66Lv5q1RvY/ly0+1zWbox/2Op/I1ElstaVjLn1BsVQs3NXjt SCzQ== 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=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 t9si3467998jaj.20.2021.08.04.13.16.24; Wed, 04 Aug 2021 13:16:37 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239399AbhHDQkt (ORCPT + 99 others); Wed, 4 Aug 2021 12:40:49 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:55885 "EHLO mail-wm1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbhHDQkq (ORCPT ); Wed, 4 Aug 2021 12:40:46 -0400 Received: by mail-wm1-f51.google.com with SMTP id x17so1566757wmc.5; Wed, 04 Aug 2021 09:40:32 -0700 (PDT) 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=ntN9WY4zmMZ23iXHsqDbV7BPHjIIMx7cF5b4w8slmdM=; b=E9rg148APKDCUiGyWGvz8xK7eXKnUuSmsPzc/AUGcBJtSYqullHi1lFZJDp/ycgc6u gDftB3d1CFPtCpkgZT1nxu53Yuo5/wrEUe8knor6+MMVtqD79vydw/CIHB/4zICuLiVm IHOigZGoQPDnsaH8OqZuNlw6ctTm1vPQc7mCwwwXvCfDK3c7Wc5VzpwCY/7SCdsmeNr/ ii4pGv20F3IFPVEdCqj7XHtSeR2G97J2v7Zm0JPD4VVwsHwlLv+5FIFYPRBVG1ZsMI/d lBqT8NHRl9uH7crOq6I4gp+2/++WI4u5n0Fzj860AgPiCCOpSlqrSR9Ur3mkmrj4++0P rZoA== X-Gm-Message-State: AOAM531W4AkjHP9mSqC8367rvh49S2nsZKX/yL0uWFws0E9M5+vea8lL c83r5TBTvzfZqJo+er7ObTI= X-Received: by 2002:a05:600c:219:: with SMTP id 25mr484815wmi.49.1628095231907; Wed, 04 Aug 2021 09:40:31 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id v12sm3125785wrq.59.2021.08.04.09.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 09:40:30 -0700 (PDT) Date: Wed, 4 Aug 2021 16:40:29 +0000 From: Wei Liu To: Catalin Marinas Cc: Michael Kelley , 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: <20210804164029.6xmloksmssrdsmvo@liuwe-devbox-debian-v2> References: <1628092359-61351-1-git-send-email-mikelley@microsoft.com> <1628092359-61351-6-git-send-email-mikelley@microsoft.com> <20210804161040.GC4857@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210804161040.GC4857@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 05:10:41PM +0100, Catalin Marinas wrote: > 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. I can fix it up while I queue these patches. Wei.