qemu-e2k/hw/nvram
Sam Eiderman aea60a13b9 bootdevice: FW_CFG interface for LCHS values
Using fw_cfg, supply logical CHS values directly from QEMU to the BIOS.

Non-standard logical geometries break under QEMU.

A virtual disk which contains an operating system which depends on
logical geometries (consistent values being reported from BIOS INT13
AH=08) will most likely break under QEMU/SeaBIOS if it has non-standard
logical geometries - for example 56 SPT (sectors per track).
No matter what QEMU will report - SeaBIOS, for large enough disks - will
use LBA translation, which will report 63 SPT instead.

In addition we cannot force SeaBIOS to rely on physical geometries at
all. A virtio-blk-pci virtual disk with 255 phyiscal heads cannot
report more than 16 physical heads when moved to an IDE controller,
since the ATA spec allows a maximum of 16 heads - this is an artifact of
virtualization.

By supplying the logical geometries directly we are able to support such
"exotic" disks.

We serialize this information in a similar way to the "bootorder"
interface.
The new fw_cfg entry is "bios-geometry".

Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Reviewed-by: Arbel Moshe <arbel.moshe@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Sam Eiderman <shmuel.eiderman@oracle.com>
Signed-off-by: Sam Eiderman <sameid@google.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
2019-10-31 11:47:38 -04:00
..
chrp_nvram.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
ds1225y.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
eeprom93xx.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
eeprom_at24c.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
fw_cfg.c bootdevice: FW_CFG interface for LCHS values 2019-10-31 11:47:38 -04:00
Kconfig i2c: express dependencies with Kconfig 2019-03-07 21:45:53 +01:00
mac_nvram.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Makefile.objs hw/nvram/nrf51_nvm: Add nRF51 non-volatile memories 2019-02-01 15:31:26 +00:00
nrf51_nvm.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
spapr_nvram.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
trace-events hw/nvram/fw_cfg: Add trace events 2019-05-23 14:10:31 +02:00