From nobody Mon Feb 9 12:24:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1592825389; cv=none; d=zohomail.com; s=zohoarc; b=MQJLn3QZpSu0LUYcbWaT4sVjkOKesAZ0jh3aJIT0gbIBuVax+JL3qYDwqzLoaKscIy26DHGQBTW6l3FTxQbecHy76ITGVwOLpTF2Bhu1EaNucIJcWmUz9HASL4+U3wBhrKxxpvept4qvg01PGWBT1qD9RUjKFAFn51hRAf1F68I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592825389; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=yL3OSn9AFp67GuusEB0cjy9wuxWUIYUekJFueTqvHJI=; b=nhk9r5tFQZ9LBgBkhHYAaS5BV3X0lRODxN7CqZtn9YbKkm7y1UsmDI3P8E9CjPEtX9QIXN/LBS2PCTAT8pAbVZD2FIvnRx9/gh5sTl9mWYp5o5ExHJ2diedQPaAsKO0edvrtOSuN3tZCJAaQGRnlok0tRqIoD8iPzeDcIP0HQ+U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1592825389328597.8640789021156; Mon, 22 Jun 2020 04:29:49 -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-47-BMTInnuRNMmJFjNxaLfCSQ-1; Mon, 22 Jun 2020 07:29:46 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EDFDE100CCC8; Mon, 22 Jun 2020 11:29:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D00A77166B; Mon, 22 Jun 2020 11:29:38 +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 9D07C1806B0D; Mon, 22 Jun 2020 11:29:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05MBTTdM019556 for ; Mon, 22 Jun 2020 07:29:29 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1EE175C220; Mon, 22 Jun 2020 11:29:29 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-67.ams2.redhat.com [10.36.112.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id AAC1F5C1BD; Mon, 22 Jun 2020 11:29:28 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id ADA009D7F; Mon, 22 Jun 2020 13:29:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592825388; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yL3OSn9AFp67GuusEB0cjy9wuxWUIYUekJFueTqvHJI=; b=Y3uptRoxfcB8qEJn7QmEdkcL4CbV4NrfTXJyrBSRJ5vI/yTQxgQJ4bpx0qySXQxLC4TiFA PRRiJKC4B3z150UBB9WQxonmJK6lYW9bsLRTx84g2izNNjEGSL3yJoAn5aGd0zjk8R+562 6DqKqjpWWlY7f9EiJZQGF8b+c4ZtM48= X-MC-Unique: BMTInnuRNMmJFjNxaLfCSQ-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH v3 16/19] softmmu: initialize spice and audio earlier Date: Mon, 22 Jun 2020 13:29:11 +0200 Message-Id: <20200622112914.30454-17-kraxel@redhat.com> In-Reply-To: <20200622112914.30454-1-kraxel@redhat.com> References: <20200622112914.30454-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Eduardo Habkost , "Michael S. Tsirkin" , libvir-list@redhat.com, =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Gerd Hoffmann , Marcel Apfelbaum , Paolo Bonzini , qemu-ppc@nongnu.org, Richard Henderson 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.11 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 X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" audiodev must be initialized before machine_set_property so the machine can have auiodev property aliases. spice must initialize before audiodev because the default audiodev is spice only in case spice is actually enabled. Signed-off-by: Gerd Hoffmann --- softmmu/vl.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index f669c06ede4a..b8dc1f5a0e86 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -4131,12 +4131,17 @@ void qemu_init(int argc, char **argv, char **envp) fsdev_init_func, NULL, &error_fatal); #endif =20 + /* spice needs the timers to be initialized by this point */ + /* spice must initialize before audio as it changes the default auiode= v */ + qemu_spice_init(); + /* - * Note: we need to create block backends before + * Note: we need to create audio and block backends before * machine_set_property(), so machine properties can refer to * them. */ configure_blockdev(&bdo_queue, machine_class, snapshot); + audio_init_audiodevs(); =20 machine_opts =3D qemu_get_machine_opts(); qemu_opt_foreach(machine_opts, machine_set_property, current_machine, @@ -4230,9 +4235,6 @@ void qemu_init(int argc, char **argv, char **envp) semihosting_arg_fallback(kernel_filename, kernel_cmdline); } =20 - /* spice needs the timers to be initialized by this point */ - qemu_spice_init(); - cpu_ticks_init(); =20 if (default_net) { --=20 2.18.4