From nobody Tue Feb 10 17:30:37 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=1638455107; cv=none; d=zohomail.com; s=zohoarc; b=FqHRYZUow8a7/RU6h3CcX90Np+9shZZyqy8ALOqRSF2ccdU36Y0w/LGs2nN9kz/xMDfpwfOXl5hbKtKU6RC+FKkJ0Wue+xE/LSYeocxfSthn6LZ99ZHj6SCp4mN8tIqINo3HELT6keN7CaAgXkH3pyGhZZsGoTGVRWvmC/OzeQo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638455107; 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=Kg3Og9TSLfBCJ4GmiowHbHKyq1qsXlw12q56/Bov1Dw=; b=EGc85Cc9MUJnlgVl8FG281uxTYnKf+FA+5I2EftQVv2pD+SqcXyTuMdRb93rEcCugf7B15KMfu2fnVljQSK8qvsKK4GO+wQEWnLKwkqQ2mpBAeQY3BgWRgWpRpkFdDeFdBqLyfg9ox46a1O8MdWzkYYYoRvRYpa1dk9cM71VqaM= 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 1638455107948127.97222343160149; Thu, 2 Dec 2021 06:25:07 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-166-9ZmUty1aPkmipMt3T3HbfA-1; Thu, 02 Dec 2021 09:25:03 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B1D94801A85; Thu, 2 Dec 2021 14:24:44 +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 8DFE25F4E1; Thu, 2 Dec 2021 14:24:44 +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 445714A7C9; Thu, 2 Dec 2021 14:24:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2EOgHr027069 for ; Thu, 2 Dec 2021 09:24:42 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2CDDD196F9; Thu, 2 Dec 2021 14:24:42 +0000 (UTC) Received: from localhost (unknown [10.2.14.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id D6711196F8; Thu, 2 Dec 2021 14:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638455106; 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=Kg3Og9TSLfBCJ4GmiowHbHKyq1qsXlw12q56/Bov1Dw=; b=BeTjYvYc23qSTt8m9oEjB2Qe96rOZF0GySQm8q5I7f06FnZQx0rNKXpZl+wVxpRLvC1mFP 9suftFFtt1ngfWLmithDJScT7WXMDUCrFRczD+RvLPaL+s/Jsv8aKxroU55UflFK38Tjgo t1s093AVxy/J8agyRmsGthmsNJVc1jA= X-MC-Unique: 9ZmUty1aPkmipMt3T3HbfA-1 From: marcandre.lureau@redhat.com To: libvir-list@redhat.com Subject: [libvirt PATCH v2 04/15] qemu: start the D-Bus daemon for the display Date: Thu, 2 Dec 2021 18:24:00 +0400 Message-Id: <20211202142411.1718032-5-marcandre.lureau@redhat.com> In-Reply-To: <20211202142411.1718032-1-marcandre.lureau@redhat.com> References: <20211202142411.1718032-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: mprivozn@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= 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.15 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1638455108309100003 From: Marc-Andr=C3=A9 Lureau Start the daemon if necessary (it is already stopped in qemuProcessStop) Signed-off-by: Marc-Andr=C3=A9 Lureau --- src/qemu/qemu_extdevice.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c index 537b13039488..8ada8324bed1 100644 --- a/src/qemu/qemu_extdevice.c +++ b/src/qemu/qemu_extdevice.c @@ -201,6 +201,19 @@ qemuExtDevicesStart(virQEMUDriver *driver, } } =20 + for (i =3D 0; i < def->ngraphics; i++) { + virDomainGraphicsDef *graphics =3D def->graphics[i]; + + if (graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_DBUS) + continue; + + if (graphics->data.dbus.p2p || graphics->data.dbus.fromConfig) + continue; + + if (qemuDBusStart(driver, vm) < 0) + return -1; + } + return 0; } =20 --=20 2.34.1.8.g35151cf07204