summaryrefslogtreecommitdiff
path: root/drivers/hv
diff options
context:
space:
mode:
authorWei Liu <wei.liu@kernel.org>2021-02-03 15:04:22 +0000
committerWei Liu <wei.liu@kernel.org>2021-02-11 08:47:06 +0000
commit7e279d78664aa91107ebff4b03eca367967f5908 (patch)
tree73160b2e99776cc72ff99a616e5adc4e7f33d5c4 /drivers/hv
parente997720202b363ba8000d769f114e3c2c5822227 (diff)
Drivers: hv: vmbus: skip VMBus initialization if Linux is root
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 <wei.liu@kernel.org> Reviewed-by: Pavel Tatashin <pasha.tatashin@soleen.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20210203150435.27941-4-wei.liu@kernel.org
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/vmbus_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 65535c32662d..10dce9f91216 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -2645,6 +2645,9 @@ static int __init hv_acpi_init(void)
if (!hv_is_hyperv_initialized())
return -ENODEV;
+ if (hv_root_partition)
+ return 0;
+
init_completion(&probe_event);
/*