[PATCH] ch: set shared drivers

Wei Liu wei.liu at kernel.org
Fri Jun 4 14:50:52 UTC 2021


We want to use those shared drivers provided by libvirt to avoid
implementing our own.

Signed-off-by: Wei Liu <liuwe at microsoft.com>
---
 src/ch/ch_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c
index 7d1e97098aef..f1f88ad30cf5 100644
--- a/src/ch/ch_driver.c
+++ b/src/ch/ch_driver.c
@@ -922,7 +922,7 @@ static virStateDriver chStateDriver = {
 
 int chRegister(void)
 {
-    if (virRegisterConnectDriver(&chConnectDriver, false) < 0)
+    if (virRegisterConnectDriver(&chConnectDriver, true) < 0)
         return -1;
     if (virRegisterStateDriver(&chStateDriver) < 0)
         return -1;
-- 
2.30.2




More information about the libvir-list mailing list