Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PCI: hv: Don't load the driver for baremetal root partition

The root partition only uses VMBus when running nested.

When running on baremetal the Hyper-V PCI driver is not needed,
so do not initialize it.

Signed-off-by: Mukesh Rathor <mrathor@linux.microsoft.com>
Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/1751582677-30930-2-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1751582677-30930-2-git-send-email-nunodasneves@linux.microsoft.com>

authored by

Mukesh Rathor and committed by
Wei Liu
f84b21da 9669ddda

+3
+3
drivers/pci/controller/pci-hyperv.c
··· 4144 4144 if (!hv_is_hyperv_initialized()) 4145 4145 return -ENODEV; 4146 4146 4147 + if (hv_root_partition() && !hv_nested) 4148 + return -ENODEV; 4149 + 4147 4150 ret = hv_pci_irqchip_init(); 4148 4151 if (ret) 4149 4152 return ret;