1. 15 6月, 2013 1 次提交
    • M
      ide-test: fix failure for test_flush · 22bfa16e
      Michael Roth 提交于
      bd07684a added a test to ensure BSY
      flag is set when a flush request is in flight. It does this by setting
      a blkdebug breakpoint on flush_to_os before issuing a CMD_FLUSH_CACHE.
      It then resumes CMD_FLUSH_CACHE operation and checks that BSY is unset.
      
      The actual unsetting of BSY does not occur until ide_flush_cb gets
      called in a bh, however, so in some cases this check will race with
      the actual completion.
      
      Fix this by polling the ide status register until BSY flag gets unset
      before we do our final sanity checks. According to
      f68ec837 this is in line with how a guest
      would determine whether or not the device is still busy.
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      22bfa16e
  2. 06 6月, 2013 3 次提交
  3. 04 6月, 2013 5 次提交
  4. 30 5月, 2013 1 次提交
    • M
      qapi: pad GenericList value fields to 64 bits · a678e26c
      Michael Roth 提交于
      With the introduction of native list types, we now have types such as
      int64List where the 'value' field is not a pointer, but the actual
      64-bit value.
      
      On 32-bit architectures, this can lead to situations where 'next' field
      offset in GenericList does not correspond to the 'next' field in the
      types that we cast to GenericList when using the visit_next_list()
      interface, causing issues when we attempt to traverse linked list
      structures of these types.
      
      To fix this, pad the 'value' field of GenericList and other
      schema-defined/native *List types out to 64-bits.
      
      This is less memory-efficient for 32-bit architectures, but allows us to
      continue to rely on list-handling interfaces that target GenericList to
      simply visitor implementations.
      
      In the future we can improve efficiency by defaulting to using native C
      array backends to handle list of non-pointer types, which would be more
      memory efficient in itself and allow us to roll back this change.
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      a678e26c
  5. 29 5月, 2013 1 次提交
  6. 24 5月, 2013 2 次提交
  7. 23 5月, 2013 5 次提交
  8. 19 5月, 2013 1 次提交
  9. 18 5月, 2013 2 次提交
  10. 15 5月, 2013 2 次提交
  11. 09 5月, 2013 1 次提交
  12. 08 5月, 2013 7 次提交
  13. 04 5月, 2013 1 次提交
  14. 03 5月, 2013 3 次提交
  15. 01 5月, 2013 1 次提交
  16. 29 4月, 2013 1 次提交
  17. 26 4月, 2013 1 次提交
  18. 22 4月, 2013 2 次提交