1. 06 10月, 2012 1 次提交
  2. 05 10月, 2012 2 次提交
  3. 28 9月, 2012 1 次提交
  4. 26 9月, 2012 2 次提交
    • H
      usb-redir: Adjust pkg-config check for usbredirparser .pc file rename (v2) · 8b626aa7
      Hans de Goede 提交于
      The usbredir 0.5 release introduced the new API for 64 bit packet ids, but
      it kept the libusbredirparser.pc name as is, meaning that older versions of
      qemu will still have their pkg-config check for usbredirparser fulfilled,
      and build with the usb-redir device. Due to the API change there will be
      some compiler warnings, but the build will succeed, however the usb-redir
      device will be broken on 32 bit machines.
      
      To solve this a new usbredir-0.5.2 release is coming, which renames the
      libusbredirparser.pc file to libusbredirparser-0.5.pc, so that it will no
      longer fulfill the pkg-config check of the qemu-1.2 and older releases,
      stopping the (silent) breakage. This patch adjusts qemu master's configure
      to properly detect the new usbredir release.
      
      Changes in v2:
      -Not only use the new .pc name in the check but also when getting cflags
       and libs!
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      8b626aa7
    • S
      configure: Allow builds without any system or user emulation · 8bdd3d49
      Stefan Weil 提交于
      The old code aborted configure when no emulation target was selected.
      Even after removing the 'exit 1', it tried to read from STDIN
      when QEMU was configured with
      
          configure' '--disable-user' '--disable-system'
      
      This is fixed here.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8bdd3d49
  5. 22 9月, 2012 3 次提交
  6. 17 9月, 2012 1 次提交
  7. 16 9月, 2012 9 次提交
  8. 15 9月, 2012 1 次提交
  9. 14 9月, 2012 1 次提交
  10. 13 9月, 2012 2 次提交
  11. 11 9月, 2012 3 次提交
  12. 10 9月, 2012 2 次提交
  13. 09 9月, 2012 1 次提交
    • C
      qemu: Use valgrind annotations to mark kvm guest memory as defined · 62fe8331
      Christian Borntraeger 提交于
      valgrind with kvm produces a big amount of false positives regarding
      "Conditional jump or move depends on uninitialised value(s)". This
      happens because the guest memory is allocated with qemu_vmalloc which
      boils down posix_memalign etc. This function is (correctly) considered
      by valgrind as returning undefined memory.
      
      Since valgrind is based on jitting code, it will not be able to see
      changes made by the guest to guest memory if this is done by KVM_RUN,
      thus keeping most of the guest memory undefined.
      
      Now lots of places in qemu will then use guest memory to change behaviour.
      To avoid the flood of these messages, lets declare the whole guest
      memory as defined. This will reduce the noise and allows us to see real
      problems.
      
      In the future we might want to make this conditional, since there
      is actually something that we can use those false positives for:
      These messages will point to code that depends on guest memory, so
      we can use these backtraces to actually make an audit that is focussed
      only at those code places. For normal development we dont want to
      see those messages, though.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      62fe8331
  14. 05 9月, 2012 2 次提交
  15. 22 8月, 2012 1 次提交
  16. 17 8月, 2012 4 次提交
    • E
      Adding support for libseccomp in configure and Makefile (v8) · f794573e
      Eduardo Otubo 提交于
      Adding basic options to the configure script to use libseccomp or not.
      The default is set to 'no'. If the flag --enable-libseccomp is used, the
      script will check for its existence using pkg-config.
      Signed-off-by: NEduardo Otubo <otubo@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ---
      v1 -> v2:
       - As I removed all the code related to seccomp from vl.c, I created
         qemu-seccomp.[ch].
       - Also making the configure script to add the specific line to
         Makefile.obj in order to compile with appropriate support to seccomp.
      
      v2 -> v3:
       - Removing the line from Makefile.obj and adding it to Makefile.objs.
       - Marking libseccomp default option to 'yes' in the configure script.
      
      v3 -> v8:
       - fix configure probe if libseccomp isn't available (aliguori)
      f794573e
    • P
      Support using a different compiler for Objective-C files · 3c4a4d0d
      Peter Maydell 提交于
      MacOSX 10.8 ("Mountain Lion") requires us to compile our one
      Objective-C source file with clang even if the rest of QEMU
      requires a real gcc, because the system headers we use make
      use of Apple's "Blocks" extension to C/ObjC, and mainline
      gcc doesn't support that. Since we only need to use a true
      gcc for the parts of QEMU that use the fixed-register
      env variable, we can simply use clang to build the ObjC
      file: it will link to the gcc-built objects with no problems.
      
      Add the necessary support for an OBJCC variable in the
      makefile and configure machinery; we default to clang
      if we have it, otherwise whatever CC is (since gcc
      might be the Apple gcc which does support Blocks).
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      3c4a4d0d
    • P
      configure: Define OS_OBJECT_USE_OBJC=0 for MacOSX builds · a0b7cf6b
      Peter Maydell 提交于
      MacOSX 10.8 ("Mountain Lion") defaults to trying to use automated
      reference counting on certain objects.  This means that the system
      header files will use some Objective C syntax constructs even when
      compiling pure C, which confuses mainline gcc. Suppress this by
      setting OS_OBJECT_USE_OBJC=0. This avoids a compile error like this:
      
      In file included from
      /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:5:0,
                       from /usr/include/os/object.h:74,
                       from /usr/include/dispatch/dispatch.h:48,
                       from /System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:56,
                       from block/raw-posix.c:35:
      /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:409:1: error: stray ‘@’ in program
      [with a large number of further run-on errors]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a0b7cf6b
    • P
      configure: Don't override user's --cpu on MacOS and Solaris · bbea4050
      Peter Maydell 提交于
      Both MacOS and Solaris have special case handling for the CPU
      type, because the check_define probes will return i386 even if
      the hardware is 64 bit and x86_64 would be preferable. Move
      these checks earlier in the configure probing so that we can
      do them only if the user didn't specify a CPU with --cpu. This
      fixes a bug where the user's command line argument was being
      ignored.
      Reviewed-by: NAndreas F=E4rber <afaerber@suse.de>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      bbea4050
  17. 16 8月, 2012 1 次提交
    • J
      audio: Make pcspk card selectable again · 5a4d701a
      Jan Kiszka 提交于
          [ The following text is in the "ISO-8859-1" character set. ]
          [ Your display is set for the "KOI8-R" character set.  ]
          [ Some special characters may be displayed incorrectly. ]
      
      Since we moved pcspk into hwlib, CONFIG_PCSPK is no longer defined per
      target. Therefore, statically built soundhw array in arch_init.c stopped
      including this card.
      
      Work around this by re-adding this define to config-target.mak.
      Long-term, a dynamic creation of this soundhw list will be necessary.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      5a4d701a
  18. 15 8月, 2012 1 次提交
  19. 14 8月, 2012 1 次提交
  20. 11 8月, 2012 1 次提交
    • B
      configure: fix double check tests with Clang · c075a723
      Blue Swirl 提交于
      Configuring with Clang compiler with -Werror would not work after
      improved checks:
      /tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates
      to true [-Werror,-Wtautological-compare]
      int main(void) { return preadv == preadv; }
      /tmp/qemu-conf--25992-.c:13:26: error: self-comparison always
      evaluates to true [-Werror,-Wtautological-compare]
          return epoll_create1 == epoll_create1;
      /tmp/qemu-conf--25992-.c:3:13: error: explicitly assigning a variable
      of type 'char **' to itself [-Werror,-Wself-assign]
          environ = environ;
      
      Avoid the errors by adjusting the tests.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      c075a723