From nobody Mon Feb 9 02:12:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1564664236; cv=none; d=zoho.com; s=zohoarc; b=Q2Q3A1MDpChFCmuM4UwdygJZdz+6ad+dEo4FzLM4UXNmTu9QZTN9Tndc83yItxEFmgj+tSSK5mY4Ygy/nKMA8872vgiqlH1jJd7ALR+bYMazka4Gnfyveed9QXV1DaqP4L5AGd9y87whi2PHdEMAp/SQONNZp3nzTY3imMHlAjQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564664236; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=qiLxr5L1JQf3tSebrmZMAefli4IepFf1Z40QGwx3Rro=; b=KPDYKXUUwwvScfnOP0Dcuh4PGRU6dDF6b4igm7Upah8m//432pbZ4JRn5fU91s05nNrq1OasIPj3CWWjDXUJ22EdiQ32/yYx6Tp5f5/Ypvh0fXnwiP7hhBgeW34KPV6jtxguyXrVyLQO/mhC8a/ZuUpTXfaOhVQSBh4VRmGGpFM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1564664236507552.1384537517916; Thu, 1 Aug 2019 05:57:16 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6E3A4307D847; Thu, 1 Aug 2019 12:57:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4502B5C205; Thu, 1 Aug 2019 12:57:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 084B6180BA9B; Thu, 1 Aug 2019 12:57:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x71CvDNO006476 for ; Thu, 1 Aug 2019 08:57:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8D8C7600F8; Thu, 1 Aug 2019 12:57:13 +0000 (UTC) Received: from mx1.redhat.com (ext-mx19.extmail.prod.ext.phx2.redhat.com [10.5.110.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87AD2600C4 for ; Thu, 1 Aug 2019 12:57:13 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D1E4E307D965 for ; Thu, 1 Aug 2019 12:57:12 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id h19so3612918wme.0 for ; Thu, 01 Aug 2019 05:57:12 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id h14sm71248878wrs.66.2019.08.01.05.57.10 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 05:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=CBO1jztugy5YKYhIpR57DbHJrJAt7KOpSFJPuFEOEK8=; b=Im6ifYhIckVehN9Tt0/LzZzv0vXRwMyHD4o4O4BRQL0GAhxoKkR7zML70nBQyhNoWV UkurKdHOULc/77r+/oJK4sBD4zTf/O73qQGNoGrUrsgX0cpon+Wcat8MkhHnGuad2ybE iaHnoyonUtWY19OLGwWd4FHghBmLHz9ZURXrzPiB/9M3vD2u4KmmOIgLyZtn/H+4DN9M cmqUmmuMYBqpxQUMZL8QoMcPUu0Kac6HroKD7yjrxnPgGxn+2w3J63KO1MF6QFRtlOyM CX9L4NEd5Wx9TH/kOCLIsGJbpyc379sya15bcJWTwJe/lDxyONqk1jFFNUDNyBrt3Xfx f5pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CBO1jztugy5YKYhIpR57DbHJrJAt7KOpSFJPuFEOEK8=; b=CfPL4eSkpTv7RYd0/J4SBvxpP+Gv8tcWA8HgAQ6ddJyQwkNZwm+vyHObUyefWYwMP0 xAsUdssaZxtQyGlNYhjHkOsbRC+fz+96E6EEeLAFu340e+u5DXlHs+Kvfkvkt6rZySBJ 70nJwzSJXozVmi3dES++Vp7XaC1l735dXjqrFmXv0Lo4pxtsmHdepJmUmtICs5d9CKvT aLtevbbcnzv/1cA4NHRKA+MgZymgDFoOsL8260KmeKUgv3T2nY+MDwgqmVIG9Mcp+cq8 tax2UFf+DioLMbpPUAGA0I/3NwTOLmDdzPCjGGZO9C/dUc/2j/QR4c+Af0GRxFxRaTBq 47wA== X-Gm-Message-State: APjAAAW5x6TdOWTi5lDtajTX/ogN4uLmH39hgoWkJKIBK+bqjL1dcgxX CWFUVSZvY7jFgRK6zk+apj26UylZXiLgUg== X-Google-Smtp-Source: APXvYqwMz8GNNbTdO68zMoxgDypRJpIJo0t54gg4+6RA/ID3DjtrR02Fiu8UX218aeFHDXSN8I9v6g== X-Received: by 2002:a1c:f409:: with SMTP id z9mr46162042wma.176.1564664231094; Thu, 01 Aug 2019 05:57:11 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Thu, 1 Aug 2019 14:54:51 +0200 Message-Id: <20190801125453.27030-5-stamatis.iliass@gmail.com> In-Reply-To: <20190801125453.27030-1-stamatis.iliass@gmail.com> References: <20190801125453.27030-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 01 Aug 2019 12:57:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 01 Aug 2019 12:57:13 +0000 (UTC) for IP:'209.85.128.68' DOMAIN:'mail-wm1-f68.google.com' HELO:'mail-wm1-f68.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.1 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.128.68 mail-wm1-f68.google.com 209.85.128.68 mail-wm1-f68.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.48 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 4/6] test_driver: implement virDomainDetachDevice X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 01 Aug 2019 12:57:15 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ilias Stamatis --- 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 1d371a5832..de449d89fb 100755 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -4487,6 +4487,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) @@ -9136,6 +9143,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainUndefineFlags =3D testDomainUndefineFlags, /* 0.9.4 */ .domainAttachDevice =3D testDomainAttachDevice, /* 5.7.0 */ .domainAttachDeviceFlags =3D testDomainAttachDeviceFlags, /* 5.7.0 */ + .domainDetachDevice =3D testDomainDetachDevice, /* 5.7.0 */ .domainDetachDeviceFlags =3D testDomainDetachDeviceFlags, /* 5.7.0 */ .domainGetAutostart =3D testDomainGetAutostart, /* 0.3.2 */ .domainSetAutostart =3D testDomainSetAutostart, /* 0.3.2 */ -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list