Commit 97a9e14
authored
drivers: hv: mshv_vtl: return 0 for MSHV_CAP_LOWER_VTL_TIMER_VIRT if feature 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: 3528fd7: 3528fd7 ("drivers: hv: mshv_vtl: Advertise TDX timer service extension")1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
0 commit comments