qemu-e2k/hw/ide
Kevin Wolf d20051856c ide: Check validity of logical block size
Our IDE emulation can't handle logical block sizes other than 512. Check
for it.

The original assumption was that other values would silently be ignored
(which is bad enough), but it's not quite true: The physical block size
is exposed in IDENTIFY DEVICE as a multiple of the logical block size.
Setting a logical block size therefore also corrupts the physical block
size (4096/4096 doesn't silently downgrade to 4096/512, but 512/512).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
2014-12-10 10:31:16 +01:00
..
ahci.c ahci: replace SATA FIS type magic numbers with constants 2014-12-10 10:31:12 +01:00
ahci.h ahci: replace SATA FIS type magic numbers with constants 2014-12-10 10:31:12 +01:00
atapi.c
cmd646.c
core.c hw/ide/core.c: Prevent SIGSEGV during migration 2014-11-18 17:36:14 +00:00
ich.c
internal.h ide: Correct handling of malformed/short PRDTs 2014-11-14 09:20:35 +00:00
isa.c
macio.c ide: Correct handling of malformed/short PRDTs 2014-11-14 09:20:35 +00:00
Makefile.objs
microdrive.c
mmio.c
pci.c ide: Correct handling of malformed/short PRDTs 2014-11-14 09:20:35 +00:00
pci.h
piix.c fix off-by-one error in pci_piix3_xen_ide_unplug 2014-10-30 14:16:39 +00:00
qdev.c ide: Check validity of logical block size 2014-12-10 10:31:16 +01:00
via.c