All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas K. Huettel" <dilfridge@gentoo.org>
To: Alistair Francis <alistair23@gmail.com>
Cc: qemu-devel@nongnu.org, "open list:RISC-V" <qemu-riscv@nongnu.org>,
	LIU Zhiwei <baxiantai@gmail.com>,
	Alistair Francis <alistair.francis@wdc.com>
Subject: Re: qemu-riscv32 usermode still broken?
Date: Tue, 11 Jun 2024 10:57:37 +0200	[thread overview]
Message-ID: <4038765.Mh6RI2rZIc@pinacolada> (raw)
In-Reply-To: <CAKmqyKMRpSis8uaQVs_FTawtC-nwsFj8t7AVjrTNM4DQr-5pYw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]

Hi Alistair, 

> 
> Ok!
> 
> So on my x86 machine I see this
> 
> --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=285545,
> si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}],
> WNOHANG|WSTOPPED|WCONTINUED, NULL) = 285545
> wait4(-1, 0x7ffe3eeb8210, WNOHANG|WSTOPPED|WCONTINUED, NULL) = 0
> rt_sigreturn({mask=[INT]})              = 0
> close(3)                                = 0
> 
> It all looks ok.

This was fixed in the meantime (hooray!), sorry I didn't think anyone
would still look at the old thread. The commit is given below.

Since then we've been able to build riscv32 stages for Gentoo just fine
using qemu-user, see
https://www.gentoo.org/downloads/#riscv

Cheers,
Andreas

commit f0907ff4cae743f1a4ef3d0a55a047029eed06ff
Author:     Richard Henderson <richard.henderson@linaro.org>
AuthorDate: Fri Apr 5 11:58:14 2024 -1000
Commit:     Richard Henderson <richard.henderson@linaro.org>
CommitDate: Tue Apr 9 07:43:11 2024 -1000

    linux-user: Fix waitid return of siginfo_t and rusage
    
    The copy back to siginfo_t should be conditional only on arg3,
    not the specific values that might have been written.
    The copy back to rusage was missing entirely.
    
    Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2262
    Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
    Tested-by: Alex Fan <alex.fan.q@gmail.com>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



> 
> Maybe the host_to_target_siginfo() function in QEMU is the issue?
> Something in here?
> https://github.com/qemu/qemu/blob/master/linux-user/signal.c#L335
> 
> Nothing jumps out with a quick look though
> 
> Alistair
> 
> >
> >
> >
> > --
> > Andreas K. Hüttel
> > dilfridge@gentoo.org
> > Gentoo Linux developer
> > (council, toolchain, base-system, perl, libreoffice)
> 


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

  reply	other threads:[~2024-06-11  8:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 22:31 qemu-riscv32 usermode still broken? Andreas K. Huettel
2023-09-13  1:41 ` LIU Zhiwei
2023-09-13  8:06   ` Michael Tokarev
2023-09-13 10:33     ` Andreas K. Huettel
2023-09-14  1:22   ` Andreas K. Huettel
2023-09-16 22:37     ` Andreas K. Huettel
2023-09-18  1:16       ` Alistair Francis
2023-09-19 20:39         ` Andreas K. Huettel
2024-06-11  4:43           ` Alistair Francis
2024-06-11  8:57             ` Andreas K. Huettel [this message]
2024-06-12  1:26               ` Alistair Francis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4038765.Mh6RI2rZIc@pinacolada \
    --to=dilfridge@gentoo.org \
    --cc=alistair.francis@wdc.com \
    --cc=alistair23@gmail.com \
    --cc=baxiantai@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.