1. 07 6月, 2016 1 次提交
  2. 19 5月, 2016 1 次提交
  3. 23 3月, 2016 1 次提交
  4. 22 3月, 2016 1 次提交
    • M
      tests/libqos/pci-pc: Fix qpci_pc_iomap() to map BARs aligned · 99826172
      Markus Armbruster 提交于
      qpci_pc_iomap() maps BARs one after the other, without padding.  This
      is wrong.  PCI Local Bus Specification Revision 3.0, 6.2.5.1. Address
      Maps: "all address spaces used are a power of two in size and are
      naturally aligned".  That's because the size of a BAR is given by the
      number of address bits the device decodes, and the BAR needs to be
      mapped at a multiple of that size to ensure the address decoding
      works.
      
      Fix qpci_pc_iomap() accordingly.  This takes care of a FIXME in
      ivshmem-test.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <1458066895-20632-7-git-send-email-armbru@redhat.com>
      99826172
  5. 23 2月, 2016 1 次提交
  6. 16 2月, 2016 1 次提交
  7. 02 2月, 2016 1 次提交
  8. 29 1月, 2016 1 次提交
    • P
      ide: Clean up includes · 53239262
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1453832250-766-17-git-send-email-peter.maydell@linaro.org
      53239262
  9. 12 1月, 2016 7 次提交
    • J
      libqos/ahci: organize header · c5620e65
      John Snow 提交于
      Organize the prototypes into nice little sections.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-10-git-send-email-jsnow@redhat.com
      c5620e65
    • J
      libqos/ahci: add ahci_exec · 9350df7c
      John Snow 提交于
      add ahci_exec, which is a standard purpose flexible command dispatcher
      and tester for the AHCI device. The intent is to eventually cut down on
      the absurd amount of boilerplate inside of the AHCI qtest.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-8-git-send-email-jsnow@redhat.com
      9350df7c
    • J
      libqos/ahci: allow nondata commands for ahci_io variants · b682d3a7
      John Snow 提交于
      These variants try to set a data offset, even if you don't specify one.
      In the cases where the offset is zero and it's a nondata command, just
      ignore the instruction.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-7-git-send-email-jsnow@redhat.com
      b682d3a7
    • J
      libqos: allow zero-size allocations · b1b66c3b
      John Snow 提交于
      As part of streamlining the AHCI tests interface, it'd be nice
      if specying a size of zero could be handled without special branches
      and the allocator could handle this special case gracefully.
      
      This lets me use the "ahci_io" macros for non-data commands, too,
      which moves me forward towards shepherding all AHCI qtests into
      a common set of commands in a unified pipeline.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-6-git-send-email-jsnow@redhat.com
      b1b66c3b
    • J
      libqos/ahci: Switch to mutable properties · b88641e2
      John Snow 提交于
      ATAPI commands are, unfortunately, weird in that they can
      be either DMA or PIO depending on a header bit. In order to
      accommodate them, I'll need to make AHCI command properties
      mutable so we can toggle between which "flavor" of ATAPI command
      we want to test.
      
      The default ATAPI transfer mechanism is PIO and the default
      properties are adjusted accordingly.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-5-git-send-email-jsnow@redhat.com
      b88641e2
    • J
      libqos/ahci: ATAPI identify · d0b282a5
      John Snow 提交于
      We need to say "hello!" to our ATAPI friends
      in a slightly different manner.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-4-git-send-email-jsnow@redhat.com
      d0b282a5
    • J
      libqos/ahci: ATAPI support · 54d268b2
      John Snow 提交于
      Add pathways to tolerate ATAPI commands.
      
      Notably, unlike ATA, each SCSI command's layout is a little different,
      so support will have to be patched in for each command as we want to
      test them in e.g. ahci_command_set_sizes and ahci_command_set_offset.
      
      For now, I'm adding support for 0x28, READ (10).
      
      [Maintainer edit: replaced type-punning with stl_be_p(). --js]
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-3-git-send-email-jsnow@redhat.com
      54d268b2
  10. 14 11月, 2015 1 次提交
  11. 06 10月, 2015 1 次提交
  12. 18 9月, 2015 1 次提交
  13. 07 9月, 2015 1 次提交
  14. 08 7月, 2015 1 次提交
  15. 04 7月, 2015 8 次提交
  16. 17 6月, 2015 2 次提交
  17. 23 5月, 2015 5 次提交
    • J
      libqos/ahci: Swap memread/write with bufread/write · 91d0374a
      John Snow 提交于
      Where it makes sense, use the new faster primitives.
      For generally small reads/writes such as for the PRDT
      and FIS packets, stick with the more wasteful but
      easier to debug memread/memwrite.
      
      For ahci-test (before migration tests):
      With this patch:
      real    0m3.675s
      user    0m2.582s
      sys     0m1.718s
      
      Without any qtest protocol improvements:
      real    0m14.171s
      user    0m12.072s
      sys     0m12.527s
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-6-git-send-email-jsnow@redhat.com
      91d0374a
    • J
      qtest/ahci: add migrate dma test · 88e21f94
      John Snow 提交于
      Write to one guest, migrate, and then read from the other.
      adjust ahci_io to clear any buffers it creates, so that we
      can use ahci_io safely on both guests knowing we are using
      empty buffers and not accidentally re-using data.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 1430417242-11859-7-git-send-email-jsnow@redhat.com
      88e21f94
    • J
      libqos: Add migration helpers · 085248ae
      John Snow 提交于
      libqos.c:
          -set_context for addressing which commands go where
          -migrate performs the actual migration
      
      malloc.c:
          - Structure of the allocator is adjusted slightly with
            a second-tier malloc to make swapping around the allocators
            easy when we "migrate" the lists from the source to the destination.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 1430417242-11859-4-git-send-email-jsnow@redhat.com
      085248ae
    • J
      libqos/ahci: Fix sector set method · 455e861c
      John Snow 提交于
      || probably does not mean the same thing as |.
      
      Additionally, allow users to submit a prd_size of 0
      to indicate that they'd like to continue using the default.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 1430417242-11859-3-git-send-email-jsnow@redhat.com
      455e861c
    • J
      libqos/ahci: Add halted command helpers · 008b6e12
      John Snow 提交于
      Sometimes we want a command to halt the VM instead
      of complete successfully, so it'd be nice to let the
      libqos/ahci functions cope with such scenarios.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 1430417242-11859-2-git-send-email-jsnow@redhat.com
      008b6e12
  18. 30 4月, 2015 1 次提交
  19. 29 4月, 2015 4 次提交