Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1086102rwi; Thu, 3 Nov 2022 00:22:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y6MN75iaABbP/vaUcV6kGGRWDQIwphAkjR1AO2I+biLuaV3jCsoYV31oyhHDK+lTqx69P X-Received: by 2002:a17:902:c40a:b0:186:ba20:76fa with SMTP id k10-20020a170902c40a00b00186ba2076famr28677437plk.55.1667460159032; Thu, 03 Nov 2022 00:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667460159; cv=none; d=google.com; s=arc-20160816; b=w1m8SncUrKMGMHEvlUzHDC6Qt0OPJZZ0jlVR+7+Mal8zSOsTbpGiQfSo07X/ZElC/N yzrFGn0/XTx8Kl+4DhuP091BM95WJjGPj0XI2W/9P/jXSgHXRsnpsRXgcH/IqBfdSJrq xpd/7qpe434cY70JVX0Zs8RWaRIZlFu+C4JCoSul/yIQWFIXwjbMM3BYoi0karuie8sS ShWkJOmY8nFZ9xzNpawQXAc0T9om+NKoANxzRbsMoB2J5FQDaLxrl9n6tYAlkHRyDhAt VOjkxH33PJcWK+AiupakM4uUelhgOdxXSUvXFsTxuAWdxHFsfZC8pzfbYHMW6EmR+hwX Qc1Q== 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:dkim-signature :dkim-filter; bh=RmEBOp1jxEl8jwEbvovgwfpLMRKzIAy0S5U6ohu6+bc=; b=mzKM63TVC2Zju0A9fFQWKvmpEy5WWnps57ih/Ta6pTWlFSJRyq4xBWjKXhnQYjvO7C U3NDilF67VwTs5sw7LYVtfm0SNX2N2LPTyHwIPl80d8svmkjSf7LqDCJwXYhtHPWzPzl 96apbQx+R3TwFtx6Bf6hdd66OMtcIoMZA00CHxNju/H3tpgEkNbjR4qwQBs9yO6TE4H5 dIweLd0K0uORMNTKLCAI8gZBN0l7t+uG20+tpmNvbIvAItDJUBw+Yme3mFfu8Ea6qdHt fmEBrnkzuqcWMj4QWJscUY6Ju2oE+cIqYg+DgttcHqRjbprezt3qAymwL+2Sy8uvYS2M GxUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=m9MMFzTo; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170903244d00b001871c762261si15601987pls.189.2022.11.03.00.22.25; Thu, 03 Nov 2022 00:22:39 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=m9MMFzTo; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbiKCHCX (ORCPT + 97 others); Thu, 3 Nov 2022 03:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbiKCHCS (ORCPT ); Thu, 3 Nov 2022 03:02:18 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ADECDD2DA; Thu, 3 Nov 2022 00:02:17 -0700 (PDT) Received: from anrayabh-desk (unknown [167.220.238.193]) by linux.microsoft.com (Postfix) with ESMTPSA id ACB98205DA28; Thu, 3 Nov 2022 00:02:11 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com ACB98205DA28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1667458937; bh=RmEBOp1jxEl8jwEbvovgwfpLMRKzIAy0S5U6ohu6+bc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m9MMFzTo/nB7xnKk0cPXEyb6SJh2xqugsdtgatgmPxVViwL4Tlt4bItVcOcypcwxg dcpIbBclhVerd3pZM43yQeML6souvDXMgHq/g26GoLejZGd6nhL70URh2Ivm6ILLWH 4mq1brUlVJv/5q8iLliIikEBN94bQ9iglF/ZBH+Q= Date: Thu, 3 Nov 2022 12:32:06 +0530 From: Anirudh Rayabharam To: Jinank Jain Cc: jinankjain@microsoft.com, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, 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=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Wed, Nov 02, 2022 at 04:36:01PM +0000, Jinank Jain wrote: > 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. Perhaps more importantly, this is required so that L2 _root_ can use the VMBus devices. > > 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) > return 0; > > /* > -- > 2.25.1