1. 25 5月, 2019 2 次提交
  2. 24 5月, 2019 10 次提交
    • P
      Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-4.1-pull-request' into staging · a7b21f67
      Peter Maydell 提交于
      Add /proc/hardware and /proc/cpuinfo,
      update SIOCXXX ioctls,
      fix shmat emulation,
      add nanoseconds in stat,
      init field fp_abi on mips
      
      # gpg: Signature made Fri 24 May 2019 12:24:36 BST
      # gpg:                using RSA key F30C38BD3F2FBE3C
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/linux-user-for-4.1-pull-request:
        linux-user: Pass through nanosecond timestamp components for stat syscalls
        linux-user: Align mmap_find_vma to host page size
        linux-user: Fix shmat emulation by honoring host SHMLBA
        linux-user: Sanitize interp_info and, for mips only, init field fp_abi
        linux-user: Add support for SIOC<G|S>IFPFLAGS ioctls for all targets
        linux-user: Add support for SIOCSPGRP ioctl for all targets
        linux-user: Fix support for SIOCATMARK and SIOCGPGRP ioctls for xtensa
        linux-user: add pseudo /proc/hardware for m68k
        linux-user: add pseudo /proc/cpuinfo for sparc
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a7b21f67
    • C
      linux-user: Pass through nanosecond timestamp components for stat syscalls · 5f992db6
      Chen-Yu Tsai 提交于
      Since Linux 2.6 the stat syscalls have mostly supported nanosecond
      components for each of the file-related timestamps.
      
      QEMU user mode emulation currently does not pass through the nanosecond
      portion of the timestamp, even when the host system fills in the value.
      This results in a mismatch when run on subsecond resolution filesystems
      such as ext4 or XFS.
      
      An example of this leading to inconsistency is cross-debootstraping a
      full desktop root filesystem of Debian Buster. Recent versions of
      fontconfig store the full timestamp (instead of just the second portion)
      of the directory in its per-directory cache file, and checks this against
      the directory to see if the cache is up-to-date. With QEMU user mode
      emulation, the timestamp stored is incorrect, and upon booting the rootfs
      natively, fontconfig discovers the mismatch, and proceeds to rebuild the
      cache on the comparatively slow machine (low-power ARM vs x86). This
      stalls the first attempt to open whatever application that incorporates
      fontconfig.
      
      This patch renames the "unused" padding trailing each timestamp element
      to its nanosecond counterpart name if such an element exists in the
      kernel sources for the given platform. Not all do. Then have the syscall
      wrapper fill in the nanosecond portion if the host supports it, as
      specified by the _POSIX_C_SOURCE and _XOPEN_SOURCE feature macros.
      
      Recent versions of glibc only use stat64 and newfstatat syscalls on
      32-bit and 64-bit platforms respectively. The changes in this patch
      were tested by directly calling the stat, stat64 and newfstatat syscalls
      directly, in addition to the glibc wrapper, on arm and aarch64 little
      endian targets.
      Reviewed-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Message-Id: <20190522162147.26303-1-wens@kernel.org>
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      5f992db6
    • R
      linux-user: Align mmap_find_vma to host page size · 443b7505
      Richard Henderson 提交于
      This can avoid stack allocation failures for i386 guest
      on ppc64 (64k page) host.
      Suggested-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20190519201953.20161-14-richard.henderson@linaro.org>
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      443b7505
    • R
      linux-user: Fix shmat emulation by honoring host SHMLBA · 30ab9ef2
      Richard Henderson 提交于
      For those hosts with SHMLBA > getpagesize, we don't automatically
      select a guest address that is compatible with the host.  We can
      achieve this by boosting the alignment of guest_base and by adding
      an extra alignment argument to mmap_find_vma.
      Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20190519201953.20161-13-richard.henderson@linaro.org>
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      30ab9ef2
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/vga-20190524-pull-request' into staging · 40575757
      Peter Maydell 提交于
      ramfb: misc improvements.
      
      # gpg: Signature made Fri 24 May 2019 09:56:59 BST
      # gpg:                using RSA key 4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full]
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>" [full]
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full]
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/vga-20190524-pull-request:
        hw/display/ramfb: initialize fw-config space with xres/ yres
        hw/display/ramfb: lock guest resolution after it's set
        hw/display/ramfb: fix guest memory un-mapping
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      40575757
    • P
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20190522' into staging · 63601125
      Peter Maydell 提交于
      Misc gvec improvements
      
      # gpg: Signature made Wed 22 May 2019 23:25:48 BST
      # gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
      # gpg:                issuer "richard.henderson@linaro.org"
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [full]
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * remotes/rth/tags/pull-tcg-20190522:
        tcg/i386: Use MOVDQA for TCG_TYPE_V128 load/store
        tcg/aarch64: Allow immediates for vector ORR and BIC
        tcg/aarch64: Build vector immediates with two insns
        tcg/aarch64: Use MVNI in tcg_out_dupi_vec
        tcg/aarch64: Split up is_fimm
        tcg/aarch64: Support vector bitwise select value
        tcg/i386: Use umin/umax in expanding unsigned compare
        tcg/i386: Remove expansion for missing minmax
        tcg/i386: Support vector comparison select value
        tcg: Add TCG_OPF_NOT_PRESENT if TCG_TARGET_HAS_foo is negative
        tcg: Expand vector minmax using cmp+cmpsel
        tcg: Introduce do_op3_nofail for vector expansion
        tcg: Add support for vector compare select
        tcg: Add support for vector bitwise select
        tcg: Fix missing checks and clears in tcg_gen_gvec_dup_mem
        tcg/i386: Fix dupi/dupm for avx1 and 32-bit hosts
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      63601125
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190523' into staging · ceac83e9
      Peter Maydell 提交于
      target-arm queue:
       * exynos4210: QOM'ify the Exynos4210 SoC
       * exynos4210: Add DMA support for the Exynos4210
       * arm_gicv3: Fix writes to ICC_CTLR_EL3
       * arm_gicv3: Fix write of ICH_VMCR_EL2.{VBPR0, VBPR1}
       * target/arm: Fix vector operation segfault
       * target/arm: Minor improvements to BFXIL, EXTR
      
      # gpg: Signature made Thu 23 May 2019 15:22:55 BST
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [ultimate]
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * remotes/pmaydell/tags/pull-target-arm-20190523:
        hw/arm/exynos4210: QOM'ify the Exynos4210 SoC
        hw/arm/exynos4210: Add DMA support for the Exynos4210
        hw/arm/exynos4: Use the IEC binary prefix definitions
        hw/arm/exynos4: Remove unuseful debug code
        hw/intc/arm_gicv3: Fix writes to ICC_CTLR_EL3
        hw/intc/arm_gicv3: Fix write of ICH_VMCR_EL2.{VBPR0, VBPR1}
        arm: Rename hw/arm/arm.h to hw/arm/boot.h
        arm: Remove unnecessary includes of hw/arm/arm.h
        arm: Move system_clock_scale to armv7m_systick.h
        target/arm: Fix vector operation segfault
        target/arm: Simplify BFXIL expansion
        target/arm: Use extract2 for EXTR
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ceac83e9
    • H
      hw/display/ramfb: initialize fw-config space with xres/ yres · f79081b4
      Hou Qiming 提交于
      If xres / yres were specified in QEMU command line, write them as an initial
      resolution to the fw-config space on guest reset, which a later BIOS / OVMF
      patch can take advantage of.
      Signed-off-by: NHOU Qiming <hqm03ster@gmail.com>
      Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Message-id: 20190513115731.17588-4-marcel.apfelbaum@gmail.com
      [fixed malformed patch]
      Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f79081b4
    • H
      hw/display/ramfb: lock guest resolution after it's set · a9e0cb67
      Hou Qiming 提交于
      Only allow one resolution change per guest boot, which prevents a
      crash when the guest writes garbage to the configuration space (e.g.
      when rebooting).
      Signed-off-by: NHOU Qiming <hqm03ster@gmail.com>
      Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Message-id: 20190513115731.17588-3-marcel.apfelbaum@gmail.com
      [fixed malformed patch]
      Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      a9e0cb67
    • H
      hw/display/ramfb: fix guest memory un-mapping · d57f252a
      Hou Qiming 提交于
      Pulled back the `qemu_create_displaysurface_guestmem` function to create
      the display surface so that the guest memory gets properly unmapped.
      Signed-off-by: NHOU Qiming <hqm03ster@gmail.com>
      Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Message-id: 20190513115731.17588-2-marcel.apfelbaum@gmail.com
      [rename the new functions and use QEMU coding style]
      Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      d57f252a
  3. 23 5月, 2019 28 次提交