Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp217126rwi; Wed, 2 Nov 2022 11:06:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57dJ8JxeAgQ0H9mVYuy7hx+3/bM8RMVIS6xz/iKgmhgzztGFHIbIlUy8LDVMq1UIa0RihJ X-Received: by 2002:a17:906:5a46:b0:7ad:b822:d2c2 with SMTP id my6-20020a1709065a4600b007adb822d2c2mr22213802ejc.41.1667412365466; Wed, 02 Nov 2022 11:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667412365; cv=none; d=google.com; s=arc-20160816; b=KwOvOcu4TxNQ3mTM3eTZ/oFfOWJmFEE3hRYKZ3Twd2OaNoeExHOi7orHhqmoLeKhkj qDHKdHclyXv9642lHMUd/GO+AcN55stm+pcvjsl64sVHTwf+1hMZ+yYdV42nIL5Ysp57 xGDAfWwXqXT4R/ZCHXrbnvAGJ/1ttujc7CbFnZmz+Q3tbRTGIvoJv7qhR51ySK6tTdCv kPETkCFzWcGUl+INufmasz4oSCbcg0e0spSarrI3EF1THUnoT8gCd6dOSl89txeAJG0i /Ib2dVDamBD9spkp/EJlpxDFnCw+gcLcNFjuk1rUy7vCvV3o/QdnKt6A3gwBFt41zJvx mQvQ== 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=1B9p6pFN0yHl6pLuVEuKSNR9XxSBhvzkr5T1mlusw7Q=; b=sTmwDTOplS5KAB1XT+LKwd3A/rZRtNR1cdtEeJKzTEjTB/u7qP/WfAvv8aGcSsZ1bh Xr69aam5P+O7Yf1l9qbBBD0uZVLj3x3Yur2TDd5NSONIcAxEBgoD6kWvePypfXu+Ji8F alVUuNaOOcpykqyGtHtXgLufBhtkxsBd+28ZoAFiZvfR0jHCiy69GJqC8b4cxvO/PfUJ 2Gyruduwdo0fuCe2+xsHwRdoEVQkoR9u64d5Hf3z9UZzam3mosikaCrB46g+Csjazk// MjTAGIKn5l5Mf1LqCVkaXoFfMWuviPOWPGu67dWQfssPU0yDsLcoz7TflgJcECvPFU0y ej+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=bEfUmfGA; 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 wz1-20020a170906fe4100b007add62d9f38si12349291ejb.330.2022.11.02.11.05.11; Wed, 02 Nov 2022 11:06:05 -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=bEfUmfGA; 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 S232102AbiKBQmG (ORCPT + 98 others); Wed, 2 Nov 2022 12:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231944AbiKBQlU (ORCPT ); Wed, 2 Nov 2022 12:41:20 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D24082EF47; Wed, 2 Nov 2022 09:36:25 -0700 (PDT) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id AD76720C333D; Wed, 2 Nov 2022 09:36:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com AD76720C333D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1667406985; bh=1B9p6pFN0yHl6pLuVEuKSNR9XxSBhvzkr5T1mlusw7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bEfUmfGAOBS5gITdkhShpUgdIYz8e+w/nnho/XxjusjA2Kkf5dnpHM4P8CHymhhL8 8HCaxw248anAGvGRKkFoo8Qmn43xKnKtKQfY9wCv17wcfD2JfZKky368V8dGvXvmkG ak3Witv1f52bZtBBpaQGXphevowOygPlmqzZFDeg= From: Jinank Jain To: jinankjain@microsoft.com Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@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 Subject: [PATCH v2 4/5] hv: Enable vmbus driver for nested root partition Date: Wed, 2 Nov 2022 16:36:01 +0000 Message-Id: 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 to expose VMBus devices to the L2 guest in the nested setup. 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