1. 15 6月, 2018 1 次提交
  2. 04 5月, 2018 1 次提交
  3. 06 3月, 2018 1 次提交
  4. 14 2月, 2018 2 次提交
    • E
      libqos: Use explicit QTestState for remaining libqos operations · 3d95fb97
      Eric Blake 提交于
      Drop one more client of global_qtest by teaching all remaining
      libqos stragglers to pass in an explicit QTestState.  Change the
      setting of global_qtest from being implicit in libqos' call to
      qtest_start() to instead be explicit in all clients that are
      still relying on global_qtest.
      
      Note that qmp_execute() can be greatly simplified in the process,
      and that we also get rid of interpolation of a JSON string into a
      temporary variable when qtest_qmp() can do it more reliably.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NGreg Kurz <groug@kaod.org>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      3d95fb97
    • E
      libqos: Track QTestState with QPCIBus · e5d1730d
      Eric Blake 提交于
      When initializing a QPCIBus, track which QTestState the bus is
      associated with (so that a later patch can then explicitly use
      that test state for all communication on the bus, rather than
      blindly relying on global_qtest).  Update the initialization
      functions to take another parameter, and update all callers to
      pass in state (for now, most callers get away with passing the
      current global_qtest as the current state, although this required
      fixing the order of initialization to ensure qtest_start() is
      called before qpci_init*() in rtl8139-test, and provided an
      opportunity to pass in the allocator in e1000e-test).
      
      Touch up some allocations to use g_new0() rather than g_malloc()
      while in the area, and simplify some code (all implementations
      of QOSOps provide a .init_allocator() that never fails).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      [thuth: Removed hunk from vhost-user-test.c that is not required anymore,
       fixed conflict in qtest_vboot() and adjusted qpci_init_pc() in sdhci-test]
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      e5d1730d
  5. 09 2月, 2018 1 次提交
  6. 23 1月, 2018 2 次提交
  7. 16 10月, 2017 1 次提交
  8. 18 7月, 2017 1 次提交
  9. 15 11月, 2016 3 次提交
  10. 28 10月, 2016 1 次提交
    • D
      tests: Don't assume structure of PCI IO base in ahci-test · e7c8526b
      David Gibson 提交于
      In a couple of places ahci-test makes assumptions about how the tokens
      returned from qpci_iomap() are formatted in ways it probably shouldn't.
      
      First in verify_state() it uses a non-NULL token to indicate that the AHCI
      device has been enabled (part of enabling is to iomap()).  This changes it
      to use an explicit 'enabled' flag instead.
      
      Second, it uses the fact that the token contains a PCI address, stored when
      the BAR is mapped during initialization to check that the BAR has the same
      value after a migration.  This changes it to explicitly read the BAR
      register before and after the migration and compare.
      
      Together, these changes will  make the test more robust against changes to
      the internals of the libqos PCI layer.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NGreg Kurz <groug@kaod.org>
      e7c8526b
  11. 19 7月, 2016 1 次提交
  12. 07 6月, 2016 1 次提交
  13. 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
  14. 12 1月, 2016 5 次提交
    • J
      qtest/ahci: ATAPI data tests · e8109694
      John Snow 提交于
      Simple I/O tests for DMA and PIO pathways in the AHCI HBA.
      
      I believe at this point in time all of the common, major IO pathways
      in BMDMA and AHCI are covered by qtests now.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-9-git-send-email-jsnow@redhat.com
      e8109694
    • 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: 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
      ahci-test: fix memory leak · 248de4a8
      John Snow 提交于
      Use the proper free command to detroy an AHCICommand.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-2-git-send-email-jsnow@redhat.com
      248de4a8
  15. 14 11月, 2015 3 次提交
  16. 18 9月, 2015 2 次提交
  17. 04 7月, 2015 7 次提交
  18. 19 6月, 2015 1 次提交
  19. 23 5月, 2015 5 次提交