Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1724701rwi; Thu, 3 Nov 2022 08:23:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5w8ATjROmjf/vgK6yt59XQLXRL3eOjV+DZ2q62zvZod5x1xV7K77ZRRlgDCluOX11QrWQM X-Received: by 2002:a62:b40a:0:b0:56c:6c63:fdb2 with SMTP id h10-20020a62b40a000000b0056c6c63fdb2mr30856441pfn.4.1667489028098; Thu, 03 Nov 2022 08:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667489028; cv=none; d=google.com; s=arc-20160816; b=r/+d/5w8/NcR4v+PkDovzOLBMSp0pJ6LxRjc7kMbZ+sK3g89FtnE0S2y1zbzpv3QJh wEikIs6EDzNeOdvvxs9TNVx1riY43zMh5zhZOj2ER6XR9+7M4V7aECQPvGUaJi0fU5Jb rvbRkjs/XtJoqRCKCzysS25d6IQcHe8f4z+I/kxRjNDSBr0mnNrjJH7tWOuHfmf5Z7Hh T4rrqC2mcxIZDg8ix2Ab6u+yshujQkgRS1q6lx5xqsZ37rQl1PVBsKKmhZwbEQtbnloN 7JFiZO0/hCvH3GbAvuI3nABIH2sdlxZHHEbKy82Qkvorh+okJ+sLlrG6v38pSOtOTOCG ycwA== 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=80B2b1bMn1FZmClWYd3FX65ywdaYJT+10GImN40lUiM=; b=SMOVzY3ulsKxx1xFkdBZqhH2pc9e0nHUUH7CHPPA2MK4zDsHdvO+15oaqc+73UTpBQ sZCGDB0/rLPZVC8iVvL3hsXF41pXV/lM3+7ZzTqY+IviQJvPFiH4MaTWymGNFV/FW67K 8aiTSmLbfA8nqOJ612qs4vCEK+42zxFpqG8tJUCoxAV0xIlQARlgMBwjtetg2zkSl8zM 9KyomE/xMJygTAMRxKz42nCerOPp65qmLw5hkyO7eljhGaRMW1OV93594spiFvgJ6b8k ym+ox0FV1X2aMIbRY++pznhrve+Fft/aXT+YaHOsHC9AtBPZoCnOpZGXhey9B/bpNVyS vfpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170903124f00b00179f9521d08si1162735plh.149.2022.11.03.08.23.26; Thu, 03 Nov 2022 08:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231659AbiKCOSP (ORCPT + 97 others); Thu, 3 Nov 2022 10:18:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbiKCORy (ORCPT ); Thu, 3 Nov 2022 10:17:54 -0400 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC57326DC; Thu, 3 Nov 2022 07:16:47 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id bk15so2937822wrb.13; Thu, 03 Nov 2022 07:16:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=80B2b1bMn1FZmClWYd3FX65ywdaYJT+10GImN40lUiM=; b=YtiSEalBmGnnNRutR6EHaozR1TvbreGBqzWUT6T+5vejXH40Dj9xEEg7PQivKifH+u yTUItl/Wxqz7LpYeOs2ZroRxSGVdVGyLcHkUzJX5DaxM4mM71qs0y5x0bsIDpaqvgNa1 Y3Ahk3zvSJcwF2zOUD5d2/GHtGzhgOxSWL3Bt48bDhBBVhCP8lJMDo71sbwKEDXDkS+S emY4D2Np80NB5Q5N6HA/4gLFAEDkOk0Ben4EcrkXXRa7AhnBv7S20PdLf8YS0lhbmoEv q4wISvqGWDlXvsxga8vCd1iDodODIB051CfXgoqYSXxOwG0ujuMj5/mfmrzg7r6kiVu2 owuw== X-Gm-Message-State: ACrzQf3s9YgT7dHW95H3VJbsTBQy03LqntsLJVU45yWUr2QuD1ckWxpF AWBPqtC58D/me8cQvh+nJoE= X-Received: by 2002:a5d:4cca:0:b0:236:aecc:60cb with SMTP id c10-20020a5d4cca000000b00236aecc60cbmr18748510wrt.11.1667485006250; Thu, 03 Nov 2022 07:16:46 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id l6-20020a5d5266000000b00236a16c00ffsm1032357wrc.43.2022.11.03.07.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 07:16:45 -0700 (PDT) Date: Thu, 3 Nov 2022 14:16:36 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: Jinank Jain , Jinank Jain , KY Srinivasan , Haiyang Zhang , "sthemmin@microsoft.com" , "wei.liu@kernel.org" , Dexuan Cui , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "arnd@arndb.de" , "peterz@infradead.org" , "jpoimboe@kernel.org" , "seanjc@google.com" , "kirill.shutemov@linux.intel.com" , "ak@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" Subject: Re: [PATCH v2 4/5] hv: Enable vmbus driver for nested root partition Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 03, 2022 at 03:30:35AM +0000, Michael Kelley (LINUX) wrote: > From: Jinank Jain Sent: Wednesday, November 2, 2022 9:36 AM > > > > Currently VMBus driver is not initialized for root partition but we need > > to enable the VMBus driver for nested root partition. This is required > > to expose VMBus devices to the L2 guest in the nested setup. > > > > Signed-off-by: Jinank Jain > > --- > > drivers/hv/vmbus_drv.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > > index 8b2e413bf19c..2f0cf75e811b 100644 > > --- a/drivers/hv/vmbus_drv.c > > +++ b/drivers/hv/vmbus_drv.c > > @@ -2723,7 +2723,7 @@ static int __init hv_acpi_init(void) > > if (!hv_is_hyperv_initialized()) > > return -ENODEV; > > > > - if (hv_root_partition) > > + if (hv_root_partition && !hv_nested) > > Note that this code must compile and run when Linux is built > to run as a guest on Hyper-V for ARM64. There's currently > no definition for hv_nested on the ARM64 side, so the compile > will fail. But per my comments in Patch 1 in this series, using the > same technique as for hv_root_partition in hv_common.c should > solve the ARM64 problem as well. Jinank, you can use the following commands to cross-compile Linux. make ARCH=arm64 mshv_defconfig make -j$(nproc) ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image I think there are some follow-up patches in the internal tree which fixed the arm64 build. You may be able to squash some of those patches into series. Thanks, Wei.