1. 29 4月, 2015 3 次提交
    • W
      Makefile.target: prepend $libs_softmmu to $LIBS · 7398dfc7
      Wei Liu 提交于
      I discovered a problem when trying to build QEMU statically with gcc.
      libm is an element of LIBS while libpixman-1 is an element in
      libs_softmmu. Libpixman references functions in libm, so the original
      ordering makes linking fail.
      
      This fix is to reorder $libs_softmmu and $LIBS to make -lm appear after
      -lpixman-1. However I'm not quite sure if this is the right fix, hence
      the RFC tag.
      
      Normally QEMU is built with c++ compiler which happens to link in libm
      (at least this is the case with g++), so building QEMU statically
      normally just works and nobody notices this issue.
      Signed-off-by: NWei Liu <wei.liu2@citrix.com>
      Message-Id: <1425912873-21215-1-git-send-email-wei.liu2@citrix.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7398dfc7
    • P
      milkymist: do not modify libs-softmmu · 738e4171
      Paolo Bonzini 提交于
      This is better and prepares for the next patch.  When we copy
      libs_softmmu's value into LIBS with a := assignment, we cannot
      anymore modify libs_softmmu in the Makefiles.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      738e4171
    • F
      configure: Add support for tcmalloc · 2847b469
      Fam Zheng 提交于
      This adds "--enable-tcmalloc" and "--disable-tcmalloc" to allow linking
      to libtcmalloc from gperftools.
      
      tcmalloc is a malloc implementation that works well with threads and is
      fast, so it is good for performance.
      
      It is disabled by default, because the MALLOC_PERTURB_ flag we use in
      tests doesn't work with tcmalloc. However we can enable tcmalloc
      specific heap checker and profilers later.
      
      An IOPS gain can be observed with virtio-blk-dataplane, other parts of
      QEMU will directly benefit from it as well:
      
      ==========================================================
                             glibc malloc
      ----------------------------------------------------------
      rw         bs         iodepth    bw     iops       latency
      read       4k         1          150    38511      24
      ----------------------------------------------------------
      
      ==========================================================
                               tcmalloc
      ----------------------------------------------------------
      rw         bs         iodepth    bw     iops       latency
      read       4k         1          156    39969      23
      ----------------------------------------------------------
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-Id: <1427338992-27057-1-git-send-email-famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      2847b469
  2. 28 4月, 2015 16 次提交
  3. 26 4月, 2015 1 次提交
  4. 24 4月, 2015 1 次提交
  5. 21 4月, 2015 1 次提交
  6. 20 4月, 2015 1 次提交
  7. 17 4月, 2015 5 次提交
  8. 14 4月, 2015 2 次提交
  9. 13 4月, 2015 3 次提交
    • P
      Revert seccomp tests that allow it to be used on non-x86 architectures · ae6e8ef1
      Peter Maydell 提交于
      Unfortunately it turns out that libseccomp 2.2 still does not work
      correctly on non-x86 architectures; return to the previous configure
      setup of insisting on libseccomp 2.1 or better and i386/x86_64 and
      disabling seccomp support in all other situations.
      
      This reverts the two commits:
       * "seccomp: libseccomp version varying according to arch"
         (commit 896848f0)
       * "seccomp: update libseccomp version and remove arch restriction"
         (commit 8e27fc20)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1428670681-23032-1-git-send-email-peter.maydell@linaro.org
      ae6e8ef1
    • T
      pci: Fix crash with illegal "-net nic, model=xxx" option · 4d0ecde4
      Thomas Huth 提交于
      Current QEMU crashes when specifying an illegal model with the
      "-net nic,model=xxx" option, e.g.:
      
       $ qemu-system-x86_64 -net nic,model=n/a
       qemu-system-x86_64: Unsupported NIC model: n/a
      
       Program received signal SIGSEGV, Segmentation fault.
      
      The gdb backtrace looks like this:
      
      0x0000555555965fe0 in error_get_pretty (err=0x0) at util/error.c:152
      152	    return err->msg;
      (gdb) bt
       0  0x0000555555965fe0 in error_get_pretty (err=0x0) at util/error.c:152
       1  0x0000555555965ffd in error_report_err (err=0x0) at util/error.c:157
       2  0x0000555555809c90 in pci_nic_init_nofail (nd=0x555555e49860 <nd_table>, rootbus=0x5555564409b0,
          default_model=0x55555598c37b "e1000", default_devaddr=0x0) at hw/pci/pci.c:1663
       3  0x0000555555691e42 in pc_nic_init (isa_bus=0x555556f71900, pci_bus=0x5555564409b0)
          at hw/i386/pc.c:1506
       4  0x000055555569396b in pc_init1 (machine=0x5555562abbf0, pci_enabled=1, kvmclock_enabled=1)
          at hw/i386/pc_piix.c:248
       5  0x0000555555693d27 in pc_init_pci (machine=0x5555562abbf0) at hw/i386/pc_piix.c:310
       6  0x000055555572ddf5 in main (argc=3, argv=0x7fffffffe018, envp=0x7fffffffe038) at vl.c:4226
      
      The problem is that pci_nic_init_nofail() does not check whether the err
      parameter from pci_nic_init has been set up and thus passes a NULL pointer
      to error_report_err(). Fix it by correctly checking the err parameter.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      4d0ecde4
    • A
      stm32f205: Fix SoC type name · 342b0711
      Andreas Färber 提交于
      The type name for the SoC device, unlike those of its sub-devices,
      did not follow the QOM naming conventions. While the usage is internal
      only, this is exposed through QMP and HMP, so fix it before release.
      
      Cc: Alistair Francis <alistair.francis@xilinx.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Reviewed-by: NAlistair Francis <alistair@alistair23.me>
      Message-id: 1428676676-23056-1-git-send-email-afaerber@suse.de
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      342b0711
  10. 11 4月, 2015 1 次提交
  11. 10 4月, 2015 4 次提交
  12. 09 4月, 2015 2 次提交