From nobody Sun Feb 8 12:15:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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 [170.10.133.124]) by mx.zohomail.com with SMTPS id 1636554329682238.71241016082342; Wed, 10 Nov 2021 06:25:29 -0800 (PST) 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-126-bF_rnStdNe2wioaAHiOLgQ-1; Wed, 10 Nov 2021 09:25:25 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E47BF1023F50; Wed, 10 Nov 2021 14:25:19 +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 BDAD660E1C; Wed, 10 Nov 2021 14:25:19 +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 850094EA3E; Wed, 10 Nov 2021 14:25:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AAEP0TP020164 for ; Wed, 10 Nov 2021 09:25:00 -0500 Received: by smtp.corp.redhat.com (Postfix) id 232CD2026D5D; Wed, 10 Nov 2021 14:25:00 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1DEDB2026D48 for ; Wed, 10 Nov 2021 14:25:00 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 03F36811E7F for ; Wed, 10 Nov 2021 14:25:00 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-266-H_b6mYTPMti60Kcy1uITUw-1; Wed, 10 Nov 2021 09:24:57 -0500 Received: by mail-pf1-f175.google.com with SMTP id o4so2759597pfp.13 for ; Wed, 10 Nov 2021 06:24:57 -0800 (PST) Received: from localhost ([2400:ddc0:1000::b373:390c]) by smtp.gmail.com with ESMTPSA id g5sm5898716pjt.15.2021.11.10.06.24.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 06:24:56 -0800 (PST) X-MC-Unique: bF_rnStdNe2wioaAHiOLgQ-1 X-MC-Unique: H_b6mYTPMti60Kcy1uITUw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eXtEF8MHXDpI7dfaONRkUh4tzaAZwBe/wsRMCcHDotI=; b=ipDfVN1H4FrWBE+v5lP9Yh1eaOOvu/iP+1mcinzVK6ACGwVJ4CoFwnpWvQ63CTolpb 12zX/pnfDlAUbtO8EYhxyS+NtV14MFG5rnYEJN6F+k0J3Py6lLi+HNABSkaxT6AdZDyV pijB/LSpkNMrKdfrthezm9UNlC6z4YbVjiw+Envv+/y8lqlTuWb6nUA14PrdqWkcgn2T g3XKkY/56mOa8R4Ng6kodG3itHXlYmzslk6MlVm2/aRmuJ7hD5UAE/Ar2+pu3QNMWD96 UidbhmllcAz26CGBVzxQFlpQ/AmGGGvS/uCIGDKoK7HiqZ10EDf5+CvlEF4kx2l7dj4X EQFA== X-Gm-Message-State: AOAM532lxEL4M1qRyWDs7uaCy/Y9OKangXxEWv/tv13egtgNFvod2zx6 i6HQNVaaH4rFs0odDKZ6kzSskWY4RpRF6OwN X-Google-Smtp-Source: ABdhPJyqIGw9rCJpq9TsgNLtojl0qmh22nW2XYL9+Rf0Y0m/q4mchMgzwyqR0/CWsKMTc3DPRAFguQ== X-Received: by 2002:a63:ea4e:: with SMTP id l14mr160835pgk.406.1636554296597; Wed, 10 Nov 2021 06:24:56 -0800 (PST) From: Luke Yue To: libvir-list@redhat.com Subject: [PATCH v3 05/12] test_driver: Implement virDomainDetachDevice Date: Wed, 10 Nov 2021 22:24:24 +0800 Message-Id: <20211110142431.10622-6-lukedyue@gmail.com> In-Reply-To: <20211110142431.10622-1-lukedyue@gmail.com> References: <20211110142431.10622-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.4 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.79 on 10.5.11.12 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: 1636554330649100001 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 9843340fec..b1ca6a7b97 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -10261,6 +10261,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 */ @@ -10358,6 +10366,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.10.0 */ .domainDetachDeviceAlias =3D testDomainDetachDeviceAlias, /* 7.10.0 */ .domainDetachDeviceFlags =3D testDomainDetachDeviceFlags, /* 7.10.0 */ .domainGetAutostart =3D testDomainGetAutostart, /* 0.3.2 */ --=20 2.33.1