[PATCH v3 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 9843340fec..b1ca6a7b97 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -10261,6 +10261,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
  */
@@ -10358,6 +10366,7 @@ static virHypervisorDriver testHypervisorDriver = {
     .domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
     .domainFSThaw = testDomainFSThaw, /* 5.7.0 */
     .domainFSTrim = testDomainFSTrim, /* 5.7.0 */
+    .domainDetachDevice = testDomainDetachDevice, /* 7.10.0 */
     .domainDetachDeviceAlias = testDomainDetachDeviceAlias, /* 7.10.0 */
     .domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 7.10.0 */
     .domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
-- 
2.33.1




[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