[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvir-list
Subject:    [libvirt PATCH 2/2] conf: set the default chr device type to pty
From:       Praveen K Paladugu <prapal () linux ! microsoft ! com>
Date:       2022-07-29 20:36:57
Message-ID: 20220729203657.4761-3-prapal () linux ! microsoft ! com
[Download RAW message or body]

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@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic