Re: [PATCH] pc-bios: ensure installed ROMs don't have execute permissions

2025-05-31 Thread Helge Deller
analysed by various tools/linters, which can trip up on the ROMs. Tell meson explicitly that all the ROMs should be without execute permission when installed. Signed-off-by: Daniel P. Berrangé Reviewed-by: Helge Deller Tested-by: Helge Deller Thanks! Helge --- pc-bios/meson.build | 2

Re: [PATCH 0/3] target/hppa: Fix FP exception handling

2025-05-24 Thread Helge Deller
On 5/24/25 12:26, Michael Tokarev wrote: On 17.05.2025 15:00, del...@kernel.org wrote: From: Helge Deller This series fixes and improves the floating point exception handling in the hppa system and user emulation. A testcase is included in patch #3. Please review. Thanks! Helge Helge

Re: [PATCH] roms: re-remove execute bit from hppa-firmware*

2025-05-24 Thread Helge Deller
64.img Reviewed-by: Daniel P. Berrangé Acked-by: Helge Deller Though given the back & forth, I wonder if we wouldn't be better off changing meson.build rules instead to mode 0644 for all blobs ? install_data(blobs, install_dir: qemu_datadir, ins

[PULL 1/3] target/hppa: Copy instruction code into fr1 on FPU assist fault

2025-05-22 Thread deller
From: Helge Deller The hardware stores the instruction code in the lower bits of the FP exception register #1 on FP assist traps. This fixes the FP exception handler on Linux, as the Linux kernel uses the value to decide on the correct signal which should be pushed into userspace (see decode_fpu

[PULL 0/3] HPPA FPE fixup patches

2025-05-22 Thread deller
From: Helge Deller The following changes since commit 7c949c53e936aa3a658d84ab53bae5cadaa5d59c: Update version for the v10.0.0 release (2025-04-22 09:32:33 -0400) are available in the Git repository at: https://github.com/hdeller/qemu-hppa.git tags/hppa-fpe-fixup-pull-request for you to

[PULL 3/3] target/hppa: Fix FPE exceptions

2025-05-22 Thread deller
From: Helge Deller Implement FP exception register #1 (lower 32-bits of 64-bit fr[0]). A proper implementation is necessary to allow the Linux kernel in system mode and the qemu linux-user to send proper si_code values on SIGFPE signal. Always set the T-bit on taken exception, and merge over

[PULL 2/3] linux-user/hppa: Send proper si_code on SIGFPE exception

2025-05-22 Thread deller
From: Helge Deller Improve the linux-user emulation to send the correct si_code depending on overflow (TARGET_FPE_FLTOVF), underflow (TARGET_FPE_FLTUND), ... Note that the hardware stores the relevant flags in FP exception register #1, which is actually the lower 32-bits of the 64-bit fr[0

[PATCH 1/3] target/hppa: Copy instruction code into fr1 on FPU assist fault

2025-05-17 Thread deller
From: Helge Deller The hardware stores the instruction code in the lower bits of the FP exception register #1 on FP assist traps. This fixes the FP exception handler on Linux, as the Linux kernel uses the value to decide on the correct signal which should be pushed into userspace (see decode_fpu

[PATCH 3/3] target/hppa: Fix FPE exceptions

2025-05-17 Thread deller
From: Helge Deller Implement FP exception register #1 (lower 32-bits of 64-bit fr[0]). A proper implementation is necessary to allow the Linux kernel in system mode and the qemu linux-user to send proper si_code values on SIGFPE signal. Always set the T-bit on taken exception, and merge over

[PATCH 0/3] target/hppa: Fix FP exception handling

2025-05-17 Thread deller
From: Helge Deller This series fixes and improves the floating point exception handling in the hppa system and user emulation. A testcase is included in patch #3. Please review. Thanks! Helge Helge Deller (3): target/hppa: Copy instruction code into fr1 on FPU assist fault linux-user/hppa

[PATCH 2/3] linux-user/hppa: Send proper si_code on SIGFPE exception

2025-05-17 Thread deller
From: Helge Deller Improve the linux-user emulation to send the correct si_code depending on overflow (TARGET_FPE_FLTOVF), underflow (TARGET_FPE_FLTUND), ... Note that the hardware stores the relevant flags in FP exception register #1, which is actually the lower 32-bits of the 64-bit fr[0

Re: [PATCH v5 00/24] target/m68k: fpu improvements

2025-05-07 Thread Helge Deller
On 5/7/25 23:12, Richard Henderson wrote: v3: https://lore.kernel.org/qemu-devel/20240909172823.649837-1-richard.hender...@linaro.org/ v4: https://lore.kernel.org/qemu-devel/20250224171444.440135-1-richard.hender...@linaro.org/ Changes for v5: - Rebase from February. :-/ - Use ldl_be_p

Re: [PATCH v2] hw/char/serial: Remove unused prog_if compat property

2025-05-02 Thread Helge Deller
Mathieu-Daudé --- v2: Reword commit message, add Rb tag hw/char/diva-gsp.c | 6 ++ hw/char/serial-pci-multi.c | 7 ++- hw/char/serial-pci.c | 10 ++ 3 files changed, 6 insertions(+), 17 deletions(-) Reviewed-by: Helge Deller Helge

Re: Generic way to detect qemu linux-user emulation

2025-03-18 Thread Helge Deller
On 3/18/25 11:18, Andreas Schwab wrote: Is there a generic way for a program to detect that is it being run inside the linux-user emulation? Yes, having a reliable way to detect it would be good. My current (unreliable) way to detect it is using uname. The kernel string and arch name don't mat

Re: Generic way to detect qemu linux-user emulation

2025-03-18 Thread Helge Deller
On 3/18/25 11:36, Helge Deller wrote: On 3/18/25 11:18, Andreas Schwab wrote: Is there a generic way for a program to detect that is it being run inside the linux-user emulation? Yes, having a reliable way to detect it would be good. In qemu-user emulation we could change the return values

[PULL 4/6] hw/hppa: Avoid creation of artist if disabled on command line

2025-02-07 Thread deller
From: Helge Deller Do not create the artist graphic card if the user disabled it with "-global artist.disable=true" on the command line. Signed-off-by: Helge Deller --- hw/hppa/machine.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/hppa/mach

[PULL 5/6] hw/pci-host/astro: Add LMMIO range support

2025-02-07 Thread deller
From: Helge Deller Each Astro on 64-bit machines supports up to four LMMIO regions. Those regions are used by graphic cards and other PCI devices which need to map huge memory areas. The LMMIO regions are configured and set up by SeaBIOS-hppa and then used as-is by the operating systems (Linux

[PULL 0/6] Hppa system for v10 diva artist patches

2025-02-07 Thread deller
From: Helge Deller The following changes since commit 6fccaa2fba391815308a746d68f7fa197bc93586: Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging (2025-02-02 11:09:10 -0500) are available in the Git repository at: https://github.com/hdeller/qem

[PULL 3/6] artist: Allow disabling artist on command line

2025-02-07 Thread deller
From: Helge Deller Allow users to disable the artist graphic card on the command line with the option "-global artist.disable=true". This change allows to use other graphic cards when using Linux, e.g. by adding "-device ati-vga". Signed-off-by: Helge Deller --- hw/

[PULL 6/6] target/hppa: Update SeaBIOS-hppa

2025-02-07 Thread deller
From: Helge Deller Update to lastest SeaBIOS-hppa which sets up the LMMIO range for the internal artist graphic card. Signed-off-by: Helge Deller --- roms/seabios-hppa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/seabios-hppa b/roms/seabios-hppa index 1c516b4813

[PULL 2/6] hw/hppa: Wire up Diva GSP card

2025-02-07 Thread deller
From: Helge Deller Until now we used a standard serial-pci device to emulate a HP serial console. This worked nicely with 32-bit Linux and 32-bit HP-UX, but 64-bit HP-UX crashes with it and expects either a Diva GSP card, or a real 64-bit capable PCI graphic card (which we don't have yet

[PULL 1/6] hw/char: Add emulation of Diva GSP PCI management boards

2025-02-07 Thread deller
From: Helge Deller The Diva GSP ("Guardian Service Processor") PCI boards are Remote Management cards for PA-RISC machines. They come with built-in 16550A UARTs for serial consoles and modem functionalities, as well as a mailbox-like memory area for hardware auto-reboot functionalit

Re: Call for GSoC internship project ideas

2025-02-07 Thread Helge Deller
On 2/7/25 15:47, Stefan Hajnoczi wrote: On Fri, Feb 7, 2025 at 9:39 AM Helge Deller wrote: Hi Stefan, On 1/28/25 17:16, Stefan Hajnoczi wrote: How to propose your idea -- Reply to this email with the following project idea template filled in: Would something

Re: Call for GSoC internship project ideas

2025-02-07 Thread Helge Deller
Hi Stefan, On 1/28/25 17:16, Stefan Hajnoczi wrote: How to propose your idea -- Reply to this email with the following project idea template filled in: Would something like this be acceptable? === Develop a driver to emulate an existing network-, scsi- or graphic-

[PATCH 3/6] artist: Allow disabling artist on command line

2025-02-04 Thread deller
From: Helge Deller Allow users to disable the artist graphic card on the command line with the option "-global artist.disable=true". This change allows to use other graphic cards when using Linux, e.g. by adding "-device ati-vga". Signed-off-by: Helge Deller --- hw/

[PATCH 2/6] hw/hppa: Wire up Diva GSP card

2025-02-04 Thread deller
From: Helge Deller Until now we used a standard serial-pci device to emulate a HP serial console. This worked nicely with 32-bit Linux and 32-bit HP-UX, but 64-bit HP-UX crashes with it and expects either a Diva GSP card, or a real 64-bit capable PCI graphic card (which we don't have yet

[PATCH 6/6] target/hppa: Update SeaBIOS-hppa

2025-02-04 Thread deller
From: Helge Deller Update to lastest SeaBIOS-hppa which sets up the LMMIO range for the internal artist graphic card. Signed-off-by: Helge Deller --- roms/seabios-hppa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/seabios-hppa b/roms/seabios-hppa index 1c516b4813

[PATCH 0/6] HPPA graphics and serial console enhancements

2025-02-04 Thread deller
From: Helge Deller A small series of patches which enhances the graphics output on 64-bit hppa machines. Allows to disable the artist graphic card and introduces drivers for the Diva GSP (remote management) cards which are used in later 64-bit machines and which we now use for serial console

[PATCH 5/6] hw/pci-host/astro: Add LMMIO range support

2025-02-04 Thread deller
From: Helge Deller Each Astro on 64-bit machines supports up to four LMMIO regions. Those regions are used by graphic cards and other PCI devices which need to map huge memory areas. The LMMIO regions are configured and set up by SeaBIOS-hppa and then used as-is by the operating systems (Linux

[PATCH 1/6] hw/char: Add emulation of Diva GSP PCI management boards

2025-02-04 Thread deller
From: Helge Deller The Diva GSP ("Guardian Service Processor") PCI boards are Remote Management cards for PA-RISC machines. They come with built-in 16550A UARTs for serial consoles and modem functionalities, as well as a mailbox-like memory area for hardware auto-reboot functionalit

[PATCH 4/6] hw/hppa: Avoid creation of artist if disabled on command line

2025-02-04 Thread deller
From: Helge Deller Do not create the artist graphic card if the user disabled it with "-global artist.disable=true" on the command line. Signed-off-by: Helge Deller --- hw/hppa/machine.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/hppa/mach

Re: [PATCH] MAINTAINERS: Add myself as HPPA maintainer

2025-01-31 Thread Helge Deller
On 1/31/25 19:15, Philippe Mathieu-Daudé wrote: On 28/1/25 18:09, del...@kernel.org wrote: From: Helge Deller Since I contribute quite some code to hppa, I'd like to step up and become the secondary maintainer for HPPA beside Richard. Additionally change status of hppa machines to maint

[PULL v2 8/9] target/hppa: Implement space register hashing for 64-bit HP-UX

2025-01-31 Thread deller
From: Helge Deller The Linux kernel turns space-register hashing off unconditionally at bootup. That code was provided by HP at the beginning of the PA-RISC Linux porting effort, and I don't know why it was decided then why Linux should not use space register hashing. 32-bit HP-UX versions

[PULL v2 2/9] hppa: Sync contents of hppa_hardware.h header file with SeaBIOS-hppa

2025-01-31 Thread deller
From: Helge Deller The hppa_hardware.h header file holds many constants for addresses and offsets which are needed while building the firmware (SeaBIOS-hppa) and while setting up the virtual machine in QEMU. This patch brings it in sync between both source code repositories. Signed-off-by

[PULL v2 0/9] Hppa system mfdiag for v10 patches

2025-01-31 Thread deller
From: Helge Deller The following changes since commit 7faf9d2f12ace4c1d04cf1a2b39334eef9a45f22: Merge tag 'pull-aspeed-20250127' of https://github.com/legoater/qemu into staging (2025-01-27 11:20:35 -0500) are available in the Git repository at: https://github.com/hdeller/qem

[PULL v2 4/9] target/hppa: Add CPU diagnose registers

2025-01-31 Thread deller
From: Helge Deller Add the diagnose registers (%dr) to the CPUArchState. Those are mostly undocumented and control cache behaviour, memory behaviour, reset button management and many other related internal CPU things. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa

[PULL v2 5/9] target/hppa: Drop diag_getshadowregs_pa2 and diag_putshadowregs_pa2

2025-01-31 Thread deller
From: Helge Deller diag_getshadowregs_pa2() and diag_putshadowregs_pa2() were added in commit 3bdf20819e68 based on some analysis of ODE code, but now they conflict with the generic mfdiag/mtdiag instructions. I believe the former analysis was wrong, so remove them again. Note that all diag

[PULL v2 6/9] target/hppa: Add instruction decoding for mfdiag and mtdiag

2025-01-31 Thread deller
From: Helge Deller Add 32- and 64-bit instruction decoding of the mfdiag and mtdiag instructions which modify the diagnose registers. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/insns.decode | 4 target/hppa/translate.c | 20 2 files

[PULL v2 3/9] disas/hppa: implement mfdiag/mtdiag disassembly

2025-01-31 Thread deller
From: Helge Deller The various PA-RISC CPUs implement different CPU-specific diag instructions (mfdiag, mtdiag, mfcpu, mtcpu, ...) to access CPU-internal diagnose/configuration registers, e.g. for cache control, managing space register hashing, control front panel LEDs and read status of the

[PULL v2 1/9] MAINTAINERS: Add myself as HPPA maintainer

2025-01-31 Thread deller
From: Helge Deller Since I contribute quite some code to hppa, I'd like to step up and become the secondary maintainer for HPPA beside Richard. Additionally change status of hppa machines to maintained as I will take care of them. Signed-off-by: Helge Deller Reviewed-by: Philippe Mathieu-

[PULL v2 7/9] target/hppa: 64-bit CPUs start with space register hashing enabled

2025-01-31 Thread deller
From: Helge Deller Turn on space register hashing for 64-bit CPUs when reset. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/cpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index b0bc9d35e4..c86f9190d2 100644

Re: [PULL 8/9] target/hppa: Implement space register hashing for 64-bit HP-UX

2025-01-31 Thread Helge Deller
On 1/30/25 20:06, Michael Tokarev wrote: 30.01.2025 16:29, del...@kernel.org wrote: diff --git a/target/hppa/translate.c b/target/hppa/translate.c +    if (ctx->is_pa20 && (a->dr == 2)) { +    /* Update gva_offset_mask from the new value of %dr2 */ +    gen_helper_update_gva_offset_m

[PULL 6/9] target/hppa: Add instruction decoding for mfdiag and mtdiag

2025-01-30 Thread deller
From: Helge Deller Add 32- and 64-bit instruction decoding of the mfdiag and mtdiag instructions which modify the diagnose registers. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/insns.decode | 4 target/hppa/translate.c | 20 2 files

[PULL 2/9] hppa: Sync contents of hppa_hardware.h header file with SeaBIOS-hppa

2025-01-30 Thread deller
From: Helge Deller The hppa_hardware.h header file holds many constants for addresses and offsets which are needed while building the firmware (SeaBIOS-hppa) and while setting up the virtual machine in QEMU. This patch brings it in sync between both source code repositories. Signed-off-by

[PULL 8/9] target/hppa: Implement space register hashing for 64-bit HP-UX

2025-01-30 Thread deller
From: Helge Deller The Linux kernel turns space-register hashing off unconditionally at bootup. That code was provided by HP at the beginning of the PA-RISC Linux porting effort, and I don't know why it was decided then why Linux should not use space register hashing. 32-bit HP-UX versions

[PULL 3/9] disas/hppa: implement mfdiag/mtdiag disassembly

2025-01-30 Thread deller
From: Helge Deller The various PA-RISC CPUs implement different CPU-specific diag instructions (mfdiag, mtdiag, mfcpu, mtcpu, ...) to access CPU-internal diagnose/configuration registers, e.g. for cache control, managing space register hashing, control front panel LEDs and read status of the

[PULL 5/9] target/hppa: Drop diag_getshadowregs_pa2 and diag_putshadowregs_pa2

2025-01-30 Thread deller
From: Helge Deller diag_getshadowregs_pa2() and diag_putshadowregs_pa2() were added in commit 3bdf20819e68 based on some analysis of ODE code, but now they conflict with the generic mfdiag/mtdiag instructions. I believe the former analysis was wrong, so remove them again. Note that all diag

[PULL 0/9] Hppa system mfdiag for v10 patches

2025-01-30 Thread deller
From: Helge Deller The following changes since commit 7faf9d2f12ace4c1d04cf1a2b39334eef9a45f22: Merge tag 'pull-aspeed-20250127' of https://github.com/legoater/qemu into staging (2025-01-27 11:20:35 -0500) are available in the Git repository at: https://github.com/hdeller/qem

[PULL 7/9] target/hppa: 64-bit CPUs start with space register hashing enabled

2025-01-30 Thread deller
From: Helge Deller Turn on space register hashing for 64-bit CPUs when reset. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/cpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index b0bc9d35e4..c86f9190d2 100644

[PULL 4/9] target/hppa: Add CPU diagnose registers

2025-01-30 Thread deller
From: Helge Deller Add the diagnose registers (%dr) to the CPUArchState. Those are mostly undocumented and control cache behaviour, memory behaviour, reset button management and many other related internal CPU things. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa

[PULL 1/9] MAINTAINERS: Add myself as HPPA maintainer

2025-01-30 Thread deller
From: Helge Deller Since I contribute quite some code to hppa, I'd like to step up and become the secondary maintainer for HPPA beside Richard. Additionally change status of hppa machines to maintained as I will take care of them. Signed-off-by: Helge Deller Reviewed-by: Philippe Mathieu-

Re: [PATCH 4/4] target/hppa: Implement space register hashing for 64-bit HP-UX

2025-01-29 Thread Helge Deller
ariable in CPUArchState and recalculated at every modification of the CPU PSW or %dr2. Signed-off-by: Helge Deller Suggested-by: Richard Henderson Suggested-by: Sven Schnelle diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index c86f9190d2..5655677431 100644 --- a/target/hppa/cpu.c +++ b/target/

Re: [PATCH 4/4] target/hppa: Implement space register hashing for 64-bit HP-UX

2025-01-28 Thread Helge Deller
* Richard Henderson : > On 1/28/25 17:52, Richard Henderson wrote: > > On 1/28/25 14:45, del...@kernel.org wrote: > > > +    if (ctx->is_pa20 && (a->dr == 2)) { > > > +    /* Exit TB to recalculate gva_offset_mask on %dr2 */ > > > +    ctx->base.is_jmp = DISAS_IAQ_N_STALE_EXIT; > > > +    }

[PATCH v2] target/hppa: Implement CPU diagnose registers for 64-bit HP-UX

2025-01-28 Thread deller
This series of 4 patches incorporates the changes as suggested by Richard regarding PATCH #3 from my previous series. Please review. Helge

[PATCH 1/4] target/hppa: Add CPU diagnose registers

2025-01-28 Thread deller
From: Helge Deller Add the diagnose registers (%dr) to the CPUArchState. Those are mostly undocumented and control cache behaviour, memory behaviour, reset button management and many other related internal CPU things. Signed-off-by: Helge Deller --- target/hppa/cpu.h | 1 + target/hppa

[PATCH 3/4] target/hppa: 64-bit CPUs start with space register hashing enabled

2025-01-28 Thread deller
From: Helge Deller Turn on space register hashing for 64-bit CPUs when reset. Signed-off-by: Helge Deller --- target/hppa/cpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index b0bc9d35e4..c86f9190d2 100644 --- a/target/hppa/cpu.c +++ b

[PATCH 4/4] target/hppa: Implement space register hashing for 64-bit HP-UX

2025-01-28 Thread deller
From: Helge Deller The Linux kernel turns space-register hashing off unconditionally at bootup. That code was provided by HP at the beginning of the PA-RISC Linux porting effort, and I don't know why it was decided then why Linux should not use space register hashing. 32-bit HP-UX versions

[PATCH 2/4] target/hppa: Add instruction decoding for mfdiag and mtdiag

2025-01-28 Thread deller
From: Helge Deller Add 32- and 64-bit instruction decoding of the mfdiag and mtdiag instructions which modify the diagnose registers. diag_getshadowregs_pa2() and diag_putshadowregs_pa2() were added in commit 3bdf20819e68 based on some analysis of ODE code, but now they conflict with the

Re: [PATCH 3/5] target/hppa: Implement CPU diagnose registers for 64-bit HP-UX

2025-01-28 Thread Helge Deller
On 1/28/25 19:19, Richard Henderson wrote: On 1/28/25 08:14, del...@kernel.org wrote: From: Helge Deller PA-RISC CPUs have diagnose registers (%dr). Those are mostly undocumented and control cache behaviour, memory behaviour, reset button management and many other related internal CPU things

[PATCH] MAINTAINERS: Add myself as HPPA maintainer

2025-01-28 Thread deller
From: Helge Deller Since I contribute quite some code to hppa, I'd like to step up and become the secondary maintainer for HPPA beside Richard. Additionally change status of hppa machines to maintained as I will take care of them. Signed-off-by: Helge Deller --- MAINTAINERS | 5 +++-- 1

[PATCH 2/5] disas/hppa: implement mfdiag/mtdiag disassembly

2025-01-28 Thread deller
From: Helge Deller The various PA-RISC CPUs implement different CPU-specific diag instructions (mfdiag, mtdiag, mfcpu, mtcpu, ...) to access CPU-internal diagnose/configuration registers, e.g. for cache control, managing space register hashing, control front panel LEDs and read status of the

[PATCH 5/5] hw/hppa: Wire up Diva GSP card

2025-01-28 Thread deller
From: Helge Deller Until now we used a standard serial-pci device to emulate a HP serial console. This worked nicely with 32-bit Linux and 32-bit HP-UX, but 64-bit HP-UX crashes with it and expects either a Diva GSP card, or a real 64-bit capable PCI graphic card (which we don't have yet

[PATCH 1/5] hppa: Sync contents of hppa_hardware.h header file with SeaBIOS-hppa

2025-01-28 Thread deller
From: Helge Deller The hppa_hardware.h header file holds many constants for addresses and offsets which are needed while building the firmware (SeaBIOS-hppa) and while setting up the virtual machine in QEMU. This patch brings it in sync between both source code repositories. Signed-off-by

[PATCH 4/5] hw/char: Add emulation of Diva GSP PCI management boards

2025-01-28 Thread deller
From: Helge Deller The Diva GSP ("Guardian Service Processor") PCI boards are Remote Management cards for PA-RISC machines. They come with built-in 16550A UARTs for serial consoles and modem functionalities, as well as a mailbox-like memory area for hardware auto-reboot functionalit

[PATCH 3/5] target/hppa: Implement CPU diagnose registers for 64-bit HP-UX

2025-01-28 Thread deller
From: Helge Deller PA-RISC CPUs have diagnose registers (%dr). Those are mostly undocumented and control cache behaviour, memory behaviour, reset button management and many other related internal CPU things. The Linux kernel turns space-register hashing off unconditionally at bootup. That code

[PATCH 0/5] hppa 64-bit improvements

2025-01-28 Thread deller
From: Helge Deller The 64-bit hppa qemu emulation still fails to boot 64-bit HP-UX. This patch series improves the emulation a lot, since it enables us to boot 64-bit HP-UX installer silently up until an endless loop where the machine reports that it's up an running (it crashed before).

[PULL 0/2] Hppa system for v10 patches

2025-01-24 Thread deller
From: Helge Deller The following changes since commit 32a97c5d05c5deb54a42315d48cecf86cbeadaf4: Merge tag 'pull-tcg-20250117' of https://gitlab.com/rth7680/qemu into staging (2025-01-21 08:28:33 -0500) are available in the Git repository at: https://github.com/hdeller/qemu-hpp

[PULL 2/2] hw/hppa: Fix booting Linux kernel with initrd

2025-01-24 Thread deller
From: Helge Deller Commit 20f7b890173b ("hw/hppa: Reset vCPUs calling resettable_reset()") broke booting the Linux kernel with initrd which may have been provided on the command line. The problem is, that the mentioned commit zeroes out initial registers which were preset with address

[PULL 1/2] hw/hppa: Support up to 256 GiB RAM on 64-bit machines

2025-01-24 Thread deller
From: Helge Deller Allow up to 256 GB RAM, which is the maximum a rp8440 machine (the very last 64-bit PA-RISC machine) physically supports. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- hw/hppa/hppa_hardware.h | 2 ++ hw/hppa/machine.c | 26

Re: [PATCH 1/2] hw/hppa: Support up to 256 GiB RAM on 64-bit machines

2025-01-24 Thread Helge Deller
On 1/24/25 18:52, Philippe Mathieu-Daudé wrote: On 22/1/25 19:09, del...@kernel.org wrote: From: Helge Deller Allow up to 256 GB RAM, which is the maximum a rp8440 machine (the very last 64-bit PA-RISC machine) physically supports. Signed-off-by: Helge Deller ---   hw/hppa/hppa_hardware.h

[PULL v3 3/6] linux-user: netlink: Add IP_PKTINFO cmsg parsing

2025-01-24 Thread deller
From: Helge Deller Fixes those warnings: Unsupported host ancillary data: 0/8 Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 10 ++ linux-user/syscall_defs.h | 6 ++ 2 files changed, 16 insertions(+) diff --git a/linux-user/syscall.c b

[PULL v3 2/6] linux-user: Use unique error messages for cmsg parsing

2025-01-24 Thread deller
From: Helge Deller Avoid using the same error message for two different code paths as it complicates determining the one which actually triggered. Signed-off-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 4 ++-- 1 file changed, 2

[PULL v3 1/6] linux-user: netlink: Add missing IFA_PROTO to host_to_target_data_addr_rtattr()

2025-01-24 Thread deller
From: Helge Deller Fix this warning: Unknown host IFA type: 11 While adding IFA_PROTO, convert all IFA_XXX values over to QEMU_IFA_XXX values to avoid a build failure on Ubuntu 22.04 (kernel v5.18 which does not know IFA_PROTO yet). Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier

[PULL v3 5/6] linux-user: netlink: add netlink neighbour emulation

2025-01-24 Thread deller
From: Helge Deller Fixes various warnings in the testsuite while building gupnp: gssdp-net-DEBUG: Failed to send netlink message: Operation not supported gupnp-context-DEBUG: Mismatch between host header and host IP (example.com, expected: 127.0.0.1) gupnp-context-DEBUG: Mismatch between

[PULL v3 6/6] linux-user: netlink: Add missing QEMU_IFLA entries

2025-01-24 Thread deller
From: Helge Deller This fixes the following qemu warnings when building debian gupnp package: Unknown host QEMU_IFLA type: 61 Unknown host QEMU_IFLA type: 58 Unknown host QEMU_IFLA type: 59 Unknown host QEMU_IFLA type: 60 Unknown host QEMU_IFLA type: 32820 QEMU_IFLA type 32820 is actually

[PULL v3 4/6] linux-user: netlink: Add emulation of IP_MULTICAST_IF

2025-01-24 Thread deller
From: Helge Deller Add IP_MULTICAST_IF and share the code with IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP. Sharing the code makes sense, because the manpage of ip(7) says: IP_MULTICAST_IF (since Linux 1.2) Set the local device for a multicast socket. The argument for setsockopt(2) is

[PULL v3 0/6] Linux user fix gupnp patches

2025-01-24 Thread deller
From: Helge Deller The following changes since commit 0e3aff9ec34059512d597eacfcf4d1b5d4570c50: Merge tag 'pull-10.0-gdb-plugins-doc-updates-170125-1' of https://gitlab.com/stsquad/qemu into staging (2025-01-17 10:13:07 -0500) are available in the Git repository at: https://

Re: [PATCH v4 1/7] linux-user: netlink: Add missing IFA_PROTO to host_to_target_data_addr_rtattr()

2025-01-22 Thread Helge Deller
* Laurent Vivier : > [...] > It would be cleaner to replace all the IFA_XXX by their QEMU_IFA_XXX. Thanks for review, Laurent! Below I've merged patch #1 and #7, as suggested by you. Is this OK? Can you review? Thanks! Helge From: Helge D

[PATCH 2/2] hw/hppa: Fix booting Linux kernel with initrd

2025-01-22 Thread deller
From: Helge Deller Commit 20f7b890173b ("hw/hppa: Reset vCPUs calling resettable_reset()") broke booting the Linux kernel with initrd which may have been provided on the command line. The problem is, that the mentioned commit zeroes out initial registers which were preset with address

[PATCH 1/2] hw/hppa: Support up to 256 GiB RAM on 64-bit machines

2025-01-22 Thread deller
From: Helge Deller Allow up to 256 GB RAM, which is the maximum a rp8440 machine (the very last 64-bit PA-RISC machine) physically supports. Signed-off-by: Helge Deller --- hw/hppa/hppa_hardware.h | 2 ++ hw/hppa/machine.c | 26 +++--- 2 files changed, 21 insertions

[PATCH 0/2] hppa updates

2025-01-22 Thread deller
From: Helge Deller Two patches: The first fixes booting a Linux kernel which is provided on the command line. The second patch adds support for more than 4GB RAM on 64-bit boxes (requires additional patch for SeaBIOS-hppa which will be pushed before qemu v10). Helge Deller (2): hw/hppa

[PATCH v4 3/7] linux-user: netlink: Add IP_PKTINFO cmsg parsing

2025-01-20 Thread deller
From: Helge Deller Fixes those warnings: Unsupported host ancillary data: 0/8 Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 10 ++ linux-user/syscall_defs.h | 6 ++ 2 files changed, 16 insertions(+) diff --git a/linux-user/syscall.c b

[PATCH v4 5/7] linux-user: netlink: add netlink neighbour emulation

2025-01-20 Thread deller
From: Helge Deller Fixes various warnings in the testsuite while building gupnp: gssdp-net-DEBUG: Failed to send netlink message: Operation not supported gupnp-context-DEBUG: Mismatch between host header and host IP (example.com, expected: 127.0.0.1) gupnp-context-DEBUG: Mismatch between

[PATCH v4 4/7] linux-user: netlink: Add emulation of IP_MULTICAST_IF

2025-01-20 Thread deller
From: Helge Deller Add IP_MULTICAST_IF and share the code with IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP. Sharing the code makes sense, because the manpage of ip(7) says: IP_MULTICAST_IF (since Linux 1.2) Set the local device for a multicast socket. The argument for setsockopt(2) is

[PATCH v4 2/7] linux-user: Use unique error messages for cmsg parsing

2025-01-20 Thread deller
From: Helge Deller Avoid using the same error message for two different code paths as it complicates determining the one which actually triggered. Signed-off-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 4 ++-- 1 file changed, 2

[PATCH v4 7/7] linux-user: netlink: Use QEMU_IFA_XXX values instead of IFA_XXX

2025-01-20 Thread deller
From: Helge Deller Convert existing places to use QEMU_IFA_XXX values. Signed-off-by: Helge Deller --- linux-user/fd-trans.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c index 105b1f0713..f83d1f79d5 100644

[PATCH v4 0/7] linux-user: Add support for various missing netlink sockopt entries

2025-01-20 Thread deller
From: Helge Deller This patchset adds various missing sockopt calls, so that qemu linux-user is able to successfully build the debian gupnp package in a chroot. Tested with a 32-bit big-endian hppa linux-user chroot running on a phyiscal x86-64 little-endian host. This fixes debian'

[PATCH v4 6/7] linux-user: netlink: Add missing QEMU_IFLA entries

2025-01-20 Thread deller
From: Helge Deller This fixes the following qemu warnings when building debian gupnp package: Unknown host QEMU_IFLA type: 61 Unknown host QEMU_IFLA type: 58 Unknown host QEMU_IFLA type: 59 Unknown host QEMU_IFLA type: 60 Unknown host QEMU_IFLA type: 32820 QEMU_IFLA type 32820 is actually

[PATCH v4 1/7] linux-user: netlink: Add missing IFA_PROTO to host_to_target_data_addr_rtattr()

2025-01-20 Thread deller
From: Helge Deller Fixes this warning: Unknown host IFA type: 11 IFA_PROTO has been introduced in kernel v5.18, and as such using it unconditionally breaks build on Ubuntu 22.04. Instead convert the IFA_XXX values to QEMU_IDA_XXX values and use those instead. Already existing IFA_XXX usages

Re: [PATCH v3 4/6] linux-user: netlink: Add emulation of IP_MULTICAST_IF

2025-01-20 Thread Helge Deller
On 1/20/25 21:42, Helge Deller wrote: On 1/20/25 19:17, Laurent Vivier wrote: Le 19/01/2025 à 05:41, del...@kernel.org a écrit : From: Helge Deller Add IP_MULTICAST_IF and share the code with IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP. Sharing the code makes sense, because the manpage of ip(7

Re: [PATCH v3 4/6] linux-user: netlink: Add emulation of IP_MULTICAST_IF

2025-01-20 Thread Helge Deller
On 1/20/25 19:17, Laurent Vivier wrote: Le 19/01/2025 à 05:41, del...@kernel.org a écrit : From: Helge Deller Add IP_MULTICAST_IF and share the code with IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP. Sharing the code makes sense, because the manpage of ip(7)  says: IP_MULTICAST_IF (since Linux

[PATCH v3 3/6] linux-user: netlink: Add IP_PKTINFO cmsg parsing

2025-01-18 Thread deller
From: Helge Deller Fixes those warnings: Unsupported host ancillary data: 0/8 Signed-off-by: Helge Deller v2: (based on feedback by Laurent Vivier) - add target_in_pktinfo struct and fix copying target_in_addr fields --- linux-user/syscall.c | 10 ++ linux-user/syscall_defs.h

[PATCH v3 0/6] linux-user: Add support for various missing netlink sockopt entries

2025-01-18 Thread deller
From: Helge Deller This patchset adds various missing sockopt calls, so that qemu linux-user is able to successfully build the debian gupnp package in a chroot. Tested with a 32-bit big-endian hppa linux-user chroot running on a phyiscal x86-64 little-endian host. This fixes debian'

[PATCH v3 6/6] linux-user: netlink: Add missing QEMU_IFLA entries

2025-01-18 Thread deller
From: Helge Deller This fixes the following qemu warnings when building debian gupnp package: Unknown host QEMU_IFLA type: 61 Unknown host QEMU_IFLA type: 58 Unknown host QEMU_IFLA type: 59 Unknown host QEMU_IFLA type: 60 Unknown host QEMU_IFLA type: 32820 QEMU_IFLA type 32820 is actually

[PATCH v3 1/6] linux-user: netlink: Add missing IFA_PROTO to host_to_target_data_addr_rtattr()

2025-01-18 Thread deller
From: Helge Deller Fixes this warning: Unknown host IFA type: 11 Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier --- linux-user/fd-trans.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c index c04a97c73a..a86ed2f4b4 100644 --- a

[PATCH v3 4/6] linux-user: netlink: Add emulation of IP_MULTICAST_IF

2025-01-18 Thread deller
From: Helge Deller Add IP_MULTICAST_IF and share the code with IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP. Sharing the code makes sense, because the manpage of ip(7) says: IP_MULTICAST_IF (since Linux 1.2) Set the local device for a multicast socket. The argument for setsockopt(2) is

[PATCH v3 5/6] linux-user: netlink: add netlink neighbour emulation

2025-01-18 Thread deller
From: Helge Deller Fixes various warnings in the testsuite while building gupnp: gssdp-net-DEBUG: Failed to send netlink message: Operation not supported gupnp-context-DEBUG: Mismatch between host header and host IP (example.com, expected: 127.0.0.1) gupnp-context-DEBUG: Mismatch between

[PATCH v3 2/6] linux-user: Use unique error messages for cmsg parsing

2025-01-18 Thread deller
From: Helge Deller Avoid using the same error message for two different code paths as it complicates determining the one which actually triggered. Signed-off-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 4 ++-- 1 file changed, 2

[PATCH v2] linux-user: Add missing /proc/cpuinfo fields for sparc

2025-01-08 Thread Helge Deller
Add some missing fields which may be parsed by userspace applications. Signed-off-by: Helge Deller v2: - fixed cpu name and type depending on currently active CPU diff --git a/linux-user/sparc/target_proc.h b/linux-user/sparc/target_proc.h index 3bb3134a47..744fa10730 100644 --- a/linux-user

Re: [PATCH] linux-user: Add missing /proc/cpuinfo fields for sparc

2025-01-08 Thread Helge Deller
On 1/9/25 01:40, Richard Henderson wrote: On 1/8/25 15:21, Helge Deller wrote: My suggestion: I change my patch to just add: +    dprintf(fd, "ncpus probed\t: %d\n", num_cpus); +    dprintf(fd, "ncpus active\t: %d\n", num_cpus); +    dprintf(fd, "State:\n"); + 

  1   2   3   4   5   6   7   8   9   10   >