1. 19 5月, 2016 1 次提交
  2. 29 1月, 2016 1 次提交
    • P
      hw: Clean up includes · 0430891c
      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-38-git-send-email-peter.maydell@linaro.org
      0430891c
  3. 04 12月, 2015 1 次提交
  4. 06 11月, 2015 1 次提交
  5. 28 4月, 2015 1 次提交
    • S
      bt-sdp: fix broken uuids power-of-2 calculation · 588ef9d4
      Stefan Hajnoczi 提交于
      The binary search in sdp_uuid_match() only works when the number of
      elements to search is a power of two.
      
        lo = record->uuid;
        hi = record->uuids;
        while (hi >>= 1)
            if (lo[hi] <= val)
                lo += hi;
      
        return *lo == val;
      
      I noticed that the record->uuids calculation in
      sdp_service_record_build() was suspect:
      
        record->uuids = 1 << ffs(record->uuids - 1);
      
      Unlike most ffs(val) - 1 users, the expression is ffs(val - 1)!
      
      Actually ffs() is the wrong function to use for power-of-2.  Use
      pow2ceil() to achieve the correct effect.  Now the record->uuid[] array
      is sized correctly and the binary search in sdp_uuid_match() should
      work.
      
      I'm not sure how to run/test this code.
      
      Cc: Andrzej Zaborowski <balrog@zabor.org>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1427124571-28598-2-git-send-email-stefanha@redhat.com
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      588ef9d4
  6. 09 4月, 2013 1 次提交
  7. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  8. 20 6月, 2012 1 次提交
  9. 21 8月, 2011 1 次提交
  10. 30 10月, 2010 1 次提交
  11. 22 4月, 2010 1 次提交
  12. 17 7月, 2009 1 次提交
  13. 07 3月, 2009 1 次提交
  14. 05 1月, 2009 1 次提交
  15. 25 10月, 2008 1 次提交
  16. 29 9月, 2008 1 次提交