From nobody Mon Feb 9 01:21:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1629112826291351.5276307866246; Mon, 16 Aug 2021 04:20:26 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-531-iifYmwqUPFyMpif2JlAXKQ-1; Mon, 16 Aug 2021 07:20:23 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 803841082928; Mon, 16 Aug 2021 11:20:18 +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 58D921017CE8; Mon, 16 Aug 2021 11:20:18 +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 24D9D181A1F3; Mon, 16 Aug 2021 11:20:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17GBK3MI022159 for ; Mon, 16 Aug 2021 07:20:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id 906572157F56; Mon, 16 Aug 2021 11:20:03 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8B7062157F4D for ; Mon, 16 Aug 2021 11:20:03 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 74748101A52C for ; Mon, 16 Aug 2021 11:20:03 +0000 (UTC) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-561-aSjbNBByNCmEEWgTA4aI5w-1; Mon, 16 Aug 2021 07:20:01 -0400 Received: by mail-pj1-f45.google.com with SMTP id oa17so25952526pjb.1 for ; Mon, 16 Aug 2021 04:20:01 -0700 (PDT) Received: from localhost ([103.138.53.99]) by smtp.gmail.com with ESMTPSA id j21sm10526313pfj.66.2021.08.16.04.19.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 04:19:59 -0700 (PDT) X-MC-Unique: iifYmwqUPFyMpif2JlAXKQ-1 X-MC-Unique: aSjbNBByNCmEEWgTA4aI5w-1 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=8ULhClIgiIMm+3mdG/0Sd3BhtXKCuIlUzAhaHlhekyI=; b=nvaWOB8sy2eoGRW3eGdxp1ptWyv3n5jsk1xFGCXleO2iCHt4VJdeQoIedYo88W7c/N D5dZY6MB6AsSVhrL8erfyJiBBcVZaE0eawTkctYEzh3xDZmSKwzhEvjIoQ/8WiEMl9RI 5OpoKBWioSwear7bZIeuSesBRhFzYGlgrOpTdVqkGPvOUwvohqvc5P9j44ueGCVnWacj xYl3CqlHmN2aKlEmauiTCk58nQ20l6GHJSONh4zNVjpuljrcqa0FnhHKY7Q6qtHQ2xvT FdPA6Qy3g2PV3vNNipdATDlwFKF5Uwk1Nu3chtsZH/lT9dRFJ5s60dnZeE0+mcQGW7h7 Lx3g== X-Gm-Message-State: AOAM530ujx3TlFlB9NjjavQGZNDKTbtFjAR3NtZE+Vj9HVPY+7yK7G49 fpEyTVA6wqAhZlW/Y6kkzIkllYNWl77jJJAZjqo= X-Google-Smtp-Source: ABdhPJxl6riGoRqgNALpzdXQxVJEVvrryHPukN6qdziOASxedQYdBXYBaue/fKlz9yPyu0Tv6Ie+MQ== X-Received: by 2002:a17:90b:80c:: with SMTP id bk12mr16611124pjb.134.1629112800255; Mon, 16 Aug 2021 04:20:00 -0700 (PDT) From: Luke Yue To: libvir-list@redhat.com Subject: [PATCH 3/5] test_driver: Implement virDomainDetachDevice Date: Mon, 16 Aug 2021 19:19:47 +0800 Message-Id: <20210816111949.125013-4-lukedyue@gmail.com> In-Reply-To: <20210816111949.125013-1-lukedyue@gmail.com> References: <20210816111949.125013-1-lukedyue@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1629112829736100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Luke Yue --- 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 e2463876fa..21e813db8f 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -9731,6 +9731,14 @@ testDomainDetachDeviceAlias(virDomainPtr dom, NULL, alias, flags); } =20 +static int +testDomainDetachDevice(virDomainPtr dom, + const char *xml) +{ + return testDomainDetachDeviceFlags(dom, xml, + VIR_DOMAIN_AFFECT_LIVE); +} + /* * Test driver */ @@ -9820,6 +9828,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainFSFreeze =3D testDomainFSFreeze, /* 5.7.0 */ .domainFSThaw =3D testDomainFSThaw, /* 5.7.0 */ .domainFSTrim =3D testDomainFSTrim, /* 5.7.0 */ + .domainDetachDevice =3D testDomainDetachDevice, /* 7.7.0 */ .domainDetachDeviceAlias =3D testDomainDetachDeviceAlias, /* 7.7.0 */ .domainDetachDeviceFlags =3D testDomainDetachDeviceFlags, /* 7.7.0 */ .domainGetAutostart =3D testDomainGetAutostart, /* 0.3.2 */ --=20 2.32.0