Skip to content

Commit

Permalink
hw/misc/sga: Remove the deprecated "sga" device
Browse files Browse the repository at this point in the history
It's been deprecated since QEMU v6.2, so it should be OK to
finally remove this now.

Message-Id: <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
  • Loading branch information
huth committed Feb 14, 2023
1 parent 77034bb commit b482fb4
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 107 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
[submodule "roms/qemu-palcode"]
path = roms/qemu-palcode
url = https://gitlab.com/qemu-project/qemu-palcode.git
[submodule "roms/sgabios"]
path = roms/sgabios
url = https://gitlab.com/qemu-project/sgabios.git
[submodule "dtc"]
path = dtc
url = https://gitlab.com/qemu-project/dtc.git
Expand Down
1 change: 0 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,6 @@ F: hw/acpi/piix4.c
F: hw/acpi/ich9*.c
F: include/hw/acpi/ich9*.h
F: include/hw/southbridge/piix.h
F: hw/misc/sga.c
F: hw/isa/apm.c
F: include/hw/isa/apm.h
F: tests/unit/test-x86-cpuid.c
Expand Down
9 changes: 0 additions & 9 deletions docs/about/deprecated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,6 @@ full SCSI support. Use virtio-scsi instead when SCSI passthrough is required.
Note this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an
alias.

``-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=off``.

``-device nvme-ns,eui64-default=on|off`` (since 7.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
10 changes: 10 additions & 0 deletions docs/about/removed-features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,16 @@ The 'ide-drive' device has been removed. Users should use 'ide-hd' or
The 'scsi-disk' device has been removed. Users should use 'scsi-hd' or
'scsi-cd' as appropriate to get a SCSI hard disk or CD-ROM as needed.

``sga`` (removed in 8.0)
''''''''''''''''''''''''

The ``sga`` device loaded an option ROM for x86 targets which enabled
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 was obsolete. The native SeaBIOS support can be activated
by using ``-machine graphics=off``.


Related binaries
----------------

Expand Down
1 change: 0 additions & 1 deletion hw/i386/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ config PC
imply QXL
imply SEV
imply SGX
imply SGA
imply TEST_DEVICES
imply TPM_CRB
imply TPM_TIS_ISA
Expand Down
4 changes: 0 additions & 4 deletions hw/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ config ISA_DEBUG
bool
depends on ISA_BUS

config SGA
bool
depends on ISA_BUS

config ISA_TESTDEV
bool
default y if TEST_DEVICES
Expand Down
1 change: 0 additions & 1 deletion hw/misc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ softmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
softmmu_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
softmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
softmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
softmmu_ss.add(when: 'CONFIG_SGA', if_true: files('sga.c'))
softmmu_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
softmmu_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
softmmu_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
Expand Down
71 changes: 0 additions & 71 deletions hw/misc/sga.c

This file was deleted.

6 changes: 0 additions & 6 deletions pc-bios/README
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
-machine pseries,x-vof=on. When enabled, the firmware acts as a slim shim and
QEMU implements parts of the IEEE 1275 Open Firmware interface.

- sgabios (the Serial Graphics Adapter option ROM) provides a means for
legacy x86 software to communicate with an attached serial console as
if a video card were attached. The master sources reside in a subversion
repository at http://sgabios.googlecode.com/svn/trunk. A git mirror is
available at https://gitlab.com/qemu-project/sgabios.git.

- The PXE roms come from the iPXE project. Built with BANNER_TIME 0.
Sources available at http://ipxe.org. Vendor:Device ID -> ROM mapping:

Expand Down
1 change: 0 additions & 1 deletion pc-bios/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ blobs = [
'bios-256k.bin',
'bios-microvm.bin',
'qboot.rom',
'sgabios.bin',
'vgabios.bin',
'vgabios-cirrus.bin',
'vgabios-stdvga.bin',
Expand Down
Binary file removed pc-bios/sgabios.bin
Binary file not shown.
9 changes: 1 addition & 8 deletions roms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ default help:
@echo "available build targets:"
@echo " bios -- update bios.bin (seabios)"
@echo " vgabios -- update vgabios binaries (seabios)"
@echo " sgabios -- update sgabios binaries"
@echo " pxerom -- update nic roms (bios only)"
@echo " efirom -- update nic roms (bios+efi)"
@echo " slof -- update slof.bin"
Expand Down Expand Up @@ -102,11 +101,7 @@ build-seabios-config-%: config.%
OUT=$(CURDIR)/seabios/builds/$*/ all


.PHONY: sgabios skiboot qboot
sgabios:
$(MAKE) -C sgabios
cp sgabios/sgabios.bin ../pc-bios

.PHONY: skiboot qboot

pxerom: $(patsubst %,pxe-rom-%,$(pxerom_variants))

Expand Down Expand Up @@ -199,8 +194,6 @@ npcm7xx_bootrom:

clean:
rm -rf seabios/.config seabios/out seabios/builds
$(MAKE) -C sgabios clean
rm -f sgabios/.depend
$(MAKE) -C ipxe/src veryclean
$(MAKE) -C edk2/BaseTools clean
$(MAKE) -C SLOF clean
Expand Down
1 change: 0 additions & 1 deletion roms/sgabios
Submodule sgabios deleted from cbaee5
2 changes: 1 addition & 1 deletion tests/migration/guestperf/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def _get_common_args(self, hardware, tunnelled=False):
argv.extend(self._get_qemu_serial_args())

if self._debug:
argv.extend(["-device", "sga"])
argv.extend(["-machine", "graphics=off"])

if hardware._prealloc_pages:
argv_source += ["-mem-path", "/dev/shm",
Expand Down

0 comments on commit b482fb4

Please sign in to comment.