Message ID | c8aa55ee5b48f301ef721908e6195a102a089d42.1670561320.git.jinankjain@linux.microsoft.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp593702wrr; Thu, 8 Dec 2022 21:35:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jUjvh2NugNRwox9pdmeWNozLiFnCPtfrAF9Qgx8axWUBxz/At6Da6lzFLcABB/hqAHm8/ X-Received: by 2002:a17:906:fb02:b0:78d:f454:386d with SMTP id lz2-20020a170906fb0200b0078df454386dmr3874909ejb.42.1670564152574; Thu, 08 Dec 2022 21:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670564152; cv=none; d=google.com; s=arc-20160816; b=LRmliZssCm+evQDYkmWxzjEh8IQzdNsDbJ0V6qVjwV86fFVX8rSGVuZx1caru2UpvV kYU/qDQaBS4xm4s7itLPGD4Kphz1FTTbYMgJfS1NT1Z2/k+OWDiPwwunqmqgCrVBgf1Z SZZG+JyLV5da9HIR1ZQdryoa1cdui3bgBmYT1GmujD8Ew1pzhGhGXi0+duPvYm3CD0Sz JhuCTnH1QuwUbAiXTYWK9lnkVjXrvvtAEPfAfJvDue2QZ8XgbodpNf5Xx4Lw7RxWq/1O 3c8cBzD5EugILQFOuIhzB1xRihGiFPrKmTDXacr8sDJbG7caahTFQjC2M1C0fIUyQAKS fARA== 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=MPvkUUtC9hpWhFtIpvbh17mc1vq6eLK+pYFSiHN68EK8womGBbktPId1JZMl9wyXLB E7B7qAfeD2+ppBgvVq1Ey2KU1bUnP6+ic74pxYuicGmQuBb9l6BlB38zGgAxMWV4nbwV HO2/Hi2514P9skBap229iSu7pk4NFRP7ZQzaQRrMAT9KlXQrbFvuacq1MUdYc7kdJPpi DLL56IyEr2VQFLg28tJk5/aBKJREWtAnp+qf/KnXMg17yybZ25AK+z5NE2l2Z4shlWMY w0WJA4YBf1Eiq2cXpsVahRNRWJeSMOcESgyo7OHHY9PHqkzarXsbpTj1W9rehXr7WRT4 JPUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="MeGlx//V"; 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 a20-20020a17090680d400b007ae2368c8b7si422607ejx.138.2022.12.08.21.35.22; Thu, 08 Dec 2022 21:35:52 -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="MeGlx//V"; 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 S229632AbiLIFdj (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Fri, 9 Dec 2022 00:33:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbiLIFdP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 9 Dec 2022 00:33:15 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0C546B9A8; Thu, 8 Dec 2022 21:33:00 -0800 (PST) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id A4AC420B83E7; Thu, 8 Dec 2022 21:32:55 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A4AC420B83E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670563980; bh=WwgTdzq933yo46nX8RcCPBXut+LFdh0yPYBgTMkkcFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MeGlx//V0m4UF8HG4q5d2nTA+RsFVtz867EPSiVC6M2Xku3r7VzqPNZsGnkExDqfF b1X2m+a5uC2Ifi6Erz8InVQmS0R2zJ2iuj90y5I23rxbHK17FnoE8OeZetTPthiDl3 amHlCR9BE2injKxuqf6V0hH7tI79u+0DQya4cMIE= From: Jinank Jain <jinankjain@linux.microsoft.com> 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 v8 4/5] Drivers: hv: Enable vmbus driver for nested root partition Date: Fri, 9 Dec 2022 05:32:30 +0000 Message-Id: <c8aa55ee5b48f301ef721908e6195a102a089d42.1670561320.git.jinankjain@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1670561320.git.jinankjain@linux.microsoft.com> References: <cover.1670561320.git.jinankjain@linux.microsoft.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751713476829573137?= X-GMAIL-MSGID: =?utf-8?q?1751713476829573137?= |
Series |
Add support running nested Microsoft Hypervisor
|
|
Commit Message
Jinank Jain
Dec. 9, 2022, 5:32 a.m. UTC
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 <jinankjain@linux.microsoft.com>
---
drivers/hv/vmbus_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 12/8/2022 9:32 PM, 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, > so that L2 root can use the VMBus devices. > > Signed-off-by: Jinank Jain <jinankjain@linux.microsoft.com> > --- > 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; > > /* > Reviewed-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
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; /*