From nobody Sat Oct 11 12:08:51 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B987B2868AC; Tue, 10 Jun 2025 23:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749599531; cv=none; b=CBqYI/fY7HUzhAGbbaRqXcKCBv4FeX0kM9unpe4h4JsBbNcsQyfE6RiMKnPgW5OglZv2aq1OgY9irBcZrrQp30e9Z6/QA4UHQVfZezC/kVPP9ZSBYyHvo0q9WLDjrBYbpH4F/qC8us21N7tWLtZlQBUaVMXRp2+c0CSmhWayHRE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749599531; c=relaxed/simple; bh=37HPHA9RfOtlboXAsLA3xyjUIs+4gv/UlcQmD0ikOZI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=CNzJRyLOMbZ7gK8UtkV8KrELO2V58F/WnzPvGgDu/d3NxfjIZWuYQ0Al8r4qitzrkJRi6RqQw7EmJqa8DUjcb0TxyUP6gjZUYty4RM/lMC79wBiDjdmuRUSNNi38oLSg+BeU5RY0wMr3KpGXEa/0Un3VNLUuYQ+cQBfjG3Zomvk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=P0+Z0f4B; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="P0+Z0f4B" Received: by linux.microsoft.com (Postfix, from userid 1032) id 53E3E2078616; Tue, 10 Jun 2025 16:52:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 53E3E2078616 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1749599529; bh=puB6cQFE/rhFTMv5Zzq0obpGjYzCvE7tXTvZDEqP3mA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P0+Z0f4BKYWK/KShVT6OLBOzCiYr/h6meeLZkwn4DDq55vb5NYJWA3EY+zs+CFuak hYOn+YkHhCvZkEj3mTZK7nHjaLpFt42zgQ0Zkyg2FDSteIySCpVJz1/H2sc3jCGC7v MkT40l/z1WnTDuczGpq4nhCmhCg7gIaudSF+ljqo= From: Nuno Das Neves To: linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, mhklinux@outlook.com, decui@microsoft.com, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, lpieralisi@kernel.org, kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org, bhelgaas@google.com, jinankjain@linux.microsoft.com, skinsburskii@linux.microsoft.com, mrathor@linux.microsoft.com, x86@kernel.org, Nuno Das Neves Subject: [PATCH 1/4] PCI: hv: Do not do vmbus initialization on baremetal Date: Tue, 10 Jun 2025 16:52:03 -0700 Message-Id: <1749599526-19963-2-git-send-email-nunodasneves@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1749599526-19963-1-git-send-email-nunodasneves@linux.microsoft.com> References: <1749599526-19963-1-git-send-email-nunodasneves@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Mukesh Rathor init_hv_pci_drv() is not relevant for root partition on baremetal as there is no vmbus. On nested (with a Windows L1 root), vmbus is present. Signed-off-by: Mukesh Rathor Signed-off-by: Nuno Das Neves --- drivers/pci/controller/pci-hyperv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/p= ci-hyperv.c index b4f29ee75848..4d25754dfe2f 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -4150,6 +4150,9 @@ static int __init init_hv_pci_drv(void) if (!hv_is_hyperv_initialized()) return -ENODEV; =20 + if (hv_root_partition() && !hv_nested) + return -ENODEV; + ret =3D hv_pci_irqchip_init(); if (ret) return ret; --=20 2.34.1