Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp4169922rwi; Wed, 2 Nov 2022 07:38:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eoHVvIBIEsdmyWCtqTTtsmOcbhZcEKFML2qTvIxyHCoZ++N2SZf75FKc/zpo0nawtxWpr X-Received: by 2002:a63:2364:0:b0:46f:5de2:30d1 with SMTP id u36-20020a632364000000b0046f5de230d1mr21763167pgm.304.1667399911837; Wed, 02 Nov 2022 07:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667399911; cv=none; d=google.com; s=arc-20160816; b=QnpEHIrS62GM29oWc6W5wPASNIAXhb73SOVbhAe/STJEB9J8feKIS55/LbLh13JVSc I54MDEXNj0oq3lmS6EnaNnawkLh5DpIrChNKhsBYGtV0UIstQHnKTSoyL3j7dP0MYv/u FVn8RoYFmMv8WSLL/f8VbefL+f5Ur+/u+JuitmJ6f3GHMLah+tZQUXC/UCEttkC0lCqW Ve4HDF1JrqB7dFzE5A6NhbrieQ9GkjSd2IaUjKqk+oceC2k5mjkNsbrapvO2cC6Lpu6f omb9ghjXtRVdAJkd2eOO2oP5ZrRSSM0enZ3s2P1CTl2tltT9xdsfyoaa9DnSZNDPOg31 Q9fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature:dkim-filter; bh=1B9p6pFN0yHl6pLuVEuKSNR9XxSBhvzkr5T1mlusw7Q=; b=mAqfyBTFt9dnVqwDEJWWO2G32oPRtq8V4amKDC5Rh/NNNdFSgqVzZjttdIf2hCkVcI dFXpfoHLQ4kTKmSiL5uHuL8Tmj3kcG7u/ejHEqS3ckf/AFdNewHn8rtigLwv9O+ybzRF xd3olMjQSxYDdv3x8o13EV6/UCLXkELw8UrFkX2pRlVYCHhCrzhlQ8750oSJYTrThnuC CC5X/MAq2Vs6/VrT0RuqV6XZGrCyaa3Sb/xAXZ1SmsAZiANy/DVGxFE0jhT2B0YkeL5P nFlz8LURZsTm1ZA1LJfnZqzlSutM3u2irCGZjQ1C41x0NH8/333KR4lIqTaxf2Ge4725 0tdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linux.microsoft.com header.s=default header.b=aA8F1YqB; 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=fail (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 h7-20020a63e147000000b0045eaa7cbecfsi15749609pgk.628.2022.11.02.07.38.16; Wed, 02 Nov 2022 07:38:31 -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=fail header.i=@linux.microsoft.com header.s=default header.b=aA8F1YqB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230013AbiKBOBY (ORCPT + 99 others); Wed, 2 Nov 2022 10:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbiKBOA6 (ORCPT ); Wed, 2 Nov 2022 10:00:58 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF533F009; Wed, 2 Nov 2022 07:00:44 -0700 (PDT) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id ADDDF20B9F81; Wed, 2 Nov 2022 07:00:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com ADDDF20B9F81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1667397644; bh=1B9p6pFN0yHl6pLuVEuKSNR9XxSBhvzkr5T1mlusw7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aA8F1YqBGYt4Jz+EAdsr7+jrQQDPc/t71mULllyKGzjdBTWgc9SMmZgGei6yVD9TS rJAyFc2cSqy3/Ua+ubKUGhDoYzW1aIizgRgdo4CyIJ7jTNWmKqRb+V1BkwrjmCNkm5 XJ5WyYMVmINhplBTP4UBICNLB+eoleSxA+UzUnvs= From: Jinank Jain 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 5/6] hv: Enable vmbus driver for nested root partition Date: Wed, 2 Nov 2022 14:00:16 +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 To: unlisted-recipients:; (no To-header on input) 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