[PATCH v2 05/12] test_driver: Implement virDomainDetachDevice

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

 



Signed-off-by: Luke Yue <lukedyue@xxxxxxxxx>
---
 src/test/test_driver.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 6cabf78e7c..c6aead09c9 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -9747,6 +9747,14 @@ testDomainDetachDeviceAlias(virDomainPtr dom,
                                NULL, alias, flags);
 }
 
+static int
+testDomainDetachDevice(virDomainPtr dom,
+                       const char *xml)
+{
+    return testDomainDetachDeviceFlags(dom, xml,
+                                       VIR_DOMAIN_AFFECT_LIVE);
+}
+
 /*
  * Test driver
  */
@@ -9838,6 +9846,7 @@ static virHypervisorDriver testHypervisorDriver = {
     .domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
     .domainFSThaw = testDomainFSThaw, /* 5.7.0 */
     .domainFSTrim = testDomainFSTrim, /* 5.7.0 */
+    .domainDetachDevice = testDomainDetachDevice, /* 7.7.0 */
     .domainDetachDeviceAlias = testDomainDetachDeviceAlias, /* 7.7.0 */
     .domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 7.7.0 */
     .domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
-- 
2.33.0




[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