[libvirt PATCH 2/2] conf: set the default chr device type to pty

Praveen K Paladugu prapal at linux.microsoft.com
Fri Jul 29 20:36:57 UTC 2022


explicitly set the chr device type to pty to pass the
checks of ch driver.
https://gitlab.com/libvirt/libvirt/-/issues/344

Signed-off-by: Praveen K Paladugu <prapal at linux.microsoft.com>
---
 src/conf/domain_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index e85cc1f809..abe9d8ae08 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -10078,6 +10078,7 @@ virDomainChrSourceDefNew(virDomainXMLOption *xmlopt)
 
     if (!(def = virObjectNew(virDomainChrSourceDefClass)))
         return NULL;
+    def->type = VIR_DOMAIN_CHR_TYPE_PTY;
 
     if (xmlopt && xmlopt->privateData.chrSourceNew &&
         !(def->privateData = xmlopt->privateData.chrSourceNew())) {
-- 
2.27.0



More information about the libvir-list mailing list