Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp339895pxb; Wed, 20 Jan 2021 08:12:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvSE3kKbPoXlj3Iyds3CBYACjFSPWi7SWFUdrSVumqy2En4RrdYl0EpSN9Y1PvwHIGQHKf X-Received: by 2002:a17:906:f144:: with SMTP id gw4mr6723638ejb.189.1611159169193; Wed, 20 Jan 2021 08:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611159169; cv=none; d=google.com; s=arc-20160816; b=WY3XLD26QBxXgWZtEpfjt+8TvVuoTyzfVX/ar5+qaZRT3LWfS+48rRvtNxA8LAiBCw KF0NxcGx9TTo3Lqvnrzn7S55hcWN65x4S4V7q+/uyDKQmrc2qaMiRXH36+t1QEetVolk B3Ucly+pyzKMxQQV3KG78xLz9q92rpHztc4a8pmHPT88xb/Vw2MhftOJfc5aaal+rsK7 ayy57FWNROidqobBF6PxyGOwYEC1uNoA3ZQYbaUzWL50LfFSzdE8ZLU7lotxBbo6dkUO IPO+id2ECRMX6EjqoOSkDngzCtRXZyzm/adYzoFoZ3mDmnTnzdWD29sG2KgsunTY+Th+ FVXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=odx+DIka95/c6zrkDR8kFE4sUKEXLWcK1XgsQ64ZqzY=; b=fepJ+aE89me3Zj7+/WbDJb7esSi2bUAjre4BSOC6HSzPQsNIHa0FqO7y5Xf+ZOWtPl PHufXbvRFNENMetFdfAlZ8lOM6ElFcgmAwnRItl3ACjFcGFWs3sX9o6U9/0+yp7kjNjm ZPsS//fCHuCkEXkwCYcS3YGidJ0AF5a4H5gq0tn0b4TZl9GEunLgnr6O1rQgvPt80Pjb +D+T8IYK77Z/H15ApzKx10Qd2wB44NdRT/Ray5dt3EEDwMKjvmFp0CFYfIZlRhUzhraB +A4baB6SWDyIwFGlAnxux13uV/phY8QOrSwsjwIzrCF399KDCcqbvqmiIRaUrL6H6jqU agcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b="UMnPQ/JM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si813839ejb.219.2021.01.20.08.12.22; Wed, 20 Jan 2021 08:12:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b="UMnPQ/JM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391008AbhATQJB (ORCPT + 99 others); Wed, 20 Jan 2021 11:09:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732197AbhATQIQ (ORCPT ); Wed, 20 Jan 2021 11:08:16 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7AFC061757 for ; Wed, 20 Jan 2021 08:07:35 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id j13so2105786edp.2 for ; Wed, 20 Jan 2021 08:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=odx+DIka95/c6zrkDR8kFE4sUKEXLWcK1XgsQ64ZqzY=; b=UMnPQ/JMGjxdP+z21Xc0rMdynZ2F0/J98NfDoBgwtmxhotW2QGV2jdCpP/jnDdF+a9 t0TDXmlE+faEnS+090/bYRA/KjWHkaodSI/IplZnq1ZLL2b/SaMsRbTa4Cj8p/F4jSVi oOeR3NyDb3+wpTLdgaGPmdnNysc00uvxirVYEcFmZiWTNZUTv3NrY+AlNuvS+7Gjelg3 W+a239Cc+KCibmr3e7lV7xnhShn1E6Qzyk78zvOEmmjdS7m1Z3wsXTckFVACoAM7rN+f UuAVI6hYX9K9sVw6pwc5Z7u01qATw6GAws+9iSSXFn81Cdu/CcyTQFibhnW4KDrxc4TG +RXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=odx+DIka95/c6zrkDR8kFE4sUKEXLWcK1XgsQ64ZqzY=; b=WXbKXo1VYsJ6aqmO2AZGSm9JXlNm+fMRhvLW3G94jk3dORRvTwENqMJB9ZMP54DBb9 C9XAvcApReawaeMnR84s5B/BHZhO2oGTitCEwXJL7C8F9FaKSvSDsCy7M2eQcrF2IBSK KacqdQebRWGldVsfSLwsQznusze7Lz2ADtU9FvXwCv2ivPVet4RxICZsI16aDFkI5VAj a0WH8uLBSiyGwGDy/glTLO020Y/OB9qNonaGCjIcRPzddr5L4/060EocRlMQY6YvxV1g HJO5b5nxLJiyEunz9Ct23qogU5liM2vEP8pQK7YLVdH2QmE3N6QDxD4LO7kAATZdNvgj sm4Q== X-Gm-Message-State: AOAM533Pa/1pyot5VAbxyU/JHT5aDSDpG+R5BWYqZxktBJWDal+fXLGx UxFj8jTGe/5E2dAZ+SNlh0TDWvqzafrRMlDGgd6I74c+RhGnWA== X-Received: by 2002:a05:6402:304e:: with SMTP id bu14mr7526130edb.60.1611158854493; Wed, 20 Jan 2021 08:07:34 -0800 (PST) MIME-Version: 1.0 References: <20210120120058.29138-1-wei.liu@kernel.org> <20210120120058.29138-4-wei.liu@kernel.org> In-Reply-To: <20210120120058.29138-4-wei.liu@kernel.org> From: Pavel Tatashin Date: Wed, 20 Jan 2021 11:06:58 -0500 Message-ID: Subject: Re: [PATCH v5 03/16] Drivers: hv: vmbus: skip VMBus initialization if Linux is root To: Wei Liu Cc: Linux on Hyper-V List , virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 7:01 AM Wei Liu wrote: > > There is no VMBus and the other infrastructures initialized in > hv_acpi_init when Linux is running as the root partition. > > Signed-off-by: Wei Liu > --- > v3: Return 0 instead of -ENODEV. > --- > drivers/hv/vmbus_drv.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > index 502f8cd95f6d..ee27b3670a51 100644 > --- a/drivers/hv/vmbus_drv.c > +++ b/drivers/hv/vmbus_drv.c > @@ -2620,6 +2620,9 @@ static int __init hv_acpi_init(void) > if (!hv_is_hyperv_initialized()) > return -ENODEV; > > + if (hv_root_partition) > + return 0; > + Reviewed-by: Pavel Tatashin