Skip to content

Commit

Permalink
Drivers: hv: vmbus: skip VMBus initialization if Linux is root
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wei Liu committed Feb 11, 2021
1 parent e997720 commit 7e279d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 7e279d7

Please sign in to comment.