[libvirt] [PATCH v2 2/6] test_driver: implement virDomainAttachDevice

Erik Skultety eskultet at redhat.com
Fri Aug 16 14:30:20 UTC 2019


On Wed, Aug 14, 2019 at 07:47:06PM +0300, Ilias Stamatis wrote:
> Signed-off-by: Ilias Stamatis <stamatis.iliass at gmail.com>
> ---
>  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 5f28e9017f..abf80b97cf 100755
> --- a/src/test/test_driver.c
> +++ b/src/test/test_driver.c
> @@ -4935,6 +4935,14 @@ testDomainAttachDeviceFlags(virDomainPtr dom,
>  }
>
>
> +static int
> +testDomainAttachDevice(virDomainPtr dom,
> +                       const char *xml)
> +{
> +    return testDomainAttachDeviceFlags(dom, xml, VIR_DOMAIN_AFFECT_LIVE);
> +}
> +
> +
>  static int testDomainGetAutostart(virDomainPtr domain,
>                                    int *autostart)
>  {
> @@ -9739,6 +9747,7 @@ static virHypervisorDriver testHypervisorDriver = {
>      .domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
>      .domainFSThaw = testDomainFSThaw, /* 5.7.0 */
>      .domainFSTrim = testDomainFSTrim, /* 5.7.0 */
> +    .domainAttachDevice = testDomainAttachDevice, /* 5.7.0 */
>      .domainAttachDeviceFlags = testDomainAttachDeviceFlags, /* 5.7.0 */
>      .domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
>      .domainSetAutostart = testDomainSetAutostart, /* 0.3.2 */

Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list