1. 04 7月, 2015 4 次提交
    • J
      qtest/ahci: add port_reset test · d31a3ebc
      John Snow 提交于
      Test that we can survive a couple of cycles of running a basic identify
      test, some IO, and resetting the HBA. Ensures that we can bring the HBA
      back to compliant spec during the lifecycle of the VM.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1434470575-21625-5-git-send-email-jsnow@redhat.com
      d31a3ebc
    • J
      libqos/ahci: fix memory management bugs · 95ea6636
      John Snow 提交于
      There's a handful of trivial bugs in the libqos/ahci functions,
      squish them together.
      
      - Zero cached pointers after freeing them
      - The Command List Buffer is an array of 32x 32 byte structures, not
        32x 8 byte pointers -- it's 1MiB, not 256 bytes. Zero it ALL.
      - Free the correct command in ahci_pick_cmd.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1434470575-21625-4-git-send-email-jsnow@redhat.com
      95ea6636
    • J
      qtest/ahci: add test_max · 0d3e9d1f
      John Snow 提交于
      Test that the FIS delivered after a nondata command has appropriately
      updated registers, just as we'd expect a data command to do.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1434470575-21625-3-git-send-email-jsnow@redhat.com
      0d3e9d1f
    • J
      ahci: Do not ignore memory access read size · e9ebb2f7
      John Snow 提交于
      The only guidance the AHCI specification gives on memory access is:
      "Register accesses shall have a maximum size of 64-bits; 64-bit access
      must not cross an 8-byte alignment boundary."
      
      I interpret this to mean that aligned or unaligned 1, 2 and 4 byte
      accesses should work, as well as aligned 8 byte accesses.
      
      In practice, a real Q35/ICH9 responds to 1, 2, 4 and 8 byte reads
      regardless of alignment. Windows 7 can be observed making 1 byte
      reads to the middle of 32 bit registers to fetch error codes.
      
      Introduce a wrapper to support unaligned accesses to AHCI.
      This wrapper will support aligned 8 byte reads, but will make
      no effort to support unaligned 8 byte reads, which although they
      will work on real hardware, are not guaranteed to work and do
      not appear to be used by either Windows or Linux.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1434470575-21625-2-git-send-email-jsnow@redhat.com
      e9ebb2f7
  2. 03 7月, 2015 3 次提交
  3. 02 7月, 2015 25 次提交
  4. 30 6月, 2015 6 次提交
  5. 29 6月, 2015 2 次提交