From nobody Mon Feb 9 02:13:19 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=1565801357; cv=none; d=zoho.com; s=zohoarc; b=feOx+zysFVmpnVN0PS1KcuapfDvL0Qd/I0BrzaRXofJ+siysHGDPlXtEZU3uok5sUZ0u0zbUr1LB3mL+ug6biXyyhDGJTDwSt/2x5OuAFsski8mPiPUZXqhZQ/GXBkQR43Rg0Bsy3dU4q/l3pIyv27MmvrwGFNR4WpFg85aefQ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565801357; 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=ld+DVDbbqlmuWN3GTfkL8S+k6F40sKprG42YWFDkewU=; b=TYsJma5oCQtQS5A3Vxd++1SyUV2tQCaAolpP3Q+HEtio1EtvaG7d9OVeV3I//utv3a8dWg28p726Nu/LOe4yvkjTg/nxj6FQSVGtQSpFoKhTKP4fEbg50DR2dgMlz6/i7qiM5tC7BomdEv8Wnr2tJ5D5ZAtfISOkrCBIM/nqXSs= 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 1565801357564864.1648676078811; Wed, 14 Aug 2019 09:49:17 -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 5E22F3066FAC; Wed, 14 Aug 2019 16:49:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3BEF77B6DC; Wed, 14 Aug 2019 16:49:16 +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 0503524F31; Wed, 14 Aug 2019 16:49:16 +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 x7EGnELl028197 for ; Wed, 14 Aug 2019 12:49:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9488F80A51; Wed, 14 Aug 2019 16:49:14 +0000 (UTC) Received: from mx1.redhat.com (ext-mx17.extmail.prod.ext.phx2.redhat.com [10.5.110.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8F64180A4C for ; Wed, 14 Aug 2019 16:49:10 +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 A4C2C302C074 for ; Wed, 14 Aug 2019 16:49:09 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id g67so5059696wme.1 for ; Wed, 14 Aug 2019 09:49:09 -0700 (PDT) Received: from archlap.localdomain ([185.32.231.210]) by smtp.gmail.com with ESMTPSA id d20sm129372wmb.24.2019.08.14.09.49.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 09:49:07 -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=qTJI075MaStRnc6cav9xUAinPbx2AVLEEZ8eQGh9hSs=; b=QNrmtJ/4iwbr8yVVZfrQln0HaCTFJodL268bvE8olbaxTjmPyGTxn+/bzW8BTugH8+ EizBuI03wYUmhyklfWajCd2PcCBqVbmntPsz2HjHUse75Hgmz+aE3pN5TRB0nv70O7Un VHu5B8YcCz856nxJiye7q134Lk94jgCp3MKCI7fJPyRbuySRT3qUhDZQHPVn0IVRYeBS e57B+gA1k2D9Cf8d7acTmqFlpl1764qDaJoU1ac8OmHKvHf4hPeawQEbUMsVPyirGEiJ /+mK1PQOwYhMPxHk+85JVZ89UdrgdARk7jAfKfg+/SmIe06ZRxsS4/Uy0tA2RQgq3M4a w7qA== 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=qTJI075MaStRnc6cav9xUAinPbx2AVLEEZ8eQGh9hSs=; b=D2dBXOjH096DcsEQVrsVbtH9+wrJsfpqL3JWjaLN/gc9/EP05Xhvlo3AGLeehYY+k+ 1gnQiqVCRuVZBpJ9YsOGZVqw4FB4UzPXh+p95bCB/4v2Mp0w5B70p+1QQLMDNZmKgeHf weLsbeaONaLUsMV74t6XDI6cbDFDaIIDqwJJtqg81sojW+h5P6sKmnS8f4Al2a9cYB4K oRa+2SLvPFroztWouoDX3CNxPcxPK3mSQw4SZ2VkDrudB0rZjJ4h0yajxtsXblUgT3Jj UHhJSIzNBJoD7Ca0nmRNRspMMYq9jChvHFZQYTts7dE9Pn//C+H3F+eKpAh3aRq3Y0mX YXFg== X-Gm-Message-State: APjAAAUm6I46acPp9yo/ILyIrR+H5WxPJpT+Xt8FWGbseih04P1t0nwi s4pHDNnSwwqFLS6xFNCvoBgfx2OK+kU= X-Google-Smtp-Source: APXvYqxej8dLGvZr3qzDpx3oT7DAdIF1vDDspIBUS/yDf3t9XMAzR74mV1GPueJqk1RbGWl5D8L2PA== X-Received: by 2002:a1c:f914:: with SMTP id x20mr84107wmh.142.1565801347869; Wed, 14 Aug 2019 09:49:07 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Wed, 14 Aug 2019 19:47:08 +0300 Message-Id: <20190814164709.5418-5-stamatis.iliass@gmail.com> In-Reply-To: <20190814164709.5418-1-stamatis.iliass@gmail.com> References: <20190814164709.5418-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.46]); Wed, 14 Aug 2019 16:49:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 14 Aug 2019 16:49:09 +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.505 (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.46 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 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.42]); Wed, 14 Aug 2019 16:49:16 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- 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 =3D { .domainFSTrim =3D testDomainFSTrim, /* 5.7.0 */ .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