From: Peter Krempa Date: Wed, 16 Feb 2022 15:26:31 +0000 (+0100) Subject: virDriverFeatureIsGlobal: Handle VIR_DRV_FEATURE_FD_PASSING X-Git-Tag: v8.1.0-rc1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef476708f31073c3816a42fe626a33bc405445dd;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Ján Tomko Reviewed-by: Andrea Bolognani --- diff --git a/src/driver.c b/src/driver.c index bcf5db5998..41b4f0055b 100644 --- a/src/driver.c +++ b/src/driver.c @@ -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: