From nobody Mon Feb 9 19:05:14 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1628169129; cv=none; d=zohomail.com; s=zohoarc; b=F8VCwKwstyF3F7sXL6yZqjaSkR4B0I6xEg8HW2SS+pFBBHpPAaX10yVb0TbsdS+NNTuHVNN66VueVaE8HN3AgVCed+pI6ebsYcr/WG84+uuwXnp6PEtV3aVUpHoOxEcD46tyw0KsSbjjs2+fanv6ucPyFOkHkkn5703gBDP6sDU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628169129; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=lqobmzedYf5M4/HcKA6ILyjVavqeEaYbcWAhv89bhLw=; b=X9fNu89dTKtb8ghTGluG2by9O6Ny6sILnuJudhI9STZnczFVGb7i9nP5PoVmOrXnQJc51zVFQP6oAkS5wl5EYrjUEPREZqH4mSvEQYyc5wJJu9meWaSMvzxJpiDJIamDsnyae3+HcY6k3f6vMbqsDl1bjND9CK/iJKEKrOEYx/g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) 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 1628169129484718.0796022751418; Thu, 5 Aug 2021 06:12:09 -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-343-evAa70aFPjiOssNQhpbXnA-1; Thu, 05 Aug 2021 09:12:06 -0400 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 7095018C89E2; Thu, 5 Aug 2021 13:12:01 +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 5165C60CD1; Thu, 5 Aug 2021 13:12:01 +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 207574A70B; Thu, 5 Aug 2021 13:12:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 175D90Zs007213 for ; Thu, 5 Aug 2021 09:09:00 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4CF0810023B0; Thu, 5 Aug 2021 13:09:00 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.194.81]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9220D1000186; Thu, 5 Aug 2021 13:08:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628169128; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lqobmzedYf5M4/HcKA6ILyjVavqeEaYbcWAhv89bhLw=; b=F84GXZdkxpDmlvk1qMwN9zcOQYxivUaFWJXzmk57JAlP3vvDTh5qFMy+Y8ShYLm3fRnj/x Nr2ax0OkEpcXt1QN9GtOUejJNxQAVb6M/QCwnWg91c4Pr3XqE5tFohDqLCGgZMUi2qTgFV 4OQpev7QiMzfEduF76rRim02zDm8nsA= X-MC-Unique: evAa70aFPjiOssNQhpbXnA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 4/7] qemuhotplugtest: Lock reused virDomainObj Date: Thu, 5 Aug 2021 15:08:48 +0200 Message-Id: <20210805130851.55552-5-twiederh@redhat.com> In-Reply-To: <20210805130851.55552-1-twiederh@redhat.com> References: <20210805130851.55552-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628169130007100001 Content-Type: text/plain; charset="utf-8" If the previous test had `keep =3D=3D 1` set, this function inherits its (unlocked) virDomainObj. Signed-off-by: Tim Wiederhake --- tests/qemuhotplugtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 57d76845c6..d8d6a3a226 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -280,6 +280,7 @@ testQemuHotplug(const void *data) =20 if (test->vm) { vm =3D test->vm; + virObjectLock(vm); if (!vm->def) { VIR_TEST_VERBOSE("test skipped due to failure of dependent tes= t"); goto cleanup; --=20 2.31.1