[PATCH 5/8] virDriverFeatureIsGlobal: Handle VIR_DRV_FEATURE_TYPED_PARAM_STRING

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/driver.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/driver.c b/src/driver.c
index 9852a1cb17..d070861cfd 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -353,7 +353,13 @@ virDriverFeatureIsGlobal(virDrvFeature feat,
         *supported = 0;
         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:
+        *supported = 1;
+        return true;
+
     case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER:
     case VIR_DRV_FEATURE_FD_PASSING:
     case VIR_DRV_FEATURE_MIGRATION_V2:
-- 
2.35.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux