1. 03 4月, 2017 1 次提交
    • P
      configure: Mark SPARC as supported · 6499fd15
      Peter Maydell 提交于
      Thanks to John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      and the Debian Project, we now have access to a SPARC Linux
      system we can use for build testing. Move SPARC back into
      the "supported" list.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1490698718-23762-1-git-send-email-peter.maydell@linaro.org
      6499fd15
  2. 31 3月, 2017 1 次提交
    • S
      qga: Make qemu-ga compile statically for Windows · 4eaf7202
      Sameeh Jubran 提交于
      Attempting to compile qemu-ga statically as follows for Windows causes
      the following error:
      
      Compilation:
          ./configure --disable-docs --target-list=x86_64-softmmu \
          --cross-prefix=x86_64-w64-mingw32- --static \
          --enable-guest-agent-msi --with-vss-sdk=/path/to/VSSSDK72
      
          make -j8 qemu-ga
      
      Error:
          path/to/qemu/stubs/error-printf.c:7: undefined reference to `__imp_g_test_config_vars'
          collect2: error: ld returned 1 exit status
          Makefile:444: recipe for target 'qemu-ga.exe' failed
          make: *** [qemu-ga.exe] Error 1
      
      This is caused by a bug in the pkg-config file for glib as it doesn't define
      GLIB_STATIC_COMPILATION for pkg-config --static.
      Signed-off-by: NSameeh Jubran <sameeh@daynix.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      4eaf7202
  3. 30 3月, 2017 1 次提交
    • P
      configure: Don't claim 'unsupported host OS' when better message available · fb59dabd
      Peter Maydell 提交于
      The change in commit 898be3e0 which made completely
      unrecognized OSes cause an error_exit "Unsupported host OS"
      has some unfortunate unintended effects:
       * if you run 'configure --help' on an unsupported host OS
         (eg if intending to use it as a build machine for a
         cross compile to a supported host) then the message
         is printed instead of --help
       * if the C compiler doesn't work or is missing (eg if
         you passed an incorrect --cross-prefix by mistake)
         the message is printed instead of the more useful
         'compiler does not exist or does not work' message
      
      Fix this by postponing the error_exit in this situation
      until later, when we have already identified the more
      useful cases for this.
      
      The long term fix for this would be to move handling
      of --help much further up in the configure script,
      and make its output not dependent on checks that configure
      runs. However for 2.9 this would be too invasive.
      Reported-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NStefan Weil <sw@weilnetz.de>
      Tested-by: NStefan Weil <sw@weilnetz.de>
      fb59dabd
  4. 24 3月, 2017 1 次提交
  5. 21 3月, 2017 3 次提交
  6. 20 3月, 2017 1 次提交
  7. 19 3月, 2017 1 次提交
    • P
      configure: remove Cygwin · 732a8020
      Paolo Bonzini 提交于
      The Cygwin target is really compiling for native Win32 with -mno-cygwin.
      Except, GCC 4.7.0 has finally removed the long deprecated -mno-cygwin
      option, and that happened about five years ago.
      
      Let it rest in peace.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      732a8020
  8. 14 3月, 2017 2 次提交
    • L
      configure: add the missing help output for optional features · c12d66aa
      Lin Ma 提交于
      Signed-off-by: NLin Ma <lma@suse.com>
      Message-Id: <20170310101405.26974-1-lma@suse.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      c12d66aa
    • C
      build: include sys/sysmacros.h for major() and minor() · 4d04351f
      Christopher Covington 提交于
      The definition of the major() and minor() macros are moving within glibc to
      <sys/sysmacros.h>. Include this header when it is available to avoid the
      following sorts of build-stopping messages:
      
      qga/commands-posix.c: In function ‘dev_major_minor’:
      qga/commands-posix.c:656:13: error: In the GNU C Library, "major" is defined
       by <sys/sysmacros.h>. For historical compatibility, it is
       currently defined by <sys/types.h> as well, but we plan to
       remove this soon. To use "major", include <sys/sysmacros.h>
       directly. If you did not intend to use a system-defined macro
       "major", you should undefine it after including <sys/types.h>. [-Werror]
               *devmajor = major(st.st_rdev);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      qga/commands-posix.c:657:13: error: In the GNU C Library, "minor" is defined
       by <sys/sysmacros.h>. For historical compatibility, it is
       currently defined by <sys/types.h> as well, but we plan to
       remove this soon. To use "minor", include <sys/sysmacros.h>
       directly. If you did not intend to use a system-defined macro
       "minor", you should undefine it after including <sys/types.h>. [-Werror]
               *devminor = minor(st.st_rdev);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      The additional include allows the build to complete on Fedora 26 (Rawhide)
      with glibc version 2.24.90.
      Signed-off-by: NChristopher Covington <cov@codeaurora.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      4d04351f
  9. 13 3月, 2017 1 次提交
  10. 28 2月, 2017 1 次提交
  11. 24 2月, 2017 3 次提交
    • P
      hw/mips: MIPS Boston board support · df1d8a1f
      Paul Burton 提交于
      Introduce support for emulating the MIPS Boston development board. The
      Boston board is built around an FPGA & 3 PCIe controllers, one of which
      is connected to an Intel EG20T Platform Controller Hub. It is used
      during the development & debug of new CPUs and the software intended to
      run on them, and is essentially the successor to the older MIPS Malta
      board.
      
      This patch does not implement the EG20T, instead connecting an already
      supported ICH-9 AHCI controller. Whilst this isn't accurate it's enough
      for typical stock Boston software (eg. Linux kernels) to work with hard
      disks given that both the ICH-9 & EG20T implement the AHCI
      specification.
      
      Boston boards typically boot kernels in the FIT image format, and this
      patch will treat kernels provided to QEMU as such. When loading a kernel
      directly, the board code will generate minimal firmware much as the
      Malta board code does. This firmware will set up the CM, CPC & GIC
      register base addresses then set argument registers & jump to the kernel
      entry point. Alternatively, bootloader code may be loaded using the bios
      argument in which case no firmware will be generated & execution will
      proceed from the start of the boot code at the default MIPS boot
      exception vector (offset 0x1fc00000 into (c)kseg1).
      
      Currently real Boston boards are always used with FPGA bitfiles that
      include a Global Interrupt Controller (GIC), so the interrupt
      configuration is only defined for such cases. Therefore the board will
      only allow use of CPUs which implement the CPS components, including the
      GIC, and will otherwise exit with a message.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Reviewed-by: NYongbok Kim <yongbok.kim@imgtec.com>
      [yongbok.kim@imgtec.com:
        isolated boston machine support for mips64el.
        updated for recent Chardev changes.
        ignore missing bios/kernel for qtest.
        added default -drive to if=ide explicitly.
        changed default memory size into 1G due to make check failure
        on 32-bit hosts]
      Signed-off-by: NYongbok Kim <yongbok.kim@imgtec.com>
      df1d8a1f
    • A
      tcg: enable MTTCG by default for ARM on x86 hosts · ca759f9e
      Alex Bennée 提交于
      This enables the multi-threaded system emulation by default for ARMv7
      and ARMv8 guests using the x86_64 TCG backend. This is because on the
      guest side:
      
        - The ARM translate.c/translate-64.c have been converted to
          - use MTTCG safe atomic primitives
          - emit the appropriate barrier ops
        - The ARM machine has been updated to
          - hold the BQL when modifying shared cross-vCPU state
          - defer powerctl changes to async safe work
      
      All the host backends support the barrier and atomic primitives but
      need to provide same-or-better support for normal load/store
      operations.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Acked-by: NPeter Maydell <peter.maydell@linaro.org>
      Tested-by: NPranith Kumar <bobby.prani@gmail.com>
      Reviewed-by: NPranith Kumar <bobby.prani@gmail.com>
      ca759f9e
    • P
      Revert "hw/mips: MIPS Boston board support" · 2d896b45
      Peter Maydell 提交于
      This reverts commit d3473e14.
      
      This commit creates a board which defaults to having 2GB of RAM.
      Unfortunately on 32-bit hosts we can't create boards with 2GB of RAM,
      and so 'make check' fails. I missed this during testing of the
      merge, unfortunately. Luckily the offending commit is the last
      one in the merge request, so we can just revert it for now.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2d896b45
  12. 22 2月, 2017 2 次提交
    • P
      hw/mips: MIPS Boston board support · d3473e14
      Paul Burton 提交于
      Introduce support for emulating the MIPS Boston development board. The
      Boston board is built around an FPGA & 3 PCIe controllers, one of which
      is connected to an Intel EG20T Platform Controller Hub. It is used
      during the development & debug of new CPUs and the software intended to
      run on them, and is essentially the successor to the older MIPS Malta
      board.
      
      This patch does not implement the EG20T, instead connecting an already
      supported ICH-9 AHCI controller. Whilst this isn't accurate it's enough
      for typical stock Boston software (eg. Linux kernels) to work with hard
      disks given that both the ICH-9 & EG20T implement the AHCI
      specification.
      
      Boston boards typically boot kernels in the FIT image format, and this
      patch will treat kernels provided to QEMU as such. When loading a kernel
      directly, the board code will generate minimal firmware much as the
      Malta board code does. This firmware will set up the CM, CPC & GIC
      register base addresses then set argument registers & jump to the kernel
      entry point. Alternatively, bootloader code may be loaded using the bios
      argument in which case no firmware will be generated & execution will
      proceed from the start of the boot code at the default MIPS boot
      exception vector (offset 0x1fc00000 into (c)kseg1).
      
      Currently real Boston boards are always used with FPGA bitfiles that
      include a Global Interrupt Controller (GIC), so the interrupt
      configuration is only defined for such cases. Therefore the board will
      only allow use of CPUs which implement the CPS components, including the
      GIC, and will otherwise exit with a message.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Reviewed-by: NYongbok Kim <yongbok.kim@imgtec.com>
      [yongbok.kim@imgtec.com:
        isolated boston machine support for mips64el.
        updated for recent Chardev changes.
        ignore missing bios/kernel for qtest.
        added default -drive to if=ide explicitly]
      Signed-off-by: NYongbok Kim <yongbok.kim@imgtec.com>
      d3473e14
    • P
      dtc: Update requirement to v1.4.2 · 6e85fce0
      Paul Burton 提交于
      In order to obtain fdt_first_subnode & fdt_next_subnode symbols from
      libfdt for use by a later patch, bump the requirement for dtc to v1.4.2
      & the submodule to that same version.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Reviewed-by: NYongbok Kim <yongbok.kim@imgtec.com>
      Signed-off-by: NYongbok Kim <yongbok.kim@imgtec.com>
      6e85fce0
  13. 14 2月, 2017 1 次提交
  14. 07 2月, 2017 1 次提交
    • D
      rules: don't try to create missing include dirs · ac7568bd
      Daniel P. Berrange 提交于
      In
      
        commit ba78db44
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Wed Jan 25 16:14:10 2017 +0000
      
        make: move top level dir to end of include search path
      
      The dir $(BUILD_DIR)/$(@D) was added to the include
      path. This would sometimes point to a non-existant
      directory, if the sub-dir in question did not contain
      any target-independant files (eg tcg/). To deal with
      this the rules.mak attempted to create the directory.
      
      While this was succesful, it also caused accidental
      creation of files in the parent of the build dir.
      e.g. when building common source files into target
      specific output files.
      
      Rather than trying to workaround this, just revert
      the code that attempted to mkdir the missing include
      directories. Instead just turn off the compiler warning
      in question as the missing dir is expected & harmless
      in general.
      
      NB: you can clean up a build directory parent that has
      been filled with empty directories by commit ba78db44
      using this GNU find command in that parent directory:
        find audio backends block chardev crypto disas fsdev hw io linux-user \
          migration nbd net qapi qom replay slirp target ui util \
          -type d -empty -delete
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Tested-by: NAlberto Garcia <berto@igalia.com>
      [PMM: added note about how to clean up a polluted directory]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ac7568bd
  15. 25 1月, 2017 1 次提交
    • M
      nios2: Add support for Nios-II R1 · e671711c
      Marek Vasut 提交于
      Add remaining bits of the Altera NiosII R1 support into qemu, which
      is documentation, MAINTAINERS file entry, configure bits, arch_init
      and configuration files for both linux-user (userland binaries) and
      softmmu (hardware emulation).
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chris Wulff <crwulff@gmail.com>
      Cc: Jeff Da Silva <jdasilva@altera.com>
      Cc: Ley Foon Tan <lftan@altera.com>
      Cc: Sandra Loosemore <sandra@codesourcery.com>
      Cc: Yves Vandervennet <yvanderv@altera.com>
      Reviewed-by: NAlexander Graf <agraf@suse.de>
      Message-Id: <20170118220146.489-8-marex@denx.de>
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      e671711c
  16. 24 1月, 2017 1 次提交
  17. 23 1月, 2017 1 次提交
  18. 20 1月, 2017 2 次提交
  19. 17 1月, 2017 1 次提交
  20. 16 1月, 2017 1 次提交
  21. 09 1月, 2017 1 次提交
  22. 22 12月, 2016 2 次提交
  23. 30 11月, 2016 1 次提交
  24. 29 11月, 2016 1 次提交
  25. 22 11月, 2016 1 次提交
  26. 10 11月, 2016 1 次提交
    • S
      Fix cursesw detection · 7c703002
      Samuel Thibault 提交于
      On systems which do not provide ncursesw.pc and whose /usr/include/curses.h
      does not include wide support, we should not only try with no -I, i.e.
      /usr/include, but also with -I/usr/include/ncursesw.
      
      To properly detect for wide support with and without -Werror, we need to
      check for the presence of e.g. the WACS_DEGREE macro.
      
      We also want to stop at the first curses_inc_list configuration which works,
      and make sure to set IFS to : at each new loop.
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      Tested-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Message-id: 20161109102752.13255-1-samuel.thibault@ens-lyon.org
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      7c703002
  27. 01 11月, 2016 1 次提交
    • S
      sockets: add AF_VSOCK support · 6a02c806
      Stefan Hajnoczi 提交于
      Add the AF_VSOCK address family so that qemu-ga will be able to use
      virtio-vsock.
      
      The AF_VSOCK address family uses <cid, port> address tuples.  The cid is
      the unique identifier comparable to an IP address.  AF_VSOCK does not
      use name resolution so it's easy to convert between struct sockaddr_vm
      and strings.
      
      This patch defines a VsockSocketAddress instead of trying to piggy-back
      on InetSocketAddress.  This is cleaner in the long run since it avoids
      lots of IPv4 vs IPv6 vs vsock special casing.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      * treat trailing commas as garbage when parsing (Eric Blake)
      * add configure check instead of checking AF_VSOCK directly
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      6a02c806
  28. 30 10月, 2016 1 次提交
  29. 28 10月, 2016 2 次提交
  30. 26 10月, 2016 2 次提交