From patchwork Thu Dec 1 11:03:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinank Jain X-Patchwork-Id: 28319 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp196909wrr; Thu, 1 Dec 2022 03:06:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf64rzHaEXc5pG5RTadLkhRYzRjimNxYoZWvCbnyqhkLnPp58JxLO1oOUYOnPYlOZjf7hZxO X-Received: by 2002:a17:906:698f:b0:78d:93b1:b3ba with SMTP id i15-20020a170906698f00b0078d93b1b3bamr57171436ejr.66.1669892807709; Thu, 01 Dec 2022 03:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669892807; cv=none; d=google.com; s=arc-20160816; b=JPW1iTmJkx5DokJasJwXNQDvXjPym85XZ6ptAhG8fRh8fVCpI+NOrQ5sZjNNrX0p+u 9EcwmwnwWNiFAm65HzOev0C3ET2+6pZXbJ4XilgTN7pJFW+eNm0eTKSTfYXU+U8PEd1R h+tB5zU0cvrlLHPXLlAMLNH3Z7rjrb3SG28+BiWUAXP3bhhVAJpLTSjGb+ZR7sq/VDup U+zynzvk78ZkyL2IG0b7U3BG9TXhRiowSL315b3tbtxXQSV/x5/XhWuGsuwbkx5j9FU/ 37wJy7CiAPUKeLS/ssetAF2Fx3afTvsY+0wXY9p4cyKM+s97q9r0UN+pWDRBlQSphA5K gqAg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a05640240ce00b0044615ee1b6fsi4096154edb.218.2022.12.01.03.06.24; Thu, 01 Dec 2022 03:06:47 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751009520750829889?= X-GMAIL-MSGID: =?utf-8?q?1751009520750829889?= 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; /*