Message ID | c3cdd2cf2bffeba388688640eb61bc182e4c041d.1672639707.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:4e01:0:0:0:0:0 with SMTP id p1csp4048454wrt; Sun, 1 Jan 2023 23:15:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXurSskFdnpIIeyKXUvUaTcDH42jK5IlCmPqO2MtnAsAmeZW0EDSnHBLgwhQ+Z4dy4vewVe6 X-Received: by 2002:a17:906:2a05:b0:7c1:e7a:62e6 with SMTP id j5-20020a1709062a0500b007c10e7a62e6mr5933689eje.71.1672643757079; Sun, 01 Jan 2023 23:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672643757; cv=none; d=google.com; s=arc-20160816; b=GhfuZB3hhSsQVtoFZtu9RaOuz48hth5eK2i7PVMGz1lKTBzJQN6sjNdWQyEtPsVqmz yspVbIgTlwORsbyF91ediuZccBZ3NDNv9RqOhkY9WHjn+PknvApayahFNe7QdVmC3JqW dh/0REFALa4unsiVSvBzadSTRk4qL2KzcJp49QWaIS4t78S5caFVJN9U76Y6cDn1Wf/g wGcXz3OPpaFel386Mm2S3PbgTV8W97KZ+Dzrr0yJIGXU/IBf7fsLxzYi+Bdr/eAoA9Wj h6CD2tqoM0hMXxwX94ob+u5/pYeRySV6JAacmJZs/MvXNdFZ5ZUZV3XzK7kRo0JPXxXB LSTg== 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=xCyGWSMMJpMhMd1MWhYMnk/hkjPdFZLy1S47PEJXcIEAfG1PojfV8GVx80PJYVOq6N GOPe5MzK2HDzDZsPlYDgBnCiCXrWUhsZHQFp1+ISeaQAyhUzBbGCJ0M9Bi4KKcQ5NCrX iQpj5KCutMB6GW/pVifIHpK9gOFsCatCXrCq2tq2FVNHYdc9iAMDFtpwhBh3YBRki5f4 pokhC33ghtGhi3RLHuqlO8E71boYX+omYk+dIwF3QeS0ojKhhMBih2zlDXGEycbth7ol JJSeqJScwLBGFP0TJvVdNItMDnU0wwgrnTufJh5uODdSNTa6DVpJEjrM9lnFmGU798mP 52xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="cpyT/cqo"; 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 w10-20020a05640234ca00b0048d63df54d7si4138367edc.20.2023.01.01.23.15.33; Sun, 01 Jan 2023 23:15:57 -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="cpyT/cqo"; 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 S231236AbjABHOD (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Mon, 2 Jan 2023 02:14:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjABHNh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Jan 2023 02:13:37 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 470B926D1; Sun, 1 Jan 2023 23:13:20 -0800 (PST) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id D10C120FB6C2; Sun, 1 Jan 2023 23:13:15 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D10C120FB6C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1672643600; bh=WwgTdzq933yo46nX8RcCPBXut+LFdh0yPYBgTMkkcFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cpyT/cqoWkkmbPfM0AhkKC4PwVsYK1NNGw80nxb7E5zfT9Pvu+/iBdUO1pSb4/IPj bZrzO7UVOpaCqLdNlgDJ7oAPEnFgcfp/2Ziuc46rEJ/daTigNwqsHdgjdQwJbLSonL Bfu+8aPTyfI8SEBKD9y4HdFbEWCtbyIs6O68FxUM= 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 v10 4/5] Drivers: hv: Enable vmbus driver for nested root partition Date: Mon, 2 Jan 2023 07:12:54 +0000 Message-Id: <c3cdd2cf2bffeba388688640eb61bc182e4c041d.1672639707.git.jinankjain@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1672639707.git.jinankjain@linux.microsoft.com> References: <cover.1672639707.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?1753894100713875953?= X-GMAIL-MSGID: =?utf-8?q?1753894100713875953?= |
Series |
[v10,1/5] x86/hyperv: Add support for detecting nested hypervisor
|
|
Commit Message
Jinank Jain
Jan. 2, 2023, 7:12 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
From: Jinank Jain <jinankjain@linux.microsoft.com> Sent: Sunday, January 1, 2023 11:13 PM > > 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; > > /* > -- > 2.25.1 Reviewed-by: Michael Kelley <mikelley@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; /*