mirror of
https://github.com/xemu-project/xemu.git
synced 2024-06-02 20:18:25 -04:00
422865f667
The logic of trying an final ISO or ECKD boot on virtio-block devices is very weird: Since the geometry hardly ever matches in virtio_disk_is_scsi(), virtio_blk_setup_device() always sets a "guessed" disk geometry via virtio_assume_scsi() (which is certainly also wrong in a lot of cases). zipl_load_vblk() then sees that there's been a "virtio_guessed_disk_nature" and tries to fix up the geometry again via virtio_assume_iso9660() before always trying to do ipl_iso_el_torito(). That's a very brain-twisting way of attempting to boot from ISO images, which won't work anymore after the following patches that will clean up the virtio_assume_scsi() mess (and thus get rid of the "virtio_guessed_disk_nature" here). Let's try a better approach instead: ISO files always have a magic string "CD001" at offset 0x8001 (see e.g. the ECMA-119 specification) which we can use to decide whether we should try to boot in ISO 9660 mode (which we should also try if we see a sector size of 2048). And if we were not able to boot in ISO mode here, the final boot attempt before panicking is to boot in ECKD mode. Since this is our last boot attempt anyway, simply always assume the ECKD geometry here (if the sector size was not 4096 yet), so that we also do not depend on the guessed disk geometry from virtio_blk_setup_device() here anymore. Message-Id: <20220704111903.62400-4-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> |
||
---|---|---|
.. | ||
descriptors | ||
keymaps | ||
optionrom | ||
s390-ccw | ||
vof | ||
bamboo.dtb | ||
bamboo.dts | ||
bios-256k.bin | ||
bios-microvm.bin | ||
bios.bin | ||
canyonlands.dtb | ||
canyonlands.dts | ||
edk2-aarch64-code.fd.bz2 | ||
edk2-arm-code.fd.bz2 | ||
edk2-arm-vars.fd.bz2 | ||
edk2-i386-code.fd.bz2 | ||
edk2-i386-secure-code.fd.bz2 | ||
edk2-i386-vars.fd.bz2 | ||
edk2-licenses.txt | ||
edk2-x86_64-code.fd.bz2 | ||
edk2-x86_64-microvm.fd.bz2 | ||
edk2-x86_64-secure-code.fd.bz2 | ||
efi-e1000.rom | ||
efi-e1000e.rom | ||
efi-eepro100.rom | ||
efi-ne2k_pci.rom | ||
efi-pcnet.rom | ||
efi-rtl8139.rom | ||
efi-virtio.rom | ||
efi-vmxnet3.rom | ||
hppa-firmware.img | ||
kvmvapic.bin | ||
linuxboot.bin | ||
linuxboot_dma.bin | ||
Makefile | ||
meson.build | ||
multiboot.bin | ||
multiboot_dma.bin | ||
npcm7xx_bootrom.bin | ||
openbios-ppc | ||
openbios-sparc32 | ||
openbios-sparc64 | ||
opensbi-riscv32-generic-fw_dynamic.bin | ||
opensbi-riscv64-generic-fw_dynamic.bin | ||
palcode-clipper | ||
petalogix-ml605.dtb | ||
petalogix-ml605.dts | ||
petalogix-s3adsp1800.dtb | ||
petalogix-s3adsp1800.dts | ||
pvh.bin | ||
pxe-e1000.rom | ||
pxe-eepro100.rom | ||
pxe-ne2k_pci.rom | ||
pxe-pcnet.rom | ||
pxe-rtl8139.rom | ||
pxe-virtio.rom | ||
qboot.rom | ||
QEMU,cgthree.bin | ||
QEMU,tcx.bin | ||
qemu-nsis.bmp | ||
qemu-nsis.ico | ||
qemu.rsrc | ||
qemu_logo.svg | ||
qemu_vga.ndrv | ||
README | ||
s390-ccw.img | ||
s390-netboot.img | ||
sgabios.bin | ||
skiboot.lid | ||
slof.bin | ||
u-boot-sam460-20100605.bin | ||
u-boot.e500 | ||
vgabios-ati.bin | ||
vgabios-bochs-display.bin | ||
vgabios-cirrus.bin | ||
vgabios-qxl.bin | ||
vgabios-ramfb.bin | ||
vgabios-stdvga.bin | ||
vgabios-virtio.bin | ||
vgabios-vmware.bin | ||
vgabios.bin | ||
vof-nvram.bin | ||
vof.bin |
- SeaBIOS (bios.bin) is the successor of pc bios. See http://www.seabios.org/ for more information. - The VGA BIOS and the Cirrus VGA BIOS come from the LGPL VGA bios project (http://www.nongnu.org/vgabios/). - OpenBIOS (http://www.openbios.org/) is a free (GPL v2) portable firmware implementation. The goal is to implement a 100% IEEE 1275-1994 (referred to as Open Firmware) compliant firmware. The included images for PowerPC (for 32 and 64 bit PPC CPUs), Sparc32 (including QEMU,tcx.bin and QEMU,cgthree.bin) and Sparc64 are built from OpenBIOS SVN revision 1280. - SLOF (Slimline Open Firmware) is a free IEEE 1275 Open Firmware implementation for certain IBM POWER hardware. The sources are at https://github.com/aik/SLOF, and the image currently in qemu is built from git tag qemu-slof-20220110. - VOF (Virtual Open Firmware) is a minimalistic firmware to work with -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: 8086:100e -> pxe-e1000.rom 8086:1209 -> pxe-eepro100.rom 1050:0940 -> pxe-ne2k_pci.rom 1022:2000 -> pxe-pcnet.rom 10ec:8139 -> pxe-rtl8139.rom 1af4:1000 -> pxe-virtio.rom - The sources for the Alpha palcode image is available from: https://github.com/rth7680/qemu-palcode.git - The u-boot binary for e500 comes from the upstream denx u-boot project where it was compiled using the qemu-ppce500 target. A git mirror is available at: https://gitlab.com/qemu-project/u-boot.git The hash used to compile the current version is: 2072e72 - Skiboot (https://github.com/open-power/skiboot/) is an OPAL (OpenPower Abstraction Layer) firmware for OpenPOWER systems. It can run an hypervisor OS or simply a host OS on the "baremetal" platform, also known as the PowerNV (Non-Virtualized) platform. - QemuMacDrivers (https://github.com/ozbenh/QemuMacDrivers) is a project to provide virtualised drivers for PPC MacOS guests. - The "edk2-*.fd.bz2" images are platform firmware binaries and matching UEFI variable store templates built from the TianoCore community's EFI Development Kit II project <https://github.com/tianocore/tianocore.github.io/wiki/EDK-II>. The images were built at git tag "edk2-stable202008". The firmware binaries bundle parts of the OpenSSL project, at git tag "OpenSSL_1_1_1g" (the OpenSSL tag is a function of the edk2 tag). Parts of the Berkeley SoftFloat library are bundled as well, at Release 3e plus a subsequent typo fix (commit b64af41c3276f97f0e181920400ee056b9c88037), as an OpenSSL dependency on 32-bit ARM. Licensing information is given in "edk2-licenses.txt". The image files are described by the JSON documents in the "pc-bios/descriptors" directory, which conform to the "docs/interop/firmware.json" schema. - OpenSBI (https://github.com/riscv/opensbi) aims to provide an open-source reference implementation of the RISC-V Supervisor Binary Interface (SBI) specifications for platform-specific firmwares executing in M-mode. For all supported platforms, OpenSBI provides several runtime firmware examples. These example firmwares can be used to replace the legacy riscv-pk bootloader and enable the use of well-known bootloaders such as U-Boot. OpenSBI is distributed under the terms of the BSD 2-clause license ("Simplified BSD License" or "FreeBSD License", SPDX: BSD-2-Clause). OpenSBI source code also contains code reused from other projects desribed here: https://github.com/riscv/opensbi/blob/master/ThirdPartyNotices.md. - npcm7xx_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for Nuvoton NPCM7xx BMC devices. It currently implements the bare minimum to load, parse, initialize and run boot images stored in SPI flash, but may grow more features over time as needed. The source code is available at: https://github.com/google/vbootrom