1. 28 2月, 2017 1 次提交
  2. 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
  3. 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
  4. 14 2月, 2017 1 次提交
  5. 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
  6. 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
  7. 24 1月, 2017 1 次提交
  8. 23 1月, 2017 1 次提交
  9. 20 1月, 2017 2 次提交
  10. 17 1月, 2017 1 次提交
  11. 16 1月, 2017 1 次提交
  12. 09 1月, 2017 1 次提交
  13. 22 12月, 2016 2 次提交
  14. 30 11月, 2016 1 次提交
  15. 29 11月, 2016 1 次提交
  16. 22 11月, 2016 1 次提交
  17. 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
  18. 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
  19. 30 10月, 2016 1 次提交
  20. 28 10月, 2016 2 次提交
  21. 26 10月, 2016 2 次提交
  22. 21 10月, 2016 2 次提交
  23. 12 10月, 2016 1 次提交
  24. 29 9月, 2016 1 次提交
  25. 28 9月, 2016 1 次提交
  26. 27 9月, 2016 2 次提交
  27. 23 9月, 2016 2 次提交
  28. 21 9月, 2016 1 次提交
  29. 15 9月, 2016 2 次提交
    • E
      win32: don't run subprocess tests on Mingw32 platform · 7ad9339e
      Eduardo Habkost 提交于
      On Tue, Jun 14, 2016 at 04:44:57PM +0100, Daniel P. Berrange wrote:
      > The g_test_trap_subprocess() method does not work on the
      > Mingw32 platform, causing the test-qdev-global-props
      > test case to abort
      >
      > (test-logging.exe:230): GLib-ERROR **: g_test_trap_subprocess()
      > failed: Failed to execute helper program (No such file or directory)
      >
      > This failure was introduced a while ago in
      >
      >   commit 2177801a
      >   Author: Eduardo Habkost <ehabkost@redhat.com>
      >   Date:   Fri Aug 8 16:03:27 2014 -0300
      >
      >     test-qdev-global-props: Run tests on subprocess
      >
      > Modify the configure time check to avoid enabling this feature
      > on Mingw, rather than trying to rewrite the test to avoid this
      > feature.
      
      I would do the following instead, just in case we have extra code
      looking at $glib_subprocess one day.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      7ad9339e
    • T
      Remove remainders of HPPA backend · d41f3c3c
      Thomas Huth 提交于
      The HPPA backend has been removed by the following commit:
      
          802b5081
          tcg-hppa: Remove tcg backend
      
      But some small pieces of the HPPA backend still survived until
      today. Since we also do not have support for a HPPA target in
      QEMU, we can nowadays safely remove the remaining HPPA parts
      (like the disassembler code, or the detection of HPPA in the
      configure script).
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      d41f3c3c