• A
    ahci: Fix non-NCQ accesses for LBA > 16bits · 1fddfba1
    Alexander Graf 提交于
    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: NAlexander Graf <agraf@suse.de>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    1fddfba1
ahci.c 32.6 KB