Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp450189rwb; Thu, 1 Dec 2022 04:25:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6iaUYGMijoOlnj6A1CvLpRE7MIugs04cIPeJM5RR/SqPKDkZx7AOXBlWSnIWclNPCL6SgD X-Received: by 2002:a05:6402:1744:b0:46a:b65a:8bf9 with SMTP id v4-20020a056402174400b0046ab65a8bf9mr27643961edx.287.1669897553292; Thu, 01 Dec 2022 04:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669897553; cv=none; d=google.com; s=arc-20160816; b=C8OiZjl+ItJoW7zdUR+uflM+B/bxFRmaNHN2Sa3Ebz8BnHi5H8dnFaUXQJh2tGus6V 8A+ajXmridzo8caSaOjHLtuqq0t70zdfEDKUIT2qNQFISe0qY+r6v1sDIaUOeAykCOKF IkJiPrpbOqQQQt7nMkKmO4t1gdt+Z63rDqM9TZvHcDVaJHH5i9Cw8JO+bmarnlqgERVw YtzTBcis/kG7vzwhgs0e4f9ip8ibO60sJA6ARkQYrLl15rnT2tg2O7Yx5X23pMMX7qBO 4R8P41A3yx21vjwjDbe/p3xamZ2KNbEt1AG4HV0i2qUN4eI6aUPkkvU58G9YchaWRLnI RrqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=WwgTdzq933yo46nX8RcCPBXut+LFdh0yPYBgTMkkcFM=; b=FEPxD5Onm+HZchtHUrYaFmPGoTGZSWpLZ3VG/qXCpgXL3zUcB+D6tpuWJ3/5qaw0MS wGLvgqUj8w/W7j/4oofP1llWVJYJlwTP6vQ3AxFHVgHMmle6s8z5yu6h5RHCe7giqPXI 8qGxmrDua5l2tL+7kKPJ/gBYXYr3T5N7+uvwhYqpQOqYaEIqhNqvzuqg4N1rldOJUUaK oV7bBB6+NCLSOhq+903OUXjOaO35tX2G+vxY2EmA3/MvEAZLhPSpQMN6zNmL34XMi3/G YlRfmq4d1opSBrcUCvU3IWehP7eigrVobfTpnfRQGRMV98nQY/xmEKL/8vKHhswNZEOz Woyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=XvhAqjVq; 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 s5-20020a056402164500b0046af4b03015si3456698edx.8.2022.12.01.04.25.32; Thu, 01 Dec 2022 04:25:53 -0800 (PST) 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=XvhAqjVq; 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 S231180AbiLALFY (ORCPT + 82 others); Thu, 1 Dec 2022 06:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbiLALEU (ORCPT ); Thu, 1 Dec 2022 06:04:20 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45271E4E; Thu, 1 Dec 2022 03:04:08 -0800 (PST) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id 23E1E20B83E2; Thu, 1 Dec 2022 03:04:02 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 23E1E20B83E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1669892648; bh=WwgTdzq933yo46nX8RcCPBXut+LFdh0yPYBgTMkkcFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XvhAqjVqWrB5AyTgqwZzssPR0l+0kJSN5vfKMA1fbRetW5+K9t5NWU0E7w2QLUDrW 5fNjsYHA8IT3LHXiQg7ASwFWlHf/1fa1C+0dE0ACjGO3Tx3HDvg6ZMSZCbpO1Fm3iA KX1xaxKEQzfQYJxp9snY7snOPerQvIhMbqTWWuU4= From: Jinank Jain To: jinankjain@microsoft.com Cc: kys@microsoft.com, haiyangz@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, jinankjain@linux.microsoft.com, 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, anrayabh@linux.microsoft.com, mikelley@microsoft.com Subject: [PATCH v7 4/5] Drivers: hv: Enable vmbus driver for nested root partition Date: Thu, 1 Dec 2022 11:03:38 +0000 Message-Id: <85c3aa671e52fe0f58bcd30c37bd4f60b8bcd14a.1669788587.git.jinankjain@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Currently VMBus driver is not initialized for root partition but we need to enable the VMBus driver for nested root partition. 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 0f00d57b7c25..6324e01d5eec 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -2745,7 +2745,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