[PATCH v3 REBASE 2 12/12] conf: parse hostdev missing flag

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

 



We want to keep this flag across libvirtd restarts.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
Reviewed-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---
 src/conf/domain_conf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 06a23cd127..a57de9354a 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -7593,6 +7593,7 @@ virDomainHostdevSubsysUSBDefParseXML(xmlNodePtr node,
     g_autofree char *startupPolicy = NULL;
     g_autofree char *autoAddress = NULL;
     g_autofree char *deleteAction = NULL;
+    g_autofree char *missing = NULL;
 
     if ((startupPolicy = virXMLPropString(node, "startupPolicy"))) {
         def->startupPolicy =
@@ -7622,6 +7623,11 @@ virDomainHostdevSubsysUSBDefParseXML(xmlNodePtr node,
         }
     }
 
+    if ((missing = virXMLPropString(node, "missing"))) {
+        if (STREQ(missing, "yes"))
+            def->missing = true;
+    }
+
     /* Product can validly be 0, so we need some extra help to determine
      * if it is uninitialized*/
     got_product = false;
-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[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