Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3199998rwb; Fri, 9 Dec 2022 11:12:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NBuMkLCUrNw9Od3dVhOuY/1wOoVQudYwZpeNNujxWccH8ZgsibvZnrmK8/UsnrX+2By9o X-Received: by 2002:a05:6402:3609:b0:461:8be6:1ac5 with SMTP id el9-20020a056402360900b004618be61ac5mr5936212edb.3.1670613135356; Fri, 09 Dec 2022 11:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670613135; cv=none; d=google.com; s=arc-20160816; b=q8Q34pN8MeYqjPbr7EQGB2VzkdPAN1bXG9r2cVL4JDnStw6Rou1/IKBRMVjuYKm8zm izCDNBmwLhx4QN02FsRor/fSCPLkbvAj6xO5+vnA1chtEHxyB7CFKZqbBxb1VseiPRVl Z1iZzYZbFRAXKO2WTyKmFz2bPLeY0KAiBlg9qP+YQR8Itv5l0hfx787Qigmwxp++25t+ O4c9a9PmO/3OiRrqqzLZgAG9XjUQ4+4anJOnqrLSNsfblPulzH/49Y/7jF/fMlWh02PN cS+IkbDRjCIGNntX2lzMmCYVaUsCOZznOGeOlpPr0NZXhXpi7qT3iXtFAZJ9YThbsU8T 6ybg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=lzFnTftRvxlZ+Gp85uwktXavpvOXAhfKFviLo3DMfwo=; b=cWPeAQvr25EdbbCo8ChmRoaloxFI4u4fgiF78ak1q8OyBSHq2Ot/dxpdd6Wv5wHdoh nvgss9gMJd0Lk7qKCK0VkoAjjqu+Y61QIQmJ1SyXTDMhoS5ogiK6i0/7HfIIbyqPZpsI +swk8bw7C61JjCTLmsGDEbrdFKGlxtTNmg429wH/ccRo7Wh4JXoEMR0gI3h+QchQY/Xw 5s7WsALV9cBP1fB7fvZR0/ffk9j/PIvX2dFEW4ImhqGHg9Qewc5CKSrMXYQMbf5FJAEk SMfNzYgGl+yNnyT4dOTYse3hIqKzTLOkbzwLY4h9BjMzt3n3XnA1h3IoGq4Fwxa9Wnko SgKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ml8VmkXz; 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 r3-20020a056402034300b0046107f951f9si1788888edw.237.2022.12.09.11.11.57; Fri, 09 Dec 2022 11:12:15 -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=ml8VmkXz; 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 S229932AbiLISRK (ORCPT + 74 others); Fri, 9 Dec 2022 13:17:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbiLISQ6 (ORCPT ); Fri, 9 Dec 2022 13:16:58 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06ED8AC6DF; Fri, 9 Dec 2022 10:16:57 -0800 (PST) Received: from [192.168.0.5] (71-212-113-106.tukw.qwest.net [71.212.113.106]) by linux.microsoft.com (Postfix) with ESMTPSA id 7333820B83C2; Fri, 9 Dec 2022 10:16:56 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7333820B83C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670609816; bh=lzFnTftRvxlZ+Gp85uwktXavpvOXAhfKFviLo3DMfwo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ml8VmkXz4Y1dj/DbMqloNM7VMWznzIn+ig7QaDWVQbzj1O7/crKJi1zVjqTWT09q0 0rRVt7NwqKNDuqt/c+8B0kq9cqw+dPNLVCBknhjt5lKwQiEvcPdzeMhayh3VpBpaa3 g6iK/YUGVnqJ0UOP/IhoWG4+JVexLjnYaT+TCfYs= Subject: Re: [PATCH v8 4/5] Drivers: hv: Enable vmbus driver for nested root partition To: Jinank Jain , 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, 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 References: From: Nuno Das Neves Message-ID: Date: Fri, 9 Dec 2022 10:16:56 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-20.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, 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 On 12/8/2022 9:32 PM, Jinank Jain wrote: > 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 > --- > 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; > > /* > Reviewed-by: Nuno Das Neves