Re: [PATCH v2] x86/hyperv: Restrict get_vtl to only VTL platforms

2023-09-19 Thread Vitaly Kuznetsov
Saurabh Sengar writes: > For non VTL platforms vtl is always 0, and there is no need of > get_vtl function. For VTL platforms get_vtl should always succeed > and should return the correct VTL. Nitpicking, an alternative summary: """ When Linux runs in a non-default VTL (CONFIG_HYPERV_VTL_MODE=y

[PATCH v2] x86/hyperv: Restrict get_vtl to only VTL platforms

2023-09-18 Thread Saurabh Sengar
For non VTL platforms vtl is always 0, and there is no need of get_vtl function. For VTL platforms get_vtl should always succeed and should return the correct VTL. Signed-off-by: Saurabh Sengar --- [V2] - Put the if else at function definition rather then at the caller arch/x86/hyperv/hv_init.