[Qemu-devel] [PATCH] linux-user: Add FICLONE and FICLONERANGE ioctls

2017-01-28 Thread Helge Deller
Add missing FICLONE and FICLONERANGE ioctls. Signed-off-by: Helge Deller <del...@gmx.de> diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 2f6e85b..eb1421d 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -112,6 +112,11 @@ #ifdef FIBMAP IOCTL(FIBMAP, IOC_W |

[Qemu-devel] [PATCH v5] linux-user: Add sockopts for IPv6 ping and IPv6 traceroute

2017-02-18 Thread Helge Deller
-by: Helge Deller <del...@gmx.de> --- Changes to v4: (all suggested by Laurent Vivier) - Handle AF_INET6 in host_to_target_sockaddr() - Drop length check for IP_TTL and SOL_IPV6 - Trunk optlen length in ICMPV6_FILTER if necessary Changes to v3: - Fix up checkpatch fallouts Changes to v2: (all sug

[Qemu-devel] [PATCH v3] linux-user: Add sockopts for IPv6 ping and IPv6 traceroute

2017-02-17 Thread Helge Deller
-by: Helge Deller <del...@gmx.de> --- Changes to v2: (all suggested by Laurent Vivier) - Drop goto statements and replaced by real code - New function host_to_target_sockaddr_in6() - Fix IPV6_PKTINFO which uses in6_pktinfo instead of uint32_t - Move one IPV6_CHECKSUM from SOL_ICMPV6 to SOL_IPV6

[Qemu-devel] [PATCH v4] linux-user: Add sockopts for IPv6 ping and IPv6 traceroute

2017-02-18 Thread Helge Deller
-by: Helge Deller <del...@gmx.de> --- Changes to v3: - Fix up checkpatch fallouts Changes to v2: (all suggested by Laurent Vivier) - Drop goto statements and replaced by real code - New function host_to_target_sockaddr_in6() - Fix IPV6_PKTINFO which uses in6_pktinfo instead of uint32_t - Mo

[Qemu-devel] [PATCH] linux-user: Add sockopts for IPv6 ping and IPv6 traceroute

2017-02-11 Thread Helge Deller
Unsupported setsockopt level=41 optname=25 Unsupported setsockopt level=41 optname=51 Unsupported setsockopt level=41 optname=8 Unsupported setsockopt level=58 optname=1 Tested on hppa-linux-user. Signed-off-by: Helge Deller <del...@gmx.de> diff --git a/linux-user/syscall.c b/linux-user/sys

[Qemu-devel] [PATCH v2] linux-user: Add FICLONE and FICLONERANGE ioctls

2017-02-11 Thread Helge Deller
Add missing FICLONE and FICLONERANGE ioctls. Changes to v1: - Added STRUCT_file_clone_range as suggested by Laurent Vivier Signed-off-by: Helge Deller <del...@gmx.de> diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 2f6e85b..e6997ff 100644 --- a/linux-user/ioctls.h +++ b/linu

Re: [Qemu-devel] [PATCH 00/26] New hppa-linux-user target

2016-12-21 Thread Helge Deller
On 18.12.2016 07:56, Thomas Huth wrote: > On 16.12.2016 20:13, Richard Henderson wrote: >> This is a linux-user only port, emulating a 32-bit only version of a >> pa-2.0 cpu. This is good enough to do well with both the gcc and glibc >> testsuites. Helge Deller has provided

[Qemu-devel] [PATCH] linux-user: Add TARGET_MAP_STACK and TARGET_MAP_HUGETLB for all remaining architectures

2017-03-11 Thread Helge Deller
Add the missing defines and for TARGET_MAP_STACK and TARGET_MAP_HUGETLB for alpha, mips, ppc and x86, and fix the mmap_flags translation table to translate those flags between host and target architecture. Signed-off-by: Helge Deller <del...@gmx.de> diff --git a/linux-user/syscall.c b/linu

[Qemu-devel] [PATCH] linux-user: Fix TARGET_MAP* and TARGET_F_??LCK for hppa arch

2017-03-11 Thread Helge Deller
TARGET_MAP_TYPE needs to be 0x03 instead of 0x0f on the hppa architecture, otherwise it conflicts with MAP_FIXED which is 0x04. Add missing TARGET_MAP_STACK and TARGET_MAP_HUGETLB values. Fix TARGET_F_RDLCK, TARGET_F_WRLCK and TARGET_F_UNLCK. Signed-off-by: Helge Deller <del...@gmx.de>

[Qemu-devel] [PATCH] linux-user: Add missing IP_TOS, IPV6_TCLASS and IPV6_RECVTCLASS sockopts

2017-03-11 Thread Helge Deller
warnings. Signed-off-by: Helge Deller <del...@gmx.de> diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 03ed370..e5f55e9 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1713,6 +1713,18 @@ static inline abi_long target_to_host_cmsg(struct msghdr

Re: [Qemu-devel] [PATCH] linux-user: Add TARGET_MAP_STACK and TARGET_MAP_HUGETLB for all remaining architectures

2017-03-13 Thread Helge Deller
On 11.03.2017 22:53, Richard Henderson wrote: > On 03/12/2017 04:30 AM, Helge Deller wrote: >> Add the missing defines and for TARGET_MAP_STACK and TARGET_MAP_HUGETLB >> for alpha, mips, ppc and x86, and fix the mmap_flags translation table >> to translate those flags be

[Qemu-devel] [PATCH] linux-user/hppa: Fix typo for TARGET_NR_epoll_wait

2017-03-11 Thread Helge Deller
This fixes running a dynamically linked nslookup binary on hppa with LD_BIND_NOW=1. Signed-off-by: Helge Deller <del...@gmx.de> diff --git a/linux-user/hppa/syscall_nr.h b/linux-user/hppa/syscall_nr.h index 0f396fa..55bdf71 100644 --- a/linux-user/hppa/syscall_nr.h +++ b/linux-use

Re: [Qemu-devel] [PATCH 2/3] linux-user: Fix TARGET_SA_* defines for HPPA

2017-03-11 Thread Helge Deller
On 11.03.2017 04:42, Richard Henderson wrote: > From: Helge Deller <del...@gmx.de> > > Reported-by: Helge Deller <del...@gmx.de> > Signed-off-by: Richard Henderson <r...@twiddle.net> Signed-off-by: Helge Deller <del...@gmx.de> > --- > linux-user/sys

Re: [Qemu-devel] [PATCH] linux-user: Fix TARGET_MAP* and TARGET_F_??LCK for hppa arch

2017-05-30 Thread Helge Deller
On 19.05.2017 15:59, Riku Voipio wrote: > On Sun, Mar 12, 2017 at 08:17:46AM +1000, Richard Henderson wrote: >> On 03/12/2017 03:50 AM, Helge Deller wrote: >>> TARGET_MAP_TYPE needs to be 0x03 instead of 0x0f on the hppa >>> architecture, otherwise it conflicts w

Re: [Qemu-devel] qemu-system-hppa first steps

2017-10-03 Thread Helge Deller
On 02.10.2017 17:36, Richard Henderson wrote: On 10/01/2017 04:27 PM, Helge Deller wrote: What I'm absolutely missing knowledge in is the emulation code in qemu to really be able to emulate the missing hppa assembler instructions. For example, the space registers, some other PSW bits, and so

Re: [Qemu-devel] [PATCH v3 41/45] hw/hppa: Implement DINO system board

2018-01-27 Thread Helge Deller
Hi Philipppe, On 25.01.2018 12:22, Philippe Mathieu-Daudé wrote: > Hi Richard, Helge, > > On 01/24/2018 08:26 PM, Richard Henderson wrote: >> From: Helge Deller <del...@gmx.de> >> >> Now that we have the prerequisites in target/hppa/, >> implement the h

Re: [Qemu-devel] [PULL v5 39/43] hw/hppa: Implement DINO system board

2018-02-01 Thread Helge Deller
00084. > > That's a little bit annoying. Could you please either remove them or > silence them in qtest mode by adding a check for !qtest_enabled() ? The patch below fixes it. Richard, can you apply it? Helge --- target/hppa: Silence debug messages in qtest mode Reported-by: Thomas Huth

Re: [Qemu-devel] [PATCH v3 42/45] pc-bios: Add hppa-firmware.img and git submodule

2018-02-05 Thread Helge Deller
On 04.02.2018 23:40, Philippe Mathieu-Daudé wrote: > Hi Helge, Hi Philippe, > On 01/24/2018 08:26 PM, Richard Henderson wrote: >> Signed-off-by: Richard Henderson >> --- >> Makefile | 3 ++- >> .gitmodules | 3 +++ >>

[Qemu-devel] [PATCH] qemu-system-hppa: Raise exception 26 on emulated hardware

2018-10-07 Thread Helge Deller
ned access trap) (Addr=0004) Signed-off-by: Helge Deller diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index ab160c2a74..aecf3075f6 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -137,7 +137,8 @@ int hppa_get_physical_address(CPUHPPAState *env, va

Re: [Qemu-devel] [PATCH] configure: Relax check for libseccomp

2019-04-03 Thread Helge Deller
On 03.04.19 17:16, Peter Maydell wrote: > On Wed, 3 Apr 2019 at 19:51, Helge Deller wrote: > > [cc'ing Eduardo as the seccomp submaintainer] > >> On a non-release architecture, the configure program aborts if the >> --enable-seccomp flag was given (with no way to work aro

[Qemu-devel] [PATCH v2] configure: Relax check for libseccomp

2019-04-04 Thread Helge Deller
All major distributions do support libseccomp version >= 2.3.0, so there is no need to special-case on various architectures any longer. Signed-off-by: Helge Deller diff --git a/configure b/configure index 1c563a7027..8fe4fc84d8 100755 --- a/configure +++ b/configure @@ -2377,36 +2369,16 @@

[Qemu-devel] [PATCH] configure: Automatically fall back to TCI on non-release architectures

2019-04-04 Thread Helge Deller
in automatic build environments (like in my case the debian buildds) because one does not need to special case on the architectures. Signed-off-by: Helge Deller diff --git a/configure b/configure index 1c563a7027..8fe4fc84d8 100755 --- a/configure +++ b/configure @@ -769,8 +769,10 @@ case "

[Qemu-devel] [PATCH] configure: Relax check for libseccomp

2019-04-03 Thread Helge Deller
Instead of aborting, fall back to require libseccomp version 2.2.0 (or any higher version currently installed) which should be OK for non-release architectures. Signed-off-by: Helge Deller diff --git a/configure b/configure index 1c563a7027..8632267049 100755 --- a/configure +++ b/configure

Re: [Qemu-devel] [PATCH] configure: Automatically fall back to TCI on non-release architectures

2019-04-05 Thread Helge Deller
Hi Philippe, On 04.04.19 21:24, Philippe Mathieu-Daudé wrote: > Hi Helge, > > On 4/4/19 8:57 PM, Helge Deller wrote: >> If a non-release architecture is found, and it's known that there is no >> native TCG support for that CPU, automatically fall back to the TCI >

Re: [Qemu-devel] [PATCH] configure: Automatically fall back to TCI on non-release architectures

2019-04-05 Thread Helge Deller
Hi Peter, On 05.04.19 03:34, Peter Maydell wrote: > On Fri, 5 Apr 2019 at 01:59, Helge Deller wrote: >> If a non-release architecture is found, and it's known that there is no >> native TCG support for that CPU, automatically fall back to the TCI >> implementation instead o

Re: [Qemu-devel] [PATCH] configure: Automatically fall back to TCI on non-release architectures

2019-04-05 Thread Helge Deller
On 05.04.19 10:26, Daniel P. Berrangé wrote: > On Fri, Apr 05, 2019 at 09:56:46AM +0200, Helge Deller wrote: >> Hi Peter, >> >> On 05.04.19 03:34, Peter Maydell wrote: >>> On Fri, 5 Apr 2019 at 01:59, Helge Deller wrote: >>>> If a non-rel

[Qemu-devel] [PATCH] linux-user: Nicer strace output of chroot() syscall

2019-02-27 Thread Helge Deller
Signed-off-by: Helge Deller diff --git a/linux-user/strace.c b/linux-user/strace.c index 7318392e57..6f72a74c09 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1235,6 +1235,18 @@ print_chdir(const struct syscallname *name, } #endif +#ifdef TARGET_NR_chroot +static void

[Qemu-devel] [PATCH] linux-user: Add missing IPV6 sockopts

2019-02-27 Thread Helge Deller
When running ssh over IPv6 with linux-user I faced this warning: Unsupported setsockopt level=41 optname=67 setsockopt IPV6_TCLASS 32: Protocol not available: This patch adds a few missing IPV6 options, including IPV6_TCLASS. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b

Re: [Qemu-devel] [PATCH 1/1] Update seabios-hppa to latest upstream

2019-03-14 Thread Helge Deller
Hi Richard, On 14.03.19 16:26, Richard Henderson wrote: > On 3/13/19 1:00 PM, Sven Schnelle wrote: >> Signed-off-by: Sven Schnelle >> --- >> pc-bios/hppa-firmware.img | Bin 760040 -> 763944 bytes >> roms/seabios-hppa | 2 +- >> 2 files changed, 1 insertion(+), 1 deletion(-) > >

[Qemu-devel] [PATCH] pcnet: Avoid warning when switching back to 16bit mode

2019-03-11 Thread Helge Deller
witch-back to 16bit mode. Signed-off-by: Helge Deller diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c index d9ba04bdfc..14eb2fa1b0 100644 --- a/hw/net/pcnet.c +++ b/hw/net/pcnet.c @@ -1496,8 +1496,9 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val) case 1:

Re: [Qemu-devel] Maintainers, please tell us how to boot your machines!

2019-03-12 Thread Helge Deller
On 12.03.19 18:36, Markus Armbruster wrote: > Make sure to include a complete QEMU command line: > ... > = hw/hppa/machine.c = > Richard Henderson (maintainer:HPPA (PA-RISC)) > Helge Deller (reviewer:Dino) Linux: Download http://backup.parisc-linux.org/qemu/debian-10-

[Qemu-devel] [PATCH v2] linux-user: Add missing IPV6 sockopts

2019-03-10 Thread Helge Deller
. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 208fd1813d..0da51b1208 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1871,6 +1874,20 @@ static abi_long do_setsockopt(int sockfd, int level, int optname, case IPV6_RECVHOPLIMIT

Re: [Qemu-devel] [PATCH 00/19] target/hppa: Convert to decodetree

2019-02-11 Thread Helge Deller
her minor problems on mainline. > > I tested this during the weekend with my HP-UX branch and found no > problems. Feel free to add > > Tested-by: Sven Schnelle No issues found here either: Tested-by: Helge Deller Thanks! Helge

Re: [PATCH v2] linux-user/strace: Improve output of various syscalls

2019-11-21 Thread Helge Deller
On 20.11.19 23:20, Aleksandar Markovic wrote: > On Wed, Nov 20, 2019 at 10:13 PM Aleksandar Markovic > wrote: >> >> On Wed, Nov 20, 2019 at 3:58 PM Helge Deller wrote: >>> >>> Improve strace output of various syscalls which either have none >>> or onl

[PATCH v3] linux-user/strace: Improve output of various syscalls

2019-11-21 Thread Helge Deller
Improve strace output of various syscalls which either have none or only int-type parameters. Signed-off-by: Helge Deller --- Changes in v3: fixed alarm() added epoll_create(), epoll_create1(), eventfd(), eventfd2() Changes in v2: fixed ioctl() diff --git a/linux-user/strace.list

[PATCH] linux-user: Improve strace output for read() and getcwd()

2019-11-21 Thread Helge Deller
2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\2bl\0\0\04"...,512) = 512 1708 getcwd("/usr/bin",4096) = 9 This patch adds just the framework with the respective implemenations for read() and getcwd(). If applied, more functions can be added easily later. Signed-off-by: Helge Deller dif

Re: [PATCH v2] linux-user/strace: Improve output of various syscalls

2019-11-21 Thread Helge Deller
t;>     On Thursday, November 21, 2019, Philippe Mathieu-Daudé >>     mailto:phi...@redhat.com> >>     <mailto:phi...@redhat.com <mailto:phi...@redhat.com>>> wrote: >> >>     On 11/21/19 9:19 AM, Helge Deller wrote: >> >>   

Re: [PATCH v4 0/6] HPPA: i82596, PS/2 and graphics emulation

2019-12-13 Thread Helge Deller
On 25.11.19 11:01, Richard Henderson wrote: > On 11/23/19 1:59 PM, Sven Schnelle wrote: >> On Sun, Nov 03, 2019 at 09:56:01PM +0100, Sven Schnelle wrote: >>> Hi, >>> >>> these series adds quite a lot to the HPPA emulation in QEMU: >>> i82596 emulation from Helge, PS/2 and Artist graphics

[PATCH v2] linux-user/strace: Add missing signal strings

2019-11-20 Thread Helge Deller
Add the textual representations of some missing target signals. Signed-off-by: Helge Deller diff --git a/linux-user/strace.c b/linux-user/strace.c index 3d4d684450..de43238fa4 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -146,6 +146,19 @@ print_signal(abi_ulong arg, int last

[PATCH v2] linux-user/strace: Improve output of various syscalls

2019-11-20 Thread Helge Deller
Improve strace output of various syscalls which either have none or only int-type parameters. Signed-off-by: Helge Deller diff --git a/linux-user/strace.list b/linux-user/strace.list index 1de4319dcf..add53b1734 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -26,7 +26,7

[PATCH] linux-user/strace: Add missing signal strings

2019-11-19 Thread Helge Deller
Add the textual representations of some missing target signals. Signed-off-by: Helge Deller diff --git a/linux-user/strace.c b/linux-user/strace.c index 3d4d684450..18b57a9ef9 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -146,6 +146,22 @@ print_signal(abi_ulong arg, int last

Re: [PATCH v2] linux-user/strace: Add missing signal strings

2019-11-21 Thread Helge Deller
On 21.11.19 19:43, Aleksandar Markovic wrote: > On Wed, Nov 20, 2019 at 3:57 PM Helge Deller wrote: >> >> Add the textual representations of some missing target signals. >> >> Signed-off-by: Helge Deller >> >> diff --git a/linux-user/strace.c b/linux-user/s

Re: [PATCH] linux-user: Improve strace output for read() and getcwd()

2019-11-25 Thread Helge Deller
On 25.11.19 14:46, Aleksandar Markovic wrote: > On Sun, Nov 24, 2019 at 2:31 PM Aleksandar Markovic > wrote: >> >> >> >> On Sunday, November 24, 2019, Helge Deller wrote: >>> >>> On 24.11.19 13:10, Aleksandar Markovic wrote: >>&

Re: [PATCH v2] linux-user/strace: Improve strace output for read() and getcwd()

2019-11-25 Thread Helge Deller
On 24.11.19 13:38, no-re...@patchew.org wrote: > Patchew URL: https://patchew.org/QEMU/20191124115656.ga23...@ls3530.fritz.box/ > ... > This series seems to have some coding style problems. See output below for > more information: > > Subject: [PATCH v2] linux-user/strace: Improve strace output

Re: [PATCH] linux-user/strace: Add missing signal strings

2019-11-19 Thread Helge Deller
On 19.11.19 20:56, Richard Henderson wrote: On 11/19/19 7:51 PM, Helge Deller wrote: Add the textual representations of some missing target signals. Signed-off-by: Helge Deller diff --git a/linux-user/strace.c b/linux-user/strace.c index 3d4d684450..18b57a9ef9 100644 --- a/linux-user

Re: [PATCH] linux-user/strace: Add missing signal strings

2019-11-19 Thread Helge Deller
On 19.11.19 21:06, Helge Deller wrote: On 19.11.19 20:56, Richard Henderson wrote: On 11/19/19 7:51 PM, Helge Deller wrote: Add the textual representations of some missing target signals. Signed-off-by: Helge Deller diff --git a/linux-user/strace.c b/linux-user/strace.c index 3d4d684450

[PATCH] linux-user/strace: Improve output of various syscalls

2019-11-19 Thread Helge Deller
Improve strace output of various syscalls which either have none or only int-type parameters. Signed-off-by: Helge Deller diff --git a/linux-user/strace.list b/linux-user/strace.list index 1de4319dcf..5163717087 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -26,7 +26,7

[PATCH v2] linux-user/strace: Improve strace output for read() and getcwd()

2019-11-24 Thread Helge Deller
2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\2bl\0\0\04"...,512) = 512 1708 getcwd("/usr/bin",4096) = 9 This patch adds just the framework with the respective implemenations for read() and getcwd(). If applied, more functions can be added easily later. Signed-off-by: Helge Deller

Re: [PATCH] linux-user: Improve strace output for read() and getcwd()

2019-11-24 Thread Helge Deller
On 23.11.19 12:34, Aleksandar Markovic wrote: > On Thursday, November 21, 2019, Helge Deller <mailto:del...@gmx.de>> wrote: > > The strace functionality in qemu-user lacks the possibility to trace > which real values get returned to pointers in userspace by syscalls

Re: [PATCH] linux-user: Improve strace output for read() and getcwd()

2019-11-24 Thread Helge Deller
On 24.11.19 13:10, Aleksandar Markovic wrote: > > > On Sunday, November 24, 2019, Helge Deller <mailto:del...@gmx.de>> wrote: > > On 23.11.19 12:34, Aleksandar Markovic wrote: > > On Thursday, November 21, 2019, Helge Deller <mailto:del...@gmx.de&g

Re: [PATCH 1/2] hppa: Do not enable artist graphics with -nographic option

2019-12-22 Thread Helge Deller
Hi Sven, On 22.12.19 09:39, Sven Schnelle wrote: > On Sat, Dec 21, 2019 at 11:24:02PM +0100, Helge Deller wrote: >> When qemu was started with the -nographic option, do not enable the >> artist graphic card emulation. > > Hmm, isn't '-nographic -vnc' a valid option that

[PATCH 1/2] hppa: Do not enable artist graphics with -nographic option

2019-12-21 Thread Helge Deller
When qemu was started with the -nographic option, do not enable the artist graphic card emulation. Signed-off-by: Helge Deller diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 9d0192c4fa..aea365bf46 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -127,7 +127,7 @@ static void

[PATCH 2/2] hppa: Switch to tulip NIC by default

2019-12-21 Thread Helge Deller
Most HP PA-RISC machines have a Digital DS21142/43 Tulip network card, only some very latest generation machines have an e1000 NIC. Since qemu now provides an emulated tulip card, use that one instead. Signed-off-by: Helge Deller diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index

Re: [PATCH v5 0/6] HPPA: i82596, PS/2 and graphics emulation

2019-12-21 Thread Helge Deller
* Sven Schnelle : > these series adds quite a lot to the HPPA emulation in QEMU: > i82596 emulation from Helge, PS/2 and Artist graphics emulation. > > See https://parisc.wiki.kernel.org/index.php/Qemu for a few screenshots > of QEMU running a X11/CDE session in HP-UX. Sadly those screenshots

Re: [PATCH v4 5/6] hppa: Add emulation of Artist graphics

2019-12-19 Thread Helge Deller
On 19.12.19 01:28, Richard Henderson wrote: > On 11/3/19 10:56 AM, Sven Schnelle wrote: >> This adds emulation of Artist graphics good enough >> to get a Text console on both Linux and HP-UX. The >> X11 server from HP-UX also works. >> >> Signed-off-by: Sven Schnelle >> --- >> hw/display/Kconfig

Re: [PATCH v4 5/6] hppa: Add emulation of Artist graphics

2019-12-20 Thread Helge Deller
On 20.12.19 08:26, Helge Deller wrote: > On 19.12.19 01:28, Richard Henderson wrote: >> On 11/3/19 10:56 AM, Sven Schnelle wrote: >>> This adds emulation of Artist graphics good enough >>> to get a Text console on both Linux and HP-UX. The >>> X11 server from

[PATCH] hw/artist: Reduce default artist screen size to 800x600 pixel

2020-03-02 Thread Helge Deller
Reduce the default emulated screen size to 800x600 pixel instead of 1280x1024 pixel. With the bigger screen size the emulated graphic card isn't fully visible on my laptop display, and if people want bigger sizes it's possible to define it on the command line. Signed-off-by: Helge Deller diff

Re: [PULL v3 02/11] hppa: Add support for LASI chip with i82596 NIC

2020-03-02 Thread Helge Deller
On 17.02.20 18:56, Peter Maydell wrote: > On Fri, 24 Jan 2020 at 23:20, Richard Henderson > wrote: >> >> From: Helge Deller >> >> LASI is a built-in multi-I/O chip which supports serial, parallel, >> network (Intel i82596 Apricot), sound and other functional

Re: [PULL v3 02/11] hppa: Add support for LASI chip with i82596 NIC

2020-03-02 Thread Helge Deller
* Peter Maydell : > On Mon, 2 Mar 2020 at 19:23, Helge Deller wrote: > > > > On 17.02.20 18:56, Peter Maydell wrote: > > > On Fri, 24 Jan 2020 at 23:20, Richard Henderson > > > wrote: > > >> > > >> From: Helge Deller > > &g

Re: [PATCH] hw/hppa/Kconfig: LASI chipset requires PARALLEL port

2020-01-29 Thread Helge Deller
t': > hw/hppa/lasi.c:324: undefined reference to `parallel_mm_init' > collect2: error: ld returned 1 exit status > make[1]: *** [Makefile:206: qemu-system-hppa] Error 1 > > Fixes: 376b851909d > Reported-by: Alex Bennée > Signed-off-by: Philippe Mathieu-Daudé Acked

Re: [PATCH] MAINTAINERS: Cover hppa-softmmu.mak in the HP-PARISC Machines section

2020-01-29 Thread Helge Deller
On 29.01.20 20:03, Philippe Mathieu-Daudé wrote: > Modifications to default-configs/hppa-softmmu.mak should be > reviewed by the hppa-softmmu users (currently a single machine). > > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller > --- > MAINTAINERS | 1 + &g

Re: [PATCH 1/4] hw/hppa/dino: Add comments with register name

2020-02-15 Thread Helge Deller
On 14.02.20 00:41, Philippe Mathieu-Daudé wrote: > Add a comment with the name of each register in the 0x800-0x833 range. > > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller > --- > hw/hppa/dino.c | 24 > 1 file changed, 12 insertion

Re: [PATCH 2/4] hw/hppa/dino: Fix reg800_keep_bits[] overrun (CID 1419393 & 1419394)

2020-02-15 Thread Helge Deller
On 14.02.20 00:41, Philippe Mathieu-Daudé wrote: > > Fixes: Covertiy CID 1419393 and 1419394 (commit 18092598a5) > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller > --- > hw/hppa/dino.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --g

Re: [RFC PATCH 3/4] hw/hppa/dino: Fix PCIROR register access bitmask

2020-02-15 Thread Helge Deller
On 14.02.20 00:41, Philippe Mathieu-Daudé wrote: > Only 24 bits of the PCIROR register are documented > (see pp. 37 of datasheet referenced in this file header). > > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller > --- > hw/hppa/dino.c | 2 +- > 1 file chang

Re: [RFC PATCH 4/4] hw/hppa/dino: Do not accept accesses to registers 0x818 and 0x82c

2020-02-15 Thread Helge Deller
On 14.02.20 00:41, Philippe Mathieu-Daudé wrote: > Register 0x818 is documented as 'undefined', and register > 0x82c is not documented. Refuse their access. > > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller > --- > hw/hppa/dino.c | 4 +++- > 1 file change

Re: [PATCH v2 0/3] hw/hppa/machine: Restrict the total memory size to 3GB

2020-01-08 Thread Helge Deller
machine: Map the PDC memory region with higher priority > > Reviewed-by: Richard Henderson Acked-by: Helge Deller

Re: [PATCH] target/hppa: Allow, but diagnose, LDCW aligned only mod 4

2020-01-17 Thread Helge Deller
On 17.01.20 20:23, Richard Henderson wrote: > On 1/17/20 8:50 AM, Philippe Mathieu-Daudé wrote: >> On Fri, Jan 17, 2020 at 2:53 AM Richard Henderson >> wrote: >>> >>> The PA-RISC 1.1 specification says that LDCW must be aligned mod 16 >>> or the operation is undefined. However, real hardware

Re: [PATCH] target/hppa: Allow, but diagnose, LDCW aligned only mod 4

2020-01-17 Thread Helge Deller
On 17.01.20 17:13, Philippe Mathieu-Daudé wrote: > On 1/17/20 4:49 PM, Helge Deller wrote: >> On 17.01.20 02:53, Richard Henderson wrote: >>> The PA-RISC 1.1 specification says that LDCW must be aligned mod 16 >>> or the operation is undefined.  However, r

Re: [PATCH] target/hppa: Allow, but diagnose, LDCW aligned only mod 4

2020-01-17 Thread Helge Deller
ith GUEST_ERROR a violation of the > specification. > > Reported-by: Helge Deller > Suggested-by: John David Anglin > Signed-off-by: Richard Henderson > > Helge, can you please test this against your failing kernel? > You will of course want to add -D logfile -d guest_errors

Re: [PATCH 1/3] hw/hppa/machine: Correctly check the firmware is in PDC range

2020-01-08 Thread Helge Deller
On 08.01.20 19:14, Philippe Mathieu-Daudé wrote: > The firmware has to reside in the PDC range. If the Elf file > expects to load it below FIRMWARE_START, it is incorrect, > regardless the RAM size. > > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller > --

Re: [PATCH 2/3] hw/hppa/machine: Do not limit the RAM to 3840MB

2020-01-08 Thread Helge Deller
On 08.01.20 19:14, Philippe Mathieu-Daudé wrote: > The hardware expects DIMM slots of 1 or 2 GB, allowing up to > 4 GB of memory. Accept the same amount of memory the hardware > can deal with. > > The CPU doesn't have access to the RAM mapped in the > [0xf000 - 0xf100] range because this

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Helge Deller
On 02.01.20 13:06, Philippe Mathieu-Daudé wrote: > On 1/2/20 12:31 PM, Helge Deller wrote: >> On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: >>> On 12/31/19 2:03 PM, Igor Mammedov wrote: >>>> If user provided non-sense RAM size, board will complain and >>&

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Helge Deller
3 +0100 >>>> Philippe Mathieu-Daudé wrote: >>>>    >>>>> On 1/2/20 12:31 PM, Helge Deller wrote: >>>>>> On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: >>>>>>> On 12/31/19 2:03 PM, Igor Mammedov wrote: >>>>>>>>

Re: [PATCH v2] hppa: allow max ram size upto 4Gb

2020-01-02 Thread Helge Deller
starting QEMU with valid CLI, > so for the sake of user convenience allow using -m 4G vs -m 3840M. > > Requested-by: Helge Deller > Signed-off-by: Igor Mammedov > --- > v2: > - make main ram -1 prio, so it wouldn't conflict with other regions > starting from 0xf900 &

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Helge Deller
On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: > On 12/31/19 2:03 PM, Igor Mammedov wrote: >> If user provided non-sense RAM size, board will complain and >> continue running with max RAM size supported. >> Also RAM is going to be allocated by generic code, so it won't be >> possible for board

Re: [PATCH v5 0/6] HPPA: i82596, PS/2 and graphics emulation

2019-12-29 Thread Helge Deller
n error in the PS/2 KBD_CMD_SET_MAKE_BREAK implementation >> >> Changes in v2: >> - dropped 'hppa: remove ISA region' as that patch requires some more work >> - added shortlog to seabios update >> - use const and MAKE_64BIT_MASK in dino.c >> >> Regards, >

Re: [PATCH v2] hppa: allow max ram size upto 4Gb

2020-01-06 Thread Helge Deller
On 06.01.20 11:48, Igor Mammedov wrote: > On Sat, 4 Jan 2020 16:00:19 +0100 > Philippe Mathieu-Daudé wrote: > >> On 1/3/20 10:54 AM, Igor Mammedov wrote: >>> On Thu, 2 Jan 2020 21:22:12 +0100 >>> Helge Deller wrote: >>> >>>> On 02.01.20

Re: [PATCH v2] hppa: allow max ram size upto 4Gb

2020-01-06 Thread Helge Deller
On 06.01.20 17:24, Igor Mammedov wrote: > On Mon, 6 Jan 2020 12:28:51 +0100 > Helge Deller wrote: > >> On 06.01.20 11:48, Igor Mammedov wrote: >>> On Sat, 4 Jan 2020 16:00:19 +0100 >>> Philippe Mathieu-Daudé wrote: >>> >>>> On 1/3/20 10:54 A

Re: [PATCH v2] hppa: allow max ram size upto 4Gb

2020-01-07 Thread Helge Deller
On 07.01.20 12:21, Igor Mammedov wrote: > On Mon, 6 Jan 2020 18:03:49 +0100 >> So, I'd suggest to drop your wrong patch #43. > As you noted in your first reply, patch is correct. You probably got me wrong. Your patch #43 is wrong, and your fixup patch to some degree reverts it back again. In

Re: [PATCH v5 5/6] hppa: Add emulation of Artist graphics

2019-12-27 Thread Helge Deller
On 24.12.19 01:18, Philippe Mathieu-Daudé wrote: > On 12/23/19 6:50 PM, Sven Schnelle wrote: >> Hi Philippe, >> >> On Sun, Dec 22, 2019 at 01:37:48PM +0100, Philippe Mathieu-Daudé wrote:   +    if (vga_interface_type != VGA_NONE) { +    dev = qdev_create(NULL, "artist"); +   

Re: [PATCH] linux-user: Drop unnecessary check in signalfd4 syscall

2020-04-25 Thread Helge Deller
On 25.04.20 12:03, Laurent Vivier wrote: > Le 25/04/2020 à 11:24, Helge Deller a écrit : >> On 25.04.20 10:39, Laurent Vivier wrote: >>> Le 24/04/2020 à 23:04, Helge Deller a écrit : >>>> The signalfd4() syscall takes optional O_NONBLOCK and O_CLOEXEC fcntl >>&

Re: [RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-24 Thread Helge Deller
ceive Process]. >> >> Cc: Li Qiang >> Cc: Li Qiang >> Cc: Ziming Zhang >> Cc: Jason Wang >> Cc: Prasad J Pandit >> Fixes: 8ffb7265af ("check frame size and r/w data length") >> Buglink: https://bugs.launchpad.net/bugs/1874539 >>

[Bug 1874539] Re: tulip driver broken in v5.0.0-rc4

2020-04-24 Thread Helge Deller
Attached trivial patch fixes it. ** Attachment added: "patch to fix tulip rx hangs" https://bugs.launchpad.net/qemu/+bug/1874539/+attachment/5359564/+files/p2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [RFC PATCH 0/3] hw/net/tulip: Fix LP#1874539

2020-04-24 Thread Helge Deller
ported by me, the patch below does fix the issue. [PATCH] Fix tulip rx hang Cc: Prasad J Pandit Fixes: 8ffb7265af ("check frame size and r/w data length") Buglink: https://bugs.launchpad.net/bugs/1874539 Signed-off-by: Helge Deller Commit 8ffb7265af ("check frame size and r/w data l

[PATCH v2] Fix tulip breakage

2020-04-26 Thread Helge Deller
ugs.launchpad.net/bugs/1874539 Signed-off-by: Helge Deller --- changes v2 to v1: - renamed patch title - rephrased commit message - no changes to patch itself diff --git a/hw/net/tulip.c b/hw/net/tulip.c index 1295f51d07..59d21defcc 100644 --- a/hw/net/tulip.c +++ b/hw/net/tulip.c @

[PATCH] linux-user: Drop unnecessary check in dup3 syscall

2020-04-24 Thread Helge Deller
Drop the extra check in dup3() if anything other than FD_CLOEXEC (aka O_CLOEXEC) was given. Instead simply rely on any error codes returned by the host dup3() syscall. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 05f03919ff..ebf0d38321 100644

[PATCH] linux-user: Add support for /proc/cpuinfo on hppa platform

2020-04-24 Thread Helge Deller
Provide an own /proc/cpuinfo file for the hppa (parisc) platform. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 05f03919ff..ebf0d38321 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7438,6 +7435,18 @@ static int open_cpuinfo(void

[PATCH] linux-user: return target error codes for socket() and prctl()

2020-04-24 Thread Helge Deller
Return target error codes instead of host error codes. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 05f03919ff..655a86fa45 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2987,7 +2987,7 @@ static abi_long do_socket(int domain, int

[PATCH] linux-user: Drop open-coded fcntl flags conversion in eventfd2 syscall

2020-04-24 Thread Helge Deller
Drop the open-coded fcntl flags conversion in the eventfd2 syscall and replace it with the built-in conversion with fcntl_flags_tbl. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 05f03919ff..ebf0d38321 100644 --- a/linux-user/syscall.c +++ b/linux

[PATCH] linux-user: Drop unnecessary check in signalfd4 syscall

2020-04-24 Thread Helge Deller
The signalfd4() syscall takes optional O_NONBLOCK and O_CLOEXEC fcntl flags. If the user gave any other invalid flags, the host syscall will return correct error codes, so simply drop the extra check here. Signed-off-by: Helge Deller diff --git a/linux-user/syscall.c b/linux-user/syscall.c

Re: [PATCH] linux-user: Drop unnecessary check in dup3 syscall

2020-04-24 Thread Helge Deller
On 24.04.20 23:32, Eric Blake wrote: > On 4/24/20 3:57 PM, Helge Deller wrote: >> Drop the extra check in dup3() if anything other than FD_CLOEXEC (aka >> O_CLOEXEC) was given. Instead simply rely on any error codes returned by >> the host dup3() syscall. >> >

Re: [PATCH] linux-user: Drop unnecessary check in signalfd4 syscall

2020-04-25 Thread Helge Deller
On 25.04.20 10:39, Laurent Vivier wrote: > Le 24/04/2020 à 23:04, Helge Deller a écrit : >> The signalfd4() syscall takes optional O_NONBLOCK and O_CLOEXEC fcntl >> flags. If the user gave any other invalid flags, the host syscall will >> return correct error codes, so simply

[Bug 1874539] [NEW] tulip driver broken in v5.0.0-rc4

2020-04-23 Thread Helge Deller
Public bug reported: In a qemu-system-hppa system, qemu release v5.0.0-rc, the tulip nic driver is broken. The tulip nic is detected, even getting DHCP info does work. But when trying to download bigger files via network, the tulip driver gets stuck. For example when trying to download a 100MB

Re: [PATCH] hw/net/i82596.c: Avoid reading off end of buffer in i82596_receive()

2020-03-17 Thread Helge Deller
On 17.03.20 07:13, Jason Wang wrote: > > On 2020/3/13 上午4:16, Peter Maydell wrote: >> The i82596_receive() function attempts to pass the guest a buffer >> which is effectively the concatenation of the data it is passed and a >> 4 byte CRC value.  However, rather than implementing this as "write

[Bug 1880287] [NEW] gcc crashes in hppa emulation

2020-05-23 Thread Helge Deller
Public bug reported: There seems to be a translation bug in the qemu-hppa (qemu v5.0.0) emulation: A stripped down testcase (taken from Linux kernel build) is attached. In there is "a.sh", a shell script which calls gcc-9 (fails with both debian gcc-9.3.0-11 or gcc-9.3.0-12). and "a.iii", the

[PULL 00/10] hppa power button support, graphics updates and firmware fixes

2020-09-03 Thread Helge Deller
) Helge Deller (10): seabios-hppa: Update SeaBIOS to hppa-qemu-5.2-2 tag hw/hppa: Make number of TLB and BTLB entries configurable hw/hppa: Store boot device in fw_cfg section hw/hppa: Change fw_cfg port address hw/hppa: Tell SeaBIOS port address of fw_cfg hw/hppa: Add power button emulation

[PULL 09/10] hw/display/artist: Refactor x/y coordination extraction

2020-09-03 Thread Helge Deller
move this code up into the function. ADDR_TO_Y() is still limited to 10 bits which allow to address up to of 1024 lines - this will be increased in a follow-up patch. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- hw/display/artist.c | 31 +-- 1 file

[PULL 05/10] hw/hppa: Tell SeaBIOS port address of fw_cfg

2020-09-03 Thread Helge Deller
Change QEMU_FW_CFG_IO_BASE to shorter variant FW_CFG_IO_BASE and hand over the actual port address in %r19 to SeaBIOS. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- hw/hppa/hppa_hardware.h | 2 +- hw/hppa/machine.c | 7 ++- 2 files changed, 7 insertions(+), 2

[PULL 07/10] target/hppa: Fix boot with old Linux installation CDs

2020-09-03 Thread Helge Deller
patibility to really existing hardware and seem to not create problems if we add real PA2.0 support anytime later. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/insns.decode | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/hppa/insn

[PULL 06/10] hw/hppa: Add power button emulation

2020-09-03 Thread Helge Deller
Emulate a power button switch, tell SeaBIOS the address via fw_cfg and bind the power button to the qemu UI. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- hw/hppa/machine.c | 32 1 file changed, 32 insertions(+) diff --git a/hw/hppa/machine.c

  1   2   3   4   5   6   7   8   >