virDriverFeatureIsGlobal: Handle VIR_DRV_FEATURE_FD_PASSING

The feature implies that fd passing works with RPC. Non-remote impls
thus should always report support.

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:26:31 +01:00
parent 5c95340100
commit ef476708f3

View File

@ -362,10 +362,14 @@ virDriverFeatureIsGlobal(virDrvFeature feat,
* thus use the correct ordering with an updated server. All drivers must
* signal support for this feature. */
case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER:
/* The remote driver intercepts and always reports the feature since it was
* introduced. This means that all driver implementations should advertise
* it too as it works natively without RPC. Always enabling this will also
* prevent regressions when a driver is used in embedded mode */
case VIR_DRV_FEATURE_FD_PASSING:
*supported = 1;
return true;
case VIR_DRV_FEATURE_FD_PASSING:
case VIR_DRV_FEATURE_MIGRATION_V2:
case VIR_DRV_FEATURE_MIGRATION_V3:
case VIR_DRV_FEATURE_MIGRATION_P2P: