From nobody Mon Feb 9 11:46:58 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=1635870419; cv=none; d=zohomail.com; s=zohoarc; b=kXq9nQV34rRHTDkkEOWbUQfG/m9V431yF+oSFRl2Kz02Z44C4aTeiRt3nHyPs09JPpgl8osETpY8tJJzVZ24MWzeOSq9SbSAWVA1GR0MtqpFx1uzNQFR/UO0x12M8ug0izKjX+huelpaizVarFdb+f2AQJe/AghhArpULLLDsx4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635870419; 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=PO+K1n8lNHJsRPOY2iY3bSK66+tYW/HTXAOPTrvGSKg=; b=nQ28GX+at/qyYeMaNMPU6LKq1rccGY/qQ909cPUlKHarmX0Z0UJr4r/AfwdwdmdrZJyoOJoQrDHGrGiUhp61dmtryZG9D/Y58ZSTXBPb8YiPYek5PnfWufmVSI8DD9xFFTK/QITB/h1fa352FBBpsX6ml+1xf6ARPNyQDG+kHj0= 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 1635870419550191.97229322289945; Tue, 2 Nov 2021 09:26:59 -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-310-40scC2GMPA2XT8Qp_gfW-g-1; Tue, 02 Nov 2021 12:26:56 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9207D1006AAB; Tue, 2 Nov 2021 16:26:46 +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 7312E1017CE8; Tue, 2 Nov 2021 16:26:46 +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 3F371181A1CF; Tue, 2 Nov 2021 16:26:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1A2GQbJO005455 for ; Tue, 2 Nov 2021 12:26:37 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3D5F918432; Tue, 2 Nov 2021 16:26:37 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 804B95F4EB; Tue, 2 Nov 2021 16:26:36 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 0B8AC1801B3A; Tue, 2 Nov 2021 17:26:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635870418; 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=PO+K1n8lNHJsRPOY2iY3bSK66+tYW/HTXAOPTrvGSKg=; b=YGgUULVz1ywDSRSu/u7KQvDQgWKfM8tbCuAWeLh2/YxftVwIwPiVviVkXvHvxNi1r+pWsu lyNDBI2uC8AiMq6w0oatiPpZTyeN1YL1xqx894iHXyawS5Y/IubSVxG7JJZNT72piE0LYG sLI9+AQ1Z0AZdL7BpLYO8e8TNv3A3qs= X-MC-Unique: 40scC2GMPA2XT8Qp_gfW-g-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PULL 09/10] hw/misc: deprecate the 'sga' device Date: Tue, 2 Nov 2021 17:26:18 +0100 Message-Id: <20211102162619.2760593-10-kraxel@redhat.com> In-Reply-To: <20211102162619.2760593-1-kraxel@redhat.com> References: <20211102162619.2760593-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Thomas Huth , Eduardo Habkost , Sergio Lopez , "Michael S. Tsirkin" , libvir-list@redhat.com, Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Willian Rampazzo , Gerd Hoffmann , Marcel Apfelbaum , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= 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.84 on 10.5.11.22 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: 1635870421457100003 From: Daniel P. Berrang=C3=A9 This is obsolete since SeaBIOS 1.11.0 introduced native support for sending messages to the serial console. The new support can be activated using -machine graphics=3Doff on x86 targets. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Gerd Hoffmann Message-Id: <20210909123219.862652-1-berrange@redhat.com> Signed-off-by: Gerd Hoffmann --- hw/misc/sga.c | 2 ++ docs/about/deprecated.rst | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/hw/misc/sga.c b/hw/misc/sga.c index 4dbe6d78f9e5..1d04672b013b 100644 --- a/hw/misc/sga.c +++ b/hw/misc/sga.c @@ -30,6 +30,7 @@ #include "hw/loader.h" #include "qemu/module.h" #include "qom/object.h" +#include "qemu/error-report.h" =20 #define SGABIOS_FILENAME "sgabios.bin" =20 @@ -42,6 +43,7 @@ struct ISASGAState { =20 static void sga_realizefn(DeviceState *dev, Error **errp) { + warn_report("-device sga is deprecated, use -machine graphics=3Doff"); rom_add_vga(SGABIOS_FILENAME); } =20 diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index be19317470a1..25b7ec8d92d9 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -313,6 +313,16 @@ full SCSI support. Use virtio-scsi instead when SCSI = passthrough is required. Note this also applies to ``-device virtio-blk-pci,scsi=3Don|off``, which = is an alias. =20 +``-device sga`` (since 6.2) +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The ``sga`` device loads an option ROM for x86 targets which enables +SeaBIOS to send messages to the serial console. SeaBIOS 1.11.0 onwards +contains native support for this feature and thus use of the option +ROM approach is obsolete. The native SeaBIOS support can be activated +by using ``-machine graphics=3Doff``. + + Block device options '''''''''''''''''''' =20 --=20 2.31.1