qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 5089c7: linux-user: fix realloc size of targe


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 5089c7: linux-user: fix realloc size of target_fd_trans.
Date: Thu, 25 Feb 2016 04:30:06 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 5089c7ce82a49e6a97c5cf3db57a89bca8ed25d8
      
https://github.com/qemu/qemu/commit/5089c7ce82a49e6a97c5cf3db57a89bca8ed25d8
  Author: Laurent Vivier <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: fix realloc size of target_fd_trans.

target_fd_trans is an array of "TargetFdTrans *": compute size
accordingly. Use g_renew() as proposed by Paolo.

Reported-by: Paolo Bonzini <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 460c579f3ddc71bcf34128d4b3d1e1debdd93f73
      
https://github.com/qemu/qemu/commit/460c579f3ddc71bcf34128d4b3d1e1debdd93f73
  Author: Lluís Vilanova <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    R linux-user/aarch64/syscall.h
    A linux-user/aarch64/target_syscall.h
    R linux-user/alpha/syscall.h
    A linux-user/alpha/target_syscall.h
    R linux-user/arm/syscall.h
    A linux-user/arm/target_syscall.h
    R linux-user/cris/syscall.h
    A linux-user/cris/target_syscall.h
    R linux-user/i386/syscall.h
    A linux-user/i386/target_syscall.h
    R linux-user/m68k/syscall.h
    A linux-user/m68k/target_syscall.h
    R linux-user/microblaze/syscall.h
    A linux-user/microblaze/target_syscall.h
    R linux-user/mips/syscall.h
    A linux-user/mips/target_syscall.h
    R linux-user/mips64/syscall.h
    A linux-user/mips64/target_syscall.h
    R linux-user/openrisc/syscall.h
    A linux-user/openrisc/target_syscall.h
    R linux-user/ppc/syscall.h
    A linux-user/ppc/target_syscall.h
    M linux-user/qemu.h
    R linux-user/s390x/syscall.h
    A linux-user/s390x/target_syscall.h
    R linux-user/sh4/syscall.h
    A linux-user/sh4/target_syscall.h
    R linux-user/sparc/syscall.h
    A linux-user/sparc/target_syscall.h
    R linux-user/sparc64/syscall.h
    A linux-user/sparc64/target_syscall.h
    R linux-user/tilegx/syscall.h
    A linux-user/tilegx/target_syscall.h
    R linux-user/unicore32/syscall.h
    A linux-user/unicore32/target_syscall.h
    R linux-user/x86_64/syscall.h
    A linux-user/x86_64/target_syscall.h

  Log Message:
  -----------
  build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target 
directories

This fixes double-definitions in linux-user builds when using the UST
tracing backend (which indirectly includes the system's "syscall.h").

Signed-off-by: Lluís Vilanova <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: de3f1b98410e0d5b406a0df3a48547b559d18602
      
https://github.com/qemu/qemu/commit/de3f1b98410e0d5b406a0df3a48547b559d18602
  Author: Laurent Vivier <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M linux-user/main.c

  Log Message:
  -----------
  linux-user: set ppc64/ppc64le default CPU to POWER8

Set the default to the latest CPU version to have the
largest set of available features.

It is also really needed in little-endian mode because
POWER7 is not really supported in this mode and some distros
(at least debian) generate POWER8 code for their ppc64le target.

Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813698

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Alexander Graf <address@hidden>
Reviewed-by: Michael Tokarev <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: b6e17875f2e4d1ebfd45bcb0eed04c3157e86a84
      
https://github.com/qemu/qemu/commit/b6e17875f2e4d1ebfd45bcb0eed04c3157e86a84
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Don't assert if guest tries shmdt(0)

Our implementation of shmat() and shmdt() for linux-user was
using "zero guest address" as its marker for "entry in the
shm_regions[] array is not in use". This meant that if the
guest did a shmdt(0) we would match on an unused array entry
and call page_set_flags() with both start and end addresses zero,
which causes an assertion failure.

Use an explicit in_use flag to manage the shm_regions[] array,
so that we avoid this problem.

Signed-off-by: Peter Maydell <address@hidden>
Reported-by: Pavel Shamis <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 7c73d2a3fa14cecfd38db7d8a3cd266ce14b9d57
      
https://github.com/qemu/qemu/commit/7c73d2a3fa14cecfd38db7d8a3cd266ce14b9d57
  Author: Riku Voipio <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M linux-user/aarch64/syscall_nr.h
    M linux-user/alpha/syscall_nr.h
    M linux-user/cris/syscall_nr.h
    M linux-user/i386/syscall_nr.h
    M linux-user/microblaze/syscall_nr.h
    M linux-user/mips64/syscall_nr.h
    M linux-user/openrisc/syscall_nr.h
    M linux-user/ppc/syscall_nr.h
    M linux-user/s390x/syscall_nr.h
    M linux-user/sparc/syscall_nr.h
    M linux-user/sparc64/syscall_nr.h
    M linux-user/tilegx/syscall_nr.h
    M linux-user/x86_64/syscall_nr.h

  Log Message:
  -----------
  linux-user: sync syscall numbers with kernel

Sync syscall numbers to match the linux v4.5-rc1 kernel.

Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 13756fb008728e0c316d6b183c8740e030b1ad74
      
https://github.com/qemu/qemu/commit/13756fb008728e0c316d6b183c8740e030b1ad74
  Author: Riku Voipio <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M linux-user/aarch64/syscall_nr.h
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: remove unavailable syscalls from aarch64

QEMU lists deprecated system call numbers in for Aarch64. These
are never enabled for Linux kernel, so don't define them in Qemu
either. Remove the ifdef around host_to_target_stat64 since
all architectures need it now.

Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 93a92d3bd649cd315db47b9fb5dcb6af657cc22c
      
https://github.com/qemu/qemu/commit/93a92d3bd649cd315db47b9fb5dcb6af657cc22c
  Author: Riku Voipio <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M linux-user/i386/syscall_nr.h
    M linux-user/m68k/syscall_nr.h
    M linux-user/ppc/syscall_nr.h
    M linux-user/sh4/syscall_nr.h
    M linux-user/sparc/syscall_nr.h
    M linux-user/x86_64/syscall_nr.h

  Log Message:
  -----------
  linux-user: correct timerfd_create syscall numbers

x86, m68k, ppc, sh4 and sparc failed to enable timerfd, because they
didn't have timerfd_create system call defined. Instead QEMU
defined timerfd syscall. Checking with kernel sources, it appears
kernel developers reused timerfd syscall number with timerfd_create,
presumably since no userspace called the old syscall number.

Reported-by: Laurent Vivier <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: f894efd19917321844b31e5dd7a061fdc6fb322d
      
https://github.com/qemu/qemu/commit/f894efd19917321844b31e5dd7a061fdc6fb322d
  Author: Laurent Vivier <address@hidden>
  Date:   2016-02-24 (Wed, 24 Feb 2016)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: add getrandom() syscall

getrandom() has been introduced in kernel 3.17 and is now used during
the boot sequence of Debian unstable (stretch/sid).

Signed-off-by: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 8283f6f82137bec76c41c2a6bbc26689d2766672
      
https://github.com/qemu/qemu/commit/8283f6f82137bec76c41c2a6bbc26689d2766672
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-25 (Thu, 25 Feb 2016)

  Changed paths:
    R linux-user/aarch64/syscall.h
    M linux-user/aarch64/syscall_nr.h
    A linux-user/aarch64/target_syscall.h
    R linux-user/alpha/syscall.h
    M linux-user/alpha/syscall_nr.h
    A linux-user/alpha/target_syscall.h
    R linux-user/arm/syscall.h
    A linux-user/arm/target_syscall.h
    R linux-user/cris/syscall.h
    M linux-user/cris/syscall_nr.h
    A linux-user/cris/target_syscall.h
    R linux-user/i386/syscall.h
    M linux-user/i386/syscall_nr.h
    A linux-user/i386/target_syscall.h
    R linux-user/m68k/syscall.h
    M linux-user/m68k/syscall_nr.h
    A linux-user/m68k/target_syscall.h
    M linux-user/main.c
    R linux-user/microblaze/syscall.h
    M linux-user/microblaze/syscall_nr.h
    A linux-user/microblaze/target_syscall.h
    R linux-user/mips/syscall.h
    A linux-user/mips/target_syscall.h
    R linux-user/mips64/syscall.h
    M linux-user/mips64/syscall_nr.h
    A linux-user/mips64/target_syscall.h
    R linux-user/openrisc/syscall.h
    M linux-user/openrisc/syscall_nr.h
    A linux-user/openrisc/target_syscall.h
    R linux-user/ppc/syscall.h
    M linux-user/ppc/syscall_nr.h
    A linux-user/ppc/target_syscall.h
    M linux-user/qemu.h
    R linux-user/s390x/syscall.h
    M linux-user/s390x/syscall_nr.h
    A linux-user/s390x/target_syscall.h
    R linux-user/sh4/syscall.h
    M linux-user/sh4/syscall_nr.h
    A linux-user/sh4/target_syscall.h
    R linux-user/sparc/syscall.h
    M linux-user/sparc/syscall_nr.h
    A linux-user/sparc/target_syscall.h
    R linux-user/sparc64/syscall.h
    M linux-user/sparc64/syscall_nr.h
    A linux-user/sparc64/target_syscall.h
    M linux-user/syscall.c
    R linux-user/tilegx/syscall.h
    M linux-user/tilegx/syscall_nr.h
    A linux-user/tilegx/target_syscall.h
    R linux-user/unicore32/syscall.h
    A linux-user/unicore32/target_syscall.h
    R linux-user/x86_64/syscall.h
    M linux-user/x86_64/syscall_nr.h
    A linux-user/x86_64/target_syscall.h

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160225' 
into staging

Second pull req with getrandom fix

# gpg: Signature made Thu 25 Feb 2016 10:57:42 GMT using RSA key ID DE3C9BC0
# gpg: Good signature from "Riku Voipio <address@hidden>"
# gpg:                 aka "Riku Voipio <address@hidden>"

* remotes/riku/tags/pull-linux-user-20160225:
  linux-user: add getrandom() syscall
  linux-user: correct timerfd_create syscall numbers
  linux-user: remove unavailable syscalls from aarch64
  linux-user: sync syscall numbers with kernel
  linux-user: Don't assert if guest tries shmdt(0)
  linux-user: set ppc64/ppc64le default CPU to POWER8
  build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target 
directories
  linux-user: fix realloc size of target_fd_trans.

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/d159148b63cb...8283f6f82137

reply via email to

[Prev in Thread] Current Thread [Next in Thread]