From 1047cf13c95df46bd4a2ca1547e596653b76e56f Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 11 Dec 2025 10:17:43 -0800 Subject: [PATCH] drivers: hv: mshv_vtl: 0 for MSHV_CAP_LOWER_VTL_TIMER_VIRT if unsupported Returning -EOPNOTSUPP is a fatal error. It means that The driver doesn't know the feature. Not that the feature is not supported due to the runtime platform reason. Return 0 for MSHV_CAP_LOWER_VTL_TIMER_VIRT on non-TDX platform, which is safer. Fixes: 3528fd7a1743 ("drivers: hv: mshv_vtl: Advertise TDX timer service extension") Signed-off-by: Isaku Yamahata --- drivers/hv/mshv_vtl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/mshv_vtl_main.c b/drivers/hv/mshv_vtl_main.c index 2b79b77fa9ef..92c5d1c37fdd 100644 --- a/drivers/hv/mshv_vtl_main.c +++ b/drivers/hv/mshv_vtl_main.c @@ -332,7 +332,7 @@ static long __mshv_vtl_ioctl_check_extension(u32 arg) case MSHV_CAP_LOWER_VTL_TIMER_VIRT: if (hv_isolation_type_tdx()) return mshv_tdx_vtl_ioctl_check_extension(arg); - break; + return 0; } return -EOPNOTSUPP;