Drivers: hv: Enable vmbus driver for nested root partition
authorJinank Jain <jinankjain@linux.microsoft.com>
Mon, 2 Jan 2023 07:12:54 +0000 (07:12 +0000)
committerWei Liu <wei.liu@kernel.org>
Tue, 17 Jan 2023 13:37:19 +0000 (13:37 +0000)
Currently VMBus driver is not initialized for root partition but we need
to enable the VMBus driver for nested root partition. This is required,
so that L2 root can use the VMBus devices.

Signed-off-by: Jinank Jain <jinankjain@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/c3cdd2cf2bffeba388688640eb61bc182e4c041d.1672639707.git.jinankjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c

index 3146710d4ac63c005093c0989616b574d28b2447..1901556efe791ccbc445947caeb7d902058a3f01 100644 (file)
@@ -2744,7 +2744,7 @@ static int __init hv_acpi_init(void)
        if (!hv_is_hyperv_initialized())
                return -ENODEV;
 
-       if (hv_root_partition)
+       if (hv_root_partition && !hv_nested)
                return 0;
 
        /*