From nobody Mon Feb 9 05:01:16 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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=1658499959; cv=none; d=zohomail.com; s=zohoarc; b=TT/sW1CfCjFr2cg+/0+B+jhUP3HdJFHsLHUsuc3laTluvmH5slT6XWwZiIlnF5zPkd9vqlBVgcpIeWv/q6ZDXwhy9CKaYhkBvqqkspRP8TazXAIN0wM/0+amgo66Yirsq7kr07IbgS3upZFcdaGqxtLedBKRWMO/F73Qpfg9Jzs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658499959; 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; bh=xTVXlYcfuLJgOx9ADxmVLEypXIvc1sStTWzjtgtw1to=; b=cZKtlaCDBsAja9BOc9z2LZ01J2zKKpQV/H3EEtZFIxG33yFSwIjw3a47iKDaDGptoYbWzpv0g1LlUHEO/7fl13yaoFuB/nB7emyZFtHfXnt0deYq/GFXhEoZpYhVyVPWeb3IWelu8nBJP581C/avpT/ovsBdE05PEOqQ2h+FfXc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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 [170.10.133.124]) by mx.zohomail.com with SMTPS id 1658499959797233.49753285628663; Fri, 22 Jul 2022 07:25:59 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-116-1hH42AlOPI2XKkKTd0jN8A-1; Fri, 22 Jul 2022 10:25:50 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B440985A587; Fri, 22 Jul 2022 14:25:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A2A3D141511F; Fri, 22 Jul 2022 14:25:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 8E811194704D; Fri, 22 Jul 2022 14:25:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0F2901947049 for ; Fri, 22 Jul 2022 14:25:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E635E492C3B; Fri, 22 Jul 2022 14:25:45 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.34.244.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F54E492CA5 for ; Fri, 22 Jul 2022 14:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658499958; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=xTVXlYcfuLJgOx9ADxmVLEypXIvc1sStTWzjtgtw1to=; b=IXCM5pyaslGLA9JqAETQAJMf/qvAcHyW65DtPXt6X80+SvtIOpx2gI2jQYT4XdmVM9sEYi CI/L3YeYmbHAuTfHPDWrDHtUdpop7mu7szcYFDJTsrPG1NsXqWcap/WJzurvjCNR+SmVZw RuNqW2SBOfB001WCTmAR7yIjT5Bh5FA= X-MC-Unique: 1hH42AlOPI2XKkKTd0jN8A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 2/4] libxl: use virDomainObjResetJob() Date: Fri, 22 Jul 2022 16:25:32 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 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: 1658499961230100002 Content-Type: text/plain; charset="utf-8"; x-default="true" This patch removes and replaces libxlDomainObjResetJob() with general virDomainObjResetJob(). Signed-off-by: Kristina Hanicova --- src/libxl/libxl_domain.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c index e2e078bd50..467c1ee914 100644 --- a/src/libxl/libxl_domain.c +++ b/src/libxl/libxl_domain.c @@ -44,15 +44,6 @@ VIR_LOG_INIT("libxl.libxl_domain"); =20 =20 -static void -libxlDomainObjResetJob(libxlDomainObjPrivate *priv) -{ - virDomainJobObj *job =3D &priv->job; - - job->active =3D VIR_JOB_NONE; - job->owner =3D 0; -} - static void libxlDomainObjFreeJob(libxlDomainObjPrivate *priv) { @@ -92,7 +83,7 @@ libxlDomainObjBeginJob(libxlDriverPrivate *driver G_GNUC_= UNUSED, goto error; } =20 - libxlDomainObjResetJob(priv); + virDomainObjResetJob(&priv->job); =20 VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job)); priv->job.active =3D job; @@ -140,7 +131,7 @@ libxlDomainObjEndJob(libxlDriverPrivate *driver G_GNUC_= UNUSED, VIR_DEBUG("Stopping job: %s", virDomainJobTypeToString(job)); =20 - libxlDomainObjResetJob(priv); + virDomainObjResetJob(&priv->job); virCondSignal(&priv->job.cond); } =20 --=20 2.35.3