Cornelia Huck
7a9cb3ad33
s390x: introduce 2.13 compat machine
...
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: David Hildenbrand <david@redhat.com >
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com >
Signed-off-by: Cornelia Huck <cohuck@redhat.com >
2018-04-30 10:31:41 +02:00
Christophe Lyon
62aaa51464
linux-user: Add ARM get_tls syscall support
...
Co-Authored-By: Mickaël Guêné <mickael.guene@st.com >
Signed-off-by: Christophe Lyon <christophe.lyon@st.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-Id: <20180416091845.7315-1-christophe.lyon@st.com >
[lv: moved the change to linux-user/arm/cpu_loop.c]
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2018-04-30 09:51:31 +02:00
Laurent Vivier
de6e89b81f
linux-user: move xtensa cpu loop to xtensa directory
...
No code change, only move code from main.c to
xtensa/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-20-laurent@vivier.eu >
2018-04-30 09:48:32 +02:00
Laurent Vivier
1d8d0b4ec7
linux-user: move hppa cpu loop to hppa directory
...
No code change, only move code from main.c to
hppa/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-19-laurent@vivier.eu >
2018-04-30 09:48:31 +02:00
Laurent Vivier
5a0b6d2286
linux-user: move riscv cpu loop to riscv directory
...
No code change, only move code from main.c to
riscv/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Michael Clark <mjc@sifive.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-18-laurent@vivier.eu >
2018-04-30 09:48:28 +02:00
Laurent Vivier
9397e56497
linux-user: move tilegx cpu loop to tilegx directory
...
No code change, only move code from main.c to
tilegx/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-17-laurent@vivier.eu >
2018-04-30 09:48:26 +02:00
Laurent Vivier
a5fd8ee1f7
linux-user: move s390x cpu loop to s390x directory
...
No code change, only move code from main.c to
s390x/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Acked-by: Cornelia Huck <cohuck@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-16-laurent@vivier.eu >
2018-04-30 09:48:24 +02:00
Laurent Vivier
e256aefe0d
linux-user: move alpha cpu loop to alpha directory
...
No code change, only move code from main.c to
alpha/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-15-laurent@vivier.eu >
2018-04-30 09:48:22 +02:00
Laurent Vivier
ff9803b13b
linux-user: move m68k cpu loop to m68k directory
...
No code change, only move code from main.c to
m68k/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-14-laurent@vivier.eu >
2018-04-30 09:48:20 +02:00
Laurent Vivier
82e8e64553
linux-user: move microblaze cpu loop to microblaze directory
...
No code change, only move code from main.c to
microblaze/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-13-laurent@vivier.eu >
2018-04-30 09:48:18 +02:00
Laurent Vivier
8dd14a9b79
linux-user: move cris cpu loop to cris directory
...
No code change, only move code from main.c to
cris/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-12-laurent@vivier.eu >
2018-04-30 09:48:15 +02:00
Laurent Vivier
c37dcb4fa8
linux-user: move sh4 cpu loop to sh4 directory
...
No code change, only move code from main.c to
sh4/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-11-laurent@vivier.eu >
2018-04-30 09:48:13 +02:00
Laurent Vivier
1ef7bca2e7
linux-user: move openrisc cpu loop to openrisc directory
...
No code change, only move code from main.c to
openrisc/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-10-laurent@vivier.eu >
2018-04-30 09:48:11 +02:00
Laurent Vivier
0ec0f01c9d
linux-user: move nios2 cpu loop to nios2 directory
...
No code change, only move code from main.c to
nios2/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-9-laurent@vivier.eu >
2018-04-30 09:48:09 +02:00
Laurent Vivier
58908ef603
linux-user: move mips/mips64 cpu loop to mips directory
...
No code change, only move code from main.c to
mips/cpu_loop.c.
Include mips/cpu_loop.c in mips64/cpu_loop.c
to avoid to duplicate code.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-8-laurent@vivier.eu >
2018-04-30 09:48:07 +02:00
Laurent Vivier
1140051624
linux-user: move ppc/ppc64 cpu loop to ppc directory
...
No code change, only move code from main.c to
ppc/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-7-laurent@vivier.eu >
2018-04-30 09:48:05 +02:00
Laurent Vivier
d0a28415e6
linux-user: move sparc/sparc64 cpu loop to sparc directory
...
No code change, only move code from main.c to
sparc/cpu_loop.c.
Include sparc/cpu_loop.c in sparc64/cpu_loop.c
to avoid to duplicate code.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-6-laurent@vivier.eu >
2018-04-30 09:48:03 +02:00
Laurent Vivier
d967351226
linux-user: move arm cpu loop to arm directory
...
No code change, only move code from main.c to
arm/cpu_loop.c and duplicate some macro
defined for both arm and aarch64.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-5-laurent@vivier.eu >
2018-04-30 09:48:01 +02:00
Laurent Vivier
3c439b1762
linux-user: move aarch64 cpu loop to aarch64 directory
...
No code change, only move code from main.c to
aarch64/cpu_loop.c and duplicate some macro
defined for both arm and aarch64.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-4-laurent@vivier.eu >
2018-04-30 09:47:59 +02:00
Laurent Vivier
3f8258c1c8
linux-user: move i386/x86_64 cpu loop to i386 directory
...
No code change, only move code from main.c to
i386/cpu_loop.c.
Include i386/cpu_loop.c in x86_64/cpu_loop.c
to avoid to duplicate code.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-3-laurent@vivier.eu >
2018-04-30 09:47:57 +02:00
Laurent Vivier
cd71c08964
linux-user: create a dummy per arch cpu_loop.c
...
Create a cpu_loop-common.h for future use by
these new files and use it in the existing
main.c
Introduce target_cpu_copy_regs():
declare the function in cpu_loop-common.h
and an empty function for each target,
to move all the cpu_loop prologues to this function.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-2-laurent@vivier.eu >
2018-04-30 09:47:55 +02:00
Laurent Vivier
cb6ac802ef
linux-user: define TARGET_ARCH_HAS_SETUP_FRAME
...
Instead of calling setup_frame() conditionally to a list of known targets,
define TARGET_ARCH_HAS_SETUP_FRAME if the target provides the function
and call it only if the macro is defined.
Move declarations of setup_frame() and setup_rt_frame() to
linux-user/signal-common.h
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-21-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
9340eddae8
linux-user: move ppc/ppc64 signal.c parts to ppc directory
...
No code change, only move code from signal.c to
ppc/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-20-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
8949bef18b
linux-user: move mips/mips64 signal.c parts to mips directory
...
No code change, only move code from signal.c to
mips/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
mips64/signal.c includes mips/signal.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-19-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
9f172adb35
linux-user: move sparc/sparc64 signal.c parts to sparc directory
...
No code change, only move code from signal.c to
sparc/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
sparc64/signal.c includes sparc/signal.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-18-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
a075f313c5
linux-user: move i386/x86_64 signal.c parts to i386 directory
...
No code change, only move code from signal.c to
i386/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
x86_64/signal.c includes i386/signal.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-17-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
3612667cbb
linux-user: move xtensa signal.c parts to xtensa directory
...
No code change, only move code from signal.c to
xtensa/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-16-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
aca77d5e59
linux-user: move hppa signal.c parts to hppa directory
...
No code change, only move code from signal.c to
hppa/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-15-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
9c3221c192
linux-user: move riscv signal.c parts to riscv directory
...
No code change, only move code from signal.c to
riscv/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-14-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
ea14059a36
linux-user: move tilegx signal.c parts to tilegx directory
...
No code change, only move code from signal.c to
tilegx/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180424192635.6027-13-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
da04107af3
linux-user: move alpha signal.c parts to alpha directory
...
No code change, only move code from signal.c to
alpha/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-12-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
4495abcc3b
linux-user: move m68k signal.c parts to m68k directory
...
No code change, only move code from signal.c to
m68k/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-11-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
4c4c73e369
linux-user: move s390x signal.c parts to s390x directory
...
No code change, only move code from signal.c to
s390x/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Acked-by: Cornelia Huck <cohuck@redhat.com >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-10-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
17853172f7
linux-user: move openrisc signal.c parts to openrisc directory
...
No code change, only move code from signal.c to
openrisc/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-9-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
f7cd3e678c
linux-user: move nios2 signal.c parts to nios2 directory
...
No code change, only move code from signal.c to
nios2/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-8-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
6aa72d7e3c
linux-user: move cris signal.c parts to cris directory
...
No code change, only move code from signal.c to
cris/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-7-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
f9fb3ba359
linux-user: move microblaze signal.c parts to microblaze directory
...
No code change, only move code from signal.c to
microblaze/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-6-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
0f22162a4d
linux-user: move sh4 signal.c parts to sh4 directory
...
No code change, only move code from signal.c to
sh4/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-5-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
5f7645975d
linux-user: move arm signal.c parts to arm directory
...
No code change, only move code from signal.c to
arm/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-4-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
f0352f13fe
linux-user: move aarch64 signal.c parts to aarch64 directory
...
No code change, only move code from signal.c to
aarch64/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-3-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Laurent Vivier
befb7447a0
linux-user: create a dummy per arch signal.c
...
Create a signal-common.h for future use by these new files
and use it in the existing signal.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-2-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
Peter Maydell
2b3f64cbf3
linux-user: Fix getdents emulation for 64 bit guest on 32 bit host
...
Currently we mishandle emulation of the getdents syscall for the
case of a 64 bit guest on a 32 bit host -- it defaults into
the 'host and guest same size' codepath and generates incorrect
structures in the guest buffer.
We can't easily handle the 64-on-32 case using the host getdents
syscall, because the guest struct dirent is bigger than the
host struct dirent, and we might find the host syscall has handed
us back more records than we can fit in the guest buffer after
conversion. Instead, always emulate 64-on-32 getdents with
the host getdents64. This avoids the buffer-overrun problem
because a dirent64 struct is always the same size on any host
and always larger than any architecture's dirent struct.
Reported-by: Henry Wertz <hwertz10@gmail.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-Id: <20180419125740.2695-1-peter.maydell@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2018-04-30 09:47:46 +02:00
Alex Bennée
b02ebad1dc
linux-user: set minimum uname for RISC-V
...
As support for RISC-V was only merged into the mainline kernel at 4.15
it is unlikely that glibc will be happy with a reported kernel version
of 3.8.0. Indeed when I testing binaries created by the current Debian
Sid compiler the tests failed with:
FATAL: kernel too old
Bump the version to the minimum a RISC-V glibc would expect:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/configure.ac
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Palmer Dabbelt <palmer@sifive.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180425100218.24785-1-alex.bennee@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2018-04-30 09:47:46 +02:00
Peter Maydell
6f0c4706b3
Merge remote-tracking branch 'remotes/kraxel/tags/usb-20180427-pull-request' into staging
...
usb: ccid bugfix, misc small improvements.
# gpg: Signature made Fri 27 Apr 2018 11:20:18 BST
# gpg: using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com >"
# gpg: aka "Gerd Hoffmann <gerd@kraxel.org >"
# gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com >"
# Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138
* remotes/kraxel/tags/usb-20180427-pull-request:
ccid-card: include libcacard.h only
Fix libusb-1.0.22 deprecated libusb_set_debug with libusb_set_option
ccid: Fix dwProtocols advertisement of T=0
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-04-27 12:27:59 +01:00
Peter Maydell
10f4718b51
Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180427-pull-request' into staging
...
vnc: fix use-after-free.
sdl2: gles support.
vfio-display: add reset support.
# gpg: Signature made Fri 27 Apr 2018 10:54:17 BST
# gpg: using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com >"
# gpg: aka "Gerd Hoffmann <gerd@kraxel.org >"
# gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com >"
# Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138
* remotes/kraxel/tags/ui-20180427-pull-request:
ui: introduce vfio_display_reset
console: introduce dpy_gfx_update_full
sdl: Allow OpenGL ES context creation
sdl: Move DisplayOptions global to sdl2_console
qapi: Parameter gl of DisplayType now accept an enum
vnc: fix use-after-free
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-04-27 11:39:31 +01:00
Peter Maydell
dcbd26f881
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.13-20180427' into staging
...
ppc patch queue 2018-04-27
Here's the first batch of ppc patches for 2.13. This has a lot of
stuff that's accumulated during the 2.12 freeze. Highlights are:
* Many improvements for the Uninorth PCI host bridge for Mac
machine types
* Preliminary helpers improve handling of multiple backing
pagesizes (not strictly ppc related, but have acks and aimed to
allow future ppc changes)
* Cleanups to pseries cpu initialization
* Cleanups to hash64 MMU handling
* Assorted bugfixes and improvements
# gpg: Signature made Fri 27 Apr 2018 10:20:30 BST
# gpg: using RSA key 6C38CACA20D9B392
# gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au >"
# gpg: aka "David Gibson (Red Hat) <dgibson@redhat.com >"
# gpg: aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org >"
# gpg: aka "David Gibson (kernel.org) <dwg@kernel.org >"
# Primary key fingerprint: 75F4 6586 AE61 A66C C44E 87DC 6C38 CACA 20D9 B392
* remotes/dgibson/tags/ppc-for-2.13-20180427: (49 commits)
Clear mem_path if we fall back to anonymous RAM allocation
spapr: Set compatibility mode before the rest of spapr_cpu_reset()
target/ppc: Don't bother with MSR_EP in cpu_ppc_set_papr()
spapr: Support ibm,dynamic-memory-v2 property
ppc: e500: switch E500 based machines to full machine definition
spapr: Add ibm,max-associativity-domains property
target/ppc: Fold slb_nr into PPCHash64Options
target/ppc: Get rid of POWERPC_MMU_VER() macros
target/ppc: Remove unnecessary POWERPC_MMU_V3 flag from mmu_model
target/ppc: Fold ci_large_pages flag into PPCHash64Options
target/ppc: Move 1T segment and AMR options to PPCHash64Options
target/ppc: Make hash64_opts field mandatory for 64-bit hash MMUs
target/ppc: Split page size information into a separate allocation
target/ppc: Move page size setup to helper function
target/ppc: Remove fallback 64k pagesize information
target/ppc: Avoid taking "env" parameter to mmu-hash64 functions
target/ppc: Pass cpu instead of env to ppc_create_page_sizes_prop()
target/ppc: Simplify cpu valid check in ppc_cpu_realize
target/ppc: Standardize instance_init and realize function names
spapr: drop useless dynamic sysbus device sanity check
...
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-04-27 10:49:23 +01:00
Tina Zhang
8983e3e350
ui: introduce vfio_display_reset
...
During guest OS reboot, guest framebuffer is invalid. It will cause
bugs, if the invalid guest framebuffer is still used by host.
This patch is to introduce vfio_display_reset which is invoked
during vfio display reset. This vfio_display_reset function is used
to release the invalid display resource, disable scanout mode and
replace the invalid surface with QemuConsole's DisplaySurafce.
This patch can fix the GPU hang issue caused by gd_egl_draw during
guest OS reboot.
Changes v3->v4:
- Move dma-buf based display check into the vfio_display_reset().
(Gerd)
Changes v2->v3:
- Limit vfio_display_reset to dma-buf based vfio display. (Gerd)
Changes v1->v2:
- Use dpy_gfx_update_full() update screen after reset. (Gerd)
- Remove dpy_gfx_switch_surface(). (Gerd)
Signed-off-by: Tina Zhang <tina.zhang@intel.com >
Message-id: 1524820266-27079-3-git-send-email-tina.zhang@intel.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2018-04-27 11:36:34 +02:00
Tina Zhang
7cd0afe69f
console: introduce dpy_gfx_update_full
...
dpy_gfx_update_full is used to do the whole display surface update.
This function is proposed by Gerd Hoffmann.
Signed-off-by: Tina Zhang <tina.zhang@intel.com >
Message-id: 1524820266-27079-2-git-send-email-tina.zhang@intel.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2018-04-27 11:36:34 +02:00
Elie Tournier
4867e47cb6
sdl: Allow OpenGL ES context creation
...
Signed-off-by: Elie Tournier <elie.tournier@collabora.com >
Message-id: 20180413135842.21325-4-tournier.elie@gmail.com
[ kraxel: fix indent ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2018-04-27 11:23:01 +02:00
Michal Privoznik
0f5c642d49
ccid-card: include libcacard.h only
...
When trying to build with latest libcacard-2.5.1, I hit the
following error:
In file included from hw/usb/ccid-card-passthru.c:12:0:
/usr/include/cacard/vscard_common.h:26:2: error: #warning "Only <libcacard.h> can be included directly" [-Werror=cpp]
#warning "Only <libcacard.h> can be included directly"
While it was fixed in libcacard upstream (so that individual
files can be included directly), it doesn't make much sense.
Let's switch to including the main libcacard.h and also require
at least libcacard-2.5.1 which introduced it. It's available
since late 2015.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-id: 3c36db1dc0702763ebb7966cc27428ed67d43804.1522751624.git.mprivozn@redhat.com
[ kraxel: fix include path ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2018-04-27 10:57:09 +02:00