Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp551741qtx; Thu, 3 Nov 2022 06:45:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cg12SH0ms/ZVKDj8CpHdsIISc4BR8qegZPo1EMSiNyH5SXAKsBoUgeYgHPoqSM3+K4QpG X-Received: by 2002:a17:907:6744:b0:7ad:c606:3495 with SMTP id qm4-20020a170907674400b007adc6063495mr23240016ejc.731.1667483147965; Thu, 03 Nov 2022 06:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667483147; cv=none; d=google.com; s=arc-20160816; b=IlJSvoc1y4FwlXsee3HHBO66mw1PFBIrQ7BNcowTHu9fh1u/yEJMo21nWnOIowygoP 61Vq4DEnHwrIpc4C80WioCDoITfwVeV8oXRUskOU/4b+bn2DtQx5vv64rFmziIU3vqcY kmkq4GSl3vMudd5LtMoD4TUtVx962xk7fIbI/Z8cmVatgjNJ7KQlJxVHb2O3dYxYA93j MDWQ02pKqEd09cX5gs00ioJFvdFjWs3/mef78k6Up+vncG+sQVdiWwulNuxEIKTOa6eL SoyFGgn8vQsdFeqVZC+jFnCkQapj7Tys5VuQCA25X7/o+LDHNFK+0p6nUT4OxuVGmxNe Dh1Q== 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=wRg2RasbNcCTHIdfOjvFwZNFeGL2yHGK5ZAQjokBqBw=; b=wFcrqiJrED2+qELn/LhWRppiaJtUShw0kCehtzWZXtukmVlxC8YFCqgLbCV8Yu8FGL cfJ5dIRdnHfV+/EYsLf6iMz0rAx5DHYpMHH2pk4+/CasWaqFwSBvYMQFNXnKTRPGnpxo 63jHL98xGsw0dqYgkL3COMbQhgzGICn/mHOIsKwTbchlEuh5cVvzsSr5DlggO4r24lwN WfThmG/cduZdog+Dw0tKMOizcGEDVZ1JcMRAIY/7ISHZ4z0yZaYqg9va01mrr1W3VMQ+ lxPSLyGQSrZKPIeqY9w20Sk4nnrKTYDs2T0eIa3TvntfbTsPR8W48NZb7mrF8vSvt473 HTGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=MqeEQJyA; 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 v18-20020a1709061dd200b0078e1206d934si920331ejh.162.2022.11.03.06.45.24; Thu, 03 Nov 2022 06:45:47 -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=MqeEQJyA; 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 S231459AbiKCNGI (ORCPT + 97 others); Thu, 3 Nov 2022 09:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiKCNFS (ORCPT ); Thu, 3 Nov 2022 09:05:18 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96E1E167D0; Thu, 3 Nov 2022 06:04:31 -0700 (PDT) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id 47398205DA33; Thu, 3 Nov 2022 06:04:27 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 47398205DA33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1667480671; bh=wRg2RasbNcCTHIdfOjvFwZNFeGL2yHGK5ZAQjokBqBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MqeEQJyAJF2j4RKPD3DLL0LoLiuwcCtGKPFBMGca/gLfUN24W3FY7E2Fn7FHwaXNF 9/H3lGZsztOaMxM/fjl2kboAqRCipoh90uzZr5fQWdo2dY26ZD5xg06e3ZF80lnjXc MjlicZ0qlQlPTBXEAehJmkBe1CCaxdIWo+lnEWI8= 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 v3 4/5] Drivers: hv: Enable vmbus driver for nested root partition Date: Thu, 3 Nov 2022 13:04:06 +0000 Message-Id: <9164389f797b6102dd3b3cd1c9d87656464b4bcf.1667480257.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 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