Message ID | 9164389f797b6102dd3b3cd1c9d87656464b4bcf.1667480257.git.jinankjain@linux.microsoft.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp520323wru; Thu, 3 Nov 2022 06:10:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6jXNkBkbBlMVm36uTL+NTFU4SiuBAmAhN47Nf4Jtqr2QcmdMzlF+40l/QK9Z/LqT4br2BC X-Received: by 2002:a05:6402:1497:b0:462:c929:7e89 with SMTP id e23-20020a056402149700b00462c9297e89mr30754078edv.149.1667481018140; Thu, 03 Nov 2022 06:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667481018; cv=none; d=google.com; s=arc-20160816; b=Lip9ZFtY/PIEEJwi5ZmPLJx0T5l+I2QXLARNsmbbYWCA9o45p0AHclHSf3TCKTc6bc RemQCFnQ92TP1Hm2PDH2VYFB1F5Yg+Kp7JIu3pjb+ENv1EOMrzUg+RbCtd3I3LTWWXJQ 7KPpblltthlK9Ow1QNXOWE9hfDiJANuc2fn46imNhAsKpKO0aqwx7HuJwxJhhzYVjSR0 p3uDFX15D0yeYI9VtdbLTczrTEHFSDeTSzmkK6dnvi6V4fec81zrvsZcg0c6H//7LwES +JL1pMp03o6A/NsSP3BdTLVyYoqt/wN90MK+XpvU4pq7aF5SjXZrz/9gBU5ceIotFYXb OGPA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a05640242c300b0045c9904fdafsi1584270edc.74.2022.11.03.06.09.52; Thu, 03 Nov 2022 06:10:18 -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 <rfc822;yves.mi.zy@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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: <cover.1667480257.git.jinankjain@linux.microsoft.com> References: <cover.1667480257.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?1748480576187198053?= X-GMAIL-MSGID: =?utf-8?q?1748480576187198053?= |
Series |
Add support running nested Microsoft Hypervisor
|
|
Commit Message
Jinank Jain
Nov. 3, 2022, 1:04 p.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(-)
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; /*