Re: [PATCH v2 4/6] test_driver: implement virDomainDetachDevice

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

 



On Wed, Aug 14, 2019 at 07:47:08PM +0300, Ilias Stamatis wrote:
> Signed-off-by: Ilias Stamatis <stamatis.iliass@xxxxxxxxx>
> ---
>  src/test/test_driver.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/src/test/test_driver.c b/src/test/test_driver.c
> index ff9693ccb7..1152ca5bed 100755
> --- a/src/test/test_driver.c
> +++ b/src/test/test_driver.c
> @@ -5119,6 +5119,13 @@ testDomainDetachDeviceFlags(virDomainPtr dom,
>                                                xml, NULL, flags);
>  }
>
> +static int
> +testDomainDetachDevice(virDomainPtr dom,
> +                       const char *xml)
> +{
> +    return testDomainDetachDeviceFlags(dom, xml, VIR_DOMAIN_AFFECT_LIVE);
> +}
> +
>
>  static int testDomainGetAutostart(virDomainPtr domain,
>                                    int *autostart)
> @@ -9926,6 +9933,7 @@ static virHypervisorDriver testHypervisorDriver = {
>      .domainFSTrim = testDomainFSTrim, /* 5.7.0 */
>      .domainAttachDevice = testDomainAttachDevice, /* 5.7.0 */
>      .domainAttachDeviceFlags = testDomainAttachDeviceFlags, /* 5.7.0 */
> +    .domainDetachDevice = testDomainDetachDevice, /* 5.7.0 */
>      .domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 5.7.0 */
>      .domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
>      .domainSetAutostart = testDomainSetAutostart, /* 0.3.2 */

Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>

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