1. 17 1月, 2017 1 次提交
  2. 12 1月, 2017 1 次提交
  3. 11 1月, 2017 1 次提交
  4. 10 1月, 2017 2 次提交
  5. 09 1月, 2017 1 次提交
  6. 04 1月, 2017 8 次提交
  7. 22 12月, 2016 1 次提交
  8. 21 12月, 2016 2 次提交
    • L
      crypto: add 3des-ede support when using libgcrypt/nettle · ffb7bf45
      Longpeng(Mike) 提交于
      Libgcrypt and nettle support 3des-ede, so this patch add 3des-ede
      support when using libgcrypt or nettle.
      Reviewed-by: NGonglei <arei.gonglei@huawei.com>
      Signed-off-by: NLongpeng(Mike) <longpeng2@huawei.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      ffb7bf45
    • T
      Move target-* CPU file into a target/ folder · fcf5ef2a
      Thomas Huth 提交于
      We've currently got 18 architectures in QEMU, and thus 18 target-xxx
      folders in the root folder of the QEMU source tree. More architectures
      (e.g. RISC-V, AVR) are likely to be included soon, too, so the main
      folder of the QEMU sources slowly gets quite overcrowded with the
      target-xxx folders.
      To disburden the main folder a little bit, let's move the target-xxx
      folders into a dedicated target/ folder, so that target-xxx/ simply
      becomes target/xxx/ instead.
      
      Acked-by: Laurent Vivier <laurent@vivier.eu> [m68k part]
      Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> [tricore part]
      Acked-by: Michael Walle <michael@walle.cc> [lm32 part]
      Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x part]
      Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> [s390x part]
      Acked-by: Eduardo Habkost <ehabkost@redhat.com> [i386 part]
      Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> [sparc part]
      Acked-by: Richard Henderson <rth@twiddle.net> [alpha part]
      Acked-by: Max Filippov <jcmvbkbc@gmail.com> [xtensa part]
      Reviewed-by: David Gibson <david@gibson.dropbear.id.au> [ppc part]
      Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [cris&microblaze part]
      Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32 part]
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      fcf5ef2a
  9. 16 12月, 2016 5 次提交
  10. 07 12月, 2016 1 次提交
  11. 06 12月, 2016 3 次提交
    • E
      qcow2: Don't strand clusters near 2G intervals during commit · a3e1505d
      Eric Blake 提交于
      The qcow2_make_empty() function is reached during 'qemu-img commit',
      in order to clear out ALL clusters of an image.  However, if the
      image cannot use the fast code path (true if the image is format
      0.10, or if the image contains a snapshot), the cluster size is
      larger than 512, and the image is larger than 2G in size, then our
      choice of sector_step causes problems.  Since it is not cluster
      aligned, but qcow2_discard_clusters() silently ignores an unaligned
      head or tail, we are leaving clusters allocated.
      
      Enhance the testsuite to expose the flaw, and patch the problem by
      ensuring our step size is aligned.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a3e1505d
    • E
      tests: Avoid qobject_from_jsonf("%"PRId64) · 29a6731a
      Eric Blake 提交于
      The qobject_from_jsonf() function implements a pseudo-printf
      language for creating a QObject; however, it is hard-coded to
      only parse a subset of formats understood by -Wformat, and is
      not a straight synonym to bare printf().  In particular, any
      use of an int64_t integer works only if the system's
      definition of PRId64 matches what the parser expects; which
      works on glibc (%lld or %ld depending on 32- vs. 64-bit) and
      mingw (%I64d), but not on Mac OS (%qd).  Rather than enhance
      the parser, it is just as easy to force the use of int (where
      the value is small enough) or long long instead of int64_t,
      which we know always works.
      
      This should cover all remaining testsuite uses of
      qobject_from_json[fv]() that were trying to rely on PRId64,
      although my proof for that was done by adding in asserts and
      checking that 'make check' still passed, where such asserts
      are inappropriate during hard freeze.  A later series in 2.9
      may remove all dynamic JSON parsing, but that's a bigger task.
      
      Reported by: G 3 <programmingkidx@gmail.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1479922617-4400-4-git-send-email-eblake@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      [Rename value64 to value_ll]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      29a6731a
    • E
      test-qga: Avoid qobject_from_jsonv("%"PRId64) · 1792d7d0
      Eric Blake 提交于
      The qobject_from_jsonv() function implements a pseudo-printf
      language for creating a QObject; however, it is hard-coded to
      only parse a subset of formats understood by -Wformat, and is
      not a straight synonym to bare printf().  In particular, any
      use of an int64_t integer works only if the system's
      definition of PRId64 matches what the parser expects; which
      works on glibc (%lld or %ld depending on 32- vs. 64-bit) and
      mingw (%I64d), but not on Mac OS (%qd).  Rather than enhance
      the parser, it is just as easy to use normal printf() for
      this particular conversion, matching what is done elsewhere
      in this file [1], which is safe in this instance because the
      format does not contain any of the problematic differences
      (bare '%' or the '%s' format).
      
      The use of PRId64 for a variable named 'pid' is gross, but it
      is a sad reality of the 64-bit mingw environment, which
      mistakenly defines pid_t as a 64-bit type even though getpid()
      returns 'int' on that platform [2].  Our definition of the
      QGA GuestExec type defines 'pid' as a 64-bit entity, and we
      can't tighten it to 'int32' unless the mingw header is fixed.
      Using 'long long' instead of 'int64_t' just so that we can
      stick with qobject_from_jsonv("%lld") instead of printf() is
      not any prettier, since we may have later type churn anyways.
      
      [1] see 'git grep -A2 strdup_printf tests/test-qga.c'
      [2] https://bugzilla.redhat.com/show_bug.cgi?id=1397787
      
      Reported by: G 3 <programmingkidx@gmail.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1479922617-4400-3-git-send-email-eblake@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      1792d7d0
  12. 23 11月, 2016 1 次提交
  13. 15 11月, 2016 13 次提交