From nobody Sun Feb 8 19:56:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1652793435; cv=none; d=zohomail.com; s=zohoarc; b=mAlkqB3QDjSY8JeF26CkPIMbsaQOyDCDYmP1dtOspSgv97tUkzVLKsZBHl6Q/vb98Ur505nX2VE7kB/XYS8sz4AR8FnRG1kPeQBMbWNi06+QrrQpL4tjNiZCeFrjCQfTl46Q7fpcAbygrZB57oeCO5+Wmehdi7ciDCxzU7kG/i0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652793435; 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=weARNGJP1Zge4M2x6ebin1a6GakO5jKLY62TnYeaAsU=; b=PsKGHHc+68b20+y/zLUA6WCLH0Z6T0vzoBO5ECon9npMgrTIm/HwKjJeOp0r+bpLI23FWZZJBUF0xbwUXXlb0nBYyAvxWz6zLuOwacr3mAKFEqW5YjViuP9lXVuvjWtfeG9R7RAA3IdsfvP0tMNKcpfjqRsjJz2TKVxrrQOs7Iw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1652793435899119.27187121693726; Tue, 17 May 2022 06:17:15 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-659-M5hvZ91dNoO6zOXD3aXavQ-1; Tue, 17 May 2022 09:17:11 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0B8773831C53; Tue, 17 May 2022 13:16:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id E653C40D1B98; Tue, 17 May 2022 13:16:57 +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 AD04F1947072; Tue, 17 May 2022 13:16:57 +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 06F25194705F for ; Tue, 17 May 2022 13:16:56 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id DE8E142D4F0; Tue, 17 May 2022 13:16:55 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D7F542D4F2 for ; Tue, 17 May 2022 13:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652793434; 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=weARNGJP1Zge4M2x6ebin1a6GakO5jKLY62TnYeaAsU=; b=DgD/j4p87MvHbLbokykbAzm5WY6QAX1M24hUab/cijDhAYhuooBmsn0Ib6iT8b/6MR1Qfj p/T7T8r2ykI9+TRWz3a0oKJSF59Wpmd087awSqawfonXF/HLPbZQk0xzGebvNvCn9HggbM SLqEwqOFpdztapGsl5EaM1Ng3g+VBEI= X-MC-Unique: M5hvZ91dNoO6zOXD3aXavQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 09/10] bhyveProcessAutoDestroy: Use 'driver' from VM private data Date: Tue, 17 May 2022 15:16:44 +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.84 on 10.11.54.2 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: 1652793436811100007 Content-Type: text/plain; charset="utf-8" Access the 'driver' struct from the private data rather than the passed opaque pointer in preparation to remove the opaque pointer. Signed-off-by: Peter Krempa --- src/bhyve/bhyve_process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bhyve/bhyve_process.c b/src/bhyve/bhyve_process.c index ee692d2ba3..40c97cb6ca 100644 --- a/src/bhyve/bhyve_process.c +++ b/src/bhyve/bhyve_process.c @@ -57,9 +57,10 @@ VIR_LOG_INIT("bhyve.bhyve_process"); static void bhyveProcessAutoDestroy(virDomainObj *vm, virConnectPtr conn G_GNUC_UNUSED, - void *opaque) + void *opaque G_GNUC_UNUSED) { - struct _bhyveConn *driver =3D opaque; + bhyveDomainObjPrivate *priv =3D vm->privateData; + struct _bhyveConn *driver =3D priv->driver; virBhyveProcessStop(driver, vm, VIR_DOMAIN_SHUTOFF_DESTROYED); --=20 2.35.3