From nobody Sat May 18 21:15:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1608196531; cv=none; d=zohomail.com; s=zohoarc; b=Sg1+dbu8ajho5+boNXGt/wIZmXsGNy29d6yKc+KtTM1hq6Sb9g+75NVnf3ZR5qs0h0qh8dRO2g6d4p3D9QhsAp+1SRE/iFuu115H10EgVLJq99r3wJktJf0+e55t8dQlEoWOEcEKKhiIjyjsHYZTvQZaf1d8kkJNcl429ngVpKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608196531; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=LfsOLhAWMVJ2deCuay3ook5aFVWeXApOj+vJo+lp9yU=; b=ZrMcDCF0f/jtj1ShxyaP6BWg3WxqHZ3yae+qVMhVRnvP2jwK8CsPez4ienqiBSmIG3lSYxTxmNuZUQX9knliLqr87qJgi/OA5Xbd711J2iHsXAfXdz8+QJtUjmhFEPTqBQW3Yek/KZAVyB7IAQPDYkwDMugdSgxL6BEtW3FB7zs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608196531167864.5957464965533; Thu, 17 Dec 2020 01:15:31 -0800 (PST) Received: from localhost ([::1]:45568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kppNh-0007bX-J6 for importer@patchew.org; Thu, 17 Dec 2020 04:15:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kppMO-00073z-EB for qemu-devel@nongnu.org; Thu, 17 Dec 2020 04:14:08 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:36827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kppMM-0006ew-PC for qemu-devel@nongnu.org; Thu, 17 Dec 2020 04:14:08 -0500 Received: by mail-ej1-x62e.google.com with SMTP id lt17so36817127ejb.3 for ; Thu, 17 Dec 2020 01:14:06 -0800 (PST) Received: from avogadro.lan ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id e21sm22746778edv.96.2020.12.17.01.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 01:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LfsOLhAWMVJ2deCuay3ook5aFVWeXApOj+vJo+lp9yU=; b=RVeWqM+sSa/0ckyCm4aqpCfGURUDlJSm5UNmK31t6IVy6urfWYqWDqUFKvAkhg0VfD YOSj6C4jVixKY1nK+KPE3bnxA7vg/eBu112ZYCundEmn6jPhGKaepd5ZD/zX6K67IJ8R RAQAK8YQhkjVWfFwFCRpU4D2FuzK01AFx7aqjaIM6UYX6hzdUmgsBUUIgi3Y+em1Thst ugHFcigFNdHQ+JihGIWskR+wf4lX8ucu+2OGQ6t7ZT1bjEMBxiTBuJlPr+EvfCn8EAu0 tbi2cVIxaM1lodevrjQD3ywl3LAAH43Cf9IHa9k0e9S/u1TaBc77Hf0uK1xLdTJVUkLD O3zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=LfsOLhAWMVJ2deCuay3ook5aFVWeXApOj+vJo+lp9yU=; b=R9ChzKy4ABUTUIFF1Pg0nG42Hfsd1Mo8xA3iYzEgDv76Tedi3ZVBXt+PiPqA6XQj5u f42o7xdiD5Ua3NsphlL1dnh3dersE/GSb4Sxohox7w0l9SBjLab+tVHHhvmXYkxUmcPE weTkXkA43k70+dA5rv/DQgZIViow4veATc8mIDYKSmwAzilUbqi62vPto7xQP+N2pCh3 nISydw2ypJuE5ovR3ZMcfuOS5hzlImkRu9DGgcscKtkDNDwMSc0+KTWs6M4FBqDCUIrw aHI51Hpvwry+R4SiU/Msyd+SP0IGuHx9TQ/gSe1I3UOJJ4BkIAewD6rCFAtYJNGiryho YFwA== X-Gm-Message-State: AOAM533BnxR97AIr9TZVoM1EDfa7bXiMjU2i3USJ8UVdMfdmh9wsfXrW ZMXJbXvnok2xaDkdAGfo5Y6JwGCJWAs= X-Google-Smtp-Source: ABdhPJxk8XvHAtXsP1JXPHkA3kka3m4XzGODp2LcDn2So1QbFsSeyVkvDcGoQsIjbXIPo/pG+Keoqg== X-Received: by 2002:a17:906:56ca:: with SMTP id an10mr34126777ejc.498.1608196445214; Thu, 17 Dec 2020 01:14:05 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] vl: initialize displays _after_ exiting preconfiguration Date: Thu, 17 Dec 2020 10:14:03 +0100 Message-Id: <20201217091403.36195-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Howard Spoelstra Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Due to the renumbering of text consoles when graphical consoles are created, init_displaystate must be called after all QemuConsoles are created, i.e. after devices are created. vl.c calls it from qemu_init_displays, while qmp_x_exit_preconfig is where devices are created. If qemu_init_displays is called before it, the VGA graphical console does not come up. Reported-by: Howard Spoelstra Signed-off-by: Paolo Bonzini Tested-by: BALATON Zoltan --- softmmu/vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index 0ed5c5ba93..7ddf405d76 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -3529,10 +3529,10 @@ void qemu_init(int argc, char **argv, char **envp) exit(0); } =20 - qemu_init_displays(); if (!preconfig_requested) { qmp_x_exit_preconfig(&error_fatal); } + qemu_init_displays(); accel_setup_post(current_machine); os_setup_post(); resume_mux_open(); --=20 2.29.2