qemu/hw/ide
Alexander Graf 1fddfba129 ahci: Fix non-NCQ accesses for LBA > 16bits
AHCI provides two ways of reading/writing data:

 1) NCQ
 2) ATA commands with the LBA in the command FIS

In the second code path, we didn't handle any LBAs that were bigger than
16 bits, so whenever a guest that used high LBA numbers wanted to access
data, the LBA got truncated down to 16 bits, giving the guest garbage.

This patch adds support for LBAs higher than 16 bits. I've tested that it
works just fine with SeaBIOS and Linux guests. This patch also unbreaks
the often reported grub errors people have seen with AHCI.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-05-19 12:08:28 +02:00
..
ahci.c ahci: Fix non-NCQ accesses for LBA > 16bits 2011-05-19 12:08:28 +02:00
ahci.h ich/ahci: convert to pci_register_bar_simple() 2011-04-07 13:56:46 +03:00
atapi.c ide/atapi: fix set but unused 2011-05-03 11:29:21 +02:00
cmd646.c ide: Fix build for cmd646.c 2010-12-17 19:57:21 +01:00
core.c blockdev: Store -drive option media in DriveInfo 2011-05-19 10:26:21 +02:00
ich.c ahci: Unbreak bar registration 2011-05-16 10:15:47 -05:00
internal.h ide: Split qdev "ide-drive" into "ide-hd" and "ide-cd" 2011-05-19 10:26:04 +02:00
isa.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
macio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
microdrive.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
mmio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
pci.c ide: Turn debug messages into assertions 2011-05-18 14:38:45 +02:00
pci.h ide: Split out BMDMA code from ATA core 2010-12-17 16:11:01 +01:00
piix.c isa-bus: Remove bogus IRQ sharing check 2011-02-21 15:46:53 +01:00
qdev.c blockdev: Store -drive option media in DriveInfo 2011-05-19 10:26:21 +02:00
via.c isa-bus: Remove bogus IRQ sharing check 2011-02-21 15:46:53 +01:00