virDriverFeatureIsGlobal: Handle VIR_DRV_FEATURE_TYPED_PARAM_STRING

This was a lockout to make strings in typed parameters compatible with
versions which didn't have them. Now all drivers need to expose this
capability.

This namely enables it for 'esx' and 'vz' drivers, while they don't seem
to be implementing any parameters for now, they might later.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Peter Krempa 2022-02-16 16:20:23 +01:00
parent 0a6335cd22
commit 963ac787c4

View File

@ -353,7 +353,13 @@ virDriverFeatureIsGlobal(virDrvFeature feat,
*supported = 0; *supported = 0;
return true; return true;
/* Limitation of string support in typed parameters was an RPC limitation.
* At this point everything supports them and thus also drivers need to
* always advertise this feature */
case VIR_DRV_FEATURE_TYPED_PARAM_STRING: case VIR_DRV_FEATURE_TYPED_PARAM_STRING:
*supported = 1;
return true;
case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER: case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER:
case VIR_DRV_FEATURE_FD_PASSING: case VIR_DRV_FEATURE_FD_PASSING:
case VIR_DRV_FEATURE_MIGRATION_V2: case VIR_DRV_FEATURE_MIGRATION_V2: