Message ID | d26a5aaa9afeb576d270a50a9f6deb207d81b5b2.1670749201.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:e747:0:0:0:0:0 with SMTP id c7csp42500wrn; Tue, 13 Dec 2022 22:34:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf44HQmUoUWWTXJrQpWAM8QsEyK1tKiKCpIgmh138J/QbYQMUppcDyYPleu2vhAzxNPG7A3W X-Received: by 2002:a05:6a00:a07:b0:573:3de7:89a with SMTP id p7-20020a056a000a0700b005733de7089amr34093112pfh.4.1670999686099; Tue, 13 Dec 2022 22:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670999686; cv=none; d=google.com; s=arc-20160816; b=adH5N4rzOq4q7TwXPZkKTebf7URqz9HtH/StiNHhp3T+wikB00xg5zZkxZrPn1ydvv BN96E55r73tgDjoULPSrzC/DwFE0Px70z/tspMVb9TDBMLwY3+6GkwqB7WPOAVgWHo7y 0yWge5L7bCpwbb+VN3JIFNx3Os84o4ic56zqtuqnzRmV8t55g8gfIPD0JAQT6jvK/vvd u9h2BG7fuNasKddOU1bTmJ0JQ161KXD26NJJHayI8w7tBdD11EosNJ/Sen1xJzdLqmOV gpvVhca3HMvvQlwwKZ6lNNJ6uSvLMTdvcFKd+Rg3/UDLTjR3tSc9D7Bd/g4tXaYlnXk3 S2FA== 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=SW/sjQgCnS80O9vXDiWI+AuDHWdLQ9jmWzquhaiAFKo/BFOwP33H1ERShvNoiMhMFw pgWoj1xsXVOsfC+CyX7tLBUGtAPFLuPkZLs8JpGO3rf+sDRDi0DKT0jTf1ge36CulpFV XfM6o2U2TTKzpGxHCUoB1G/XqAnB9fDiNPTp1T0eRxg9xRLq5DHcfHYY3Q+Uqt3R4Wdz T5ETg15+kqkRtolOZHhtmqGOZmMMVvIZrm2qf6IRUXkIjKv/FWAqRQwoEA25DdVuODRq Zf+n88ja2/eYL5B1JytxOsJf0jKiOAr2dyH2K2sNNmE0EbqB/Wqz1VgSz6pDa4EcwxI3 geIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CsKJsCBS; 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 s21-20020a056a00195500b0057ce4b5d624si408572pfk.111.2022.12.13.22.34.33; Tue, 13 Dec 2022 22:34:46 -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=CsKJsCBS; 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 S237387AbiLNGd7 (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Wed, 14 Dec 2022 01:33:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiLNGdq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Dec 2022 01:33:46 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C4F427CF4; Tue, 13 Dec 2022 22:33:29 -0800 (PST) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id D73BB20B8768; Tue, 13 Dec 2022 22:33:24 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D73BB20B8768 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670999609; bh=WwgTdzq933yo46nX8RcCPBXut+LFdh0yPYBgTMkkcFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CsKJsCBSHYuNf9HshG2ldxfiAD5jM4ssLyPqH2FgDcBNAbOq/o8y1cnFnD6H4Vmgw gMWoO1vzXTmCDzgZuFnL3mbncX9L23C35VCgvQLNxXKVuyGqGl3ZjmOxNQJFKacXH1 sMHCcwmCaUUcQCI222lk1amJ2nSGlJYfT6yqY43c= 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 v9 4/5] Drivers: hv: Enable vmbus driver for nested root partition Date: Wed, 14 Dec 2022 06:33:03 +0000 Message-Id: <d26a5aaa9afeb576d270a50a9f6deb207d81b5b2.1670749201.git.jinankjain@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1670749201.git.jinankjain@linux.microsoft.com> References: <cover.1670749201.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?1752170166737174253?= X-GMAIL-MSGID: =?utf-8?q?1752170166737174253?= |
Series |
Add support running nested Microsoft Hypervisor
|
|
Commit Message
Jinank Jain
Dec. 14, 2022, 6:33 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(-)
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; /*