diff options
author | Jinank Jain <jinankjain@linux.microsoft.com> | 2023-01-02 08:12:54 +0100 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2023-01-17 14:37:19 +0100 |
commit | 8536290f0011c582df08657825cf2fee65aac9ed (patch) | |
tree | 85186a3cfa185955f20d4ae76e1679ac2dd4c75c /drivers/hv/vmbus_drv.c | |
parent | x86/hyperv: Add an interface to do nested hypercalls (diff) | |
download | linux-8536290f0011c582df08657825cf2fee65aac9ed.tar.xz linux-8536290f0011c582df08657825cf2fee65aac9ed.zip |
Drivers: hv: Enable vmbus driver for nested root partition
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>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
-rw-r--r-- | drivers/hv/vmbus_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 3146710d4ac6..1901556efe79 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -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; /* |