[PATCH for-7.1? 0/2] Re-enable ppc32 as a linux-user host

Richard Henderson posted 2 patches 1 year, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220729172141.1789105-1-richard.henderson@linaro.org
Maintainers: Riku Voipio <riku.voipio@iki.fi>, Laurent Vivier <laurent@vivier.eu>
linux-user/include/host/ppc/host-signal.h |  39 ++++++++
common-user/host/ppc/safe-syscall.inc.S   | 107 ++++++++++++++++++++++
2 files changed, 146 insertions(+)
create mode 100644 linux-user/include/host/ppc/host-signal.h
create mode 100644 common-user/host/ppc/safe-syscall.inc.S
[PATCH for-7.1? 0/2] Re-enable ppc32 as a linux-user host
Posted by Richard Henderson 1 year, 9 months ago
This is, technically, a regression from 6.2, so it's not
implausible to apply before rc1.  Thoughts?


r~


Richard Henderson (2):
  common-user/host/ppc: Implement safe-syscall.inc.S
  linux-user: Implment host/ppc/host-signal.h

 linux-user/include/host/ppc/host-signal.h |  39 ++++++++
 common-user/host/ppc/safe-syscall.inc.S   | 107 ++++++++++++++++++++++
 2 files changed, 146 insertions(+)
 create mode 100644 linux-user/include/host/ppc/host-signal.h
 create mode 100644 common-user/host/ppc/safe-syscall.inc.S

-- 
2.34.1
Re: [PATCH for-7.1? 0/2] Re-enable ppc32 as a linux-user host
Posted by Richard Henderson 1 year, 7 months ago
On 7/29/22 18:21, Richard Henderson wrote:
> This is, technically, a regression from 6.2, so it's not
> implausible to apply before rc1.  Thoughts?
> 
> 
> r~
> 
> 
> Richard Henderson (2):
>    common-user/host/ppc: Implement safe-syscall.inc.S
>    linux-user: Implment host/ppc/host-signal.h

Queued to linux-user-next.


r~
Re: [PATCH for-7.1? 0/2] Re-enable ppc32 as a linux-user host
Posted by Daniel Henrique Barboza 1 year, 9 months ago

On 7/29/22 14:21, Richard Henderson wrote:
> This is, technically, a regression from 6.2, so it's not
> implausible to apply before rc1.  Thoughts?


In gitlab #1097 the author comments that:

https://gitlab.com/qemu-project/qemu/-/issues/1097#note_1044810483

"there are several distributions still available on 32-bit powerpc, e.g.
Adélie Linux, for now still Void Linux, afaik Debian and OpenSUSE also
still build packages"

I checked these claims. Latest version OpenSuse LEAP doesn't support
ppc32 bits:

https://get.opensuse.org/leap/15.4/#download

The last Debian that supports ppc32 was Debian 8:

https://www.debian.org/ports/powerpc/#powerpc

"Debian on 32-bit PowerPC (powerpc)
It first became an official release architecture with Debian GNU/Linux 2.2
(potato) and had retained that status until the publication of Debian 9 (stretch).
The last supported release for 32-bit PowerPC is Debian 8 (jessie)"

And Void Linux doesn't seem to support any PowerPC flavor:

https://voidlinux.org/download/

Adélie Linux supports ppc32. I can also add that FreeBSD also supports ppc32.

Checking about/build-platforms.rst I can see that we would only somewhat
care for FreeBSD here, since Debian 8 is already out of our support
window.

All that said, I don't have strong feelings against re-enabling it, specially
because this build issue was deliberated caused by us.

However, after re-enabling it, I would only care about build bugs that are
reproduced on ppc32 FreeBSD.



Daniel

> 
> 
> r~
> 
> 
> Richard Henderson (2):
>    common-user/host/ppc: Implement safe-syscall.inc.S
>    linux-user: Implment host/ppc/host-signal.h
> 
>   linux-user/include/host/ppc/host-signal.h |  39 ++++++++
>   common-user/host/ppc/safe-syscall.inc.S   | 107 ++++++++++++++++++++++
>   2 files changed, 146 insertions(+)
>   create mode 100644 linux-user/include/host/ppc/host-signal.h
>   create mode 100644 common-user/host/ppc/safe-syscall.inc.S
> 

Re: [PATCH for-7.1? 0/2] Re-enable ppc32 as a linux-user host
Posted by Lucas Mateus Martins Araujo e Castro 1 year, 8 months ago
On 29/07/2022 17:44, Daniel Henrique Barboza wrote:
>
> On 7/29/22 14:21, Richard Henderson wrote:
>> This is, technically, a regression from 6.2, so it's not
>> implausible to apply before rc1.  Thoughts?
>
>
> In gitlab #1097 the author comments that:
>
> https://gitlab.com/qemu-project/qemu/-/issues/1097#note_1044810483
>
> "there are several distributions still available on 32-bit powerpc, e.g.
> Adélie Linux, for now still Void Linux, afaik Debian and OpenSUSE also
> still build packages"
>
> I checked these claims. Latest version OpenSuse LEAP doesn't support
> ppc32 bits:
>
> https://get.opensuse.org/leap/15.4/#download
>
> The last Debian that supports ppc32 was Debian 8:
>
> https://www.debian.org/ports/powerpc/#powerpc
>
> "Debian on 32-bit PowerPC (powerpc)
> It first became an official release architecture with Debian GNU/Linux 
> 2.2
> (potato) and had retained that status until the publication of Debian 
> 9 (stretch).
> The last supported release for 32-bit PowerPC is Debian 8 (jessie)"
>
> And Void Linux doesn't seem to support any PowerPC flavor:
>
> https://voidlinux.org/download/

The author is probably talking about Void Linux ppc as it seems it still 
support ppc

https://voidlinux-ppc.org/

>
> Adélie Linux supports ppc32. I can also add that FreeBSD also supports 
> ppc32.
>
> Checking about/build-platforms.rst I can see that we would only somewhat
> care for FreeBSD here, since Debian 8 is already out of our support
> window.
>
> All that said, I don't have strong feelings against re-enabling it, 
> specially
> because this build issue was deliberated caused by us.
>
> However, after re-enabling it, I would only care about build bugs that 
> are
> reproduced on ppc32 FreeBSD.
>
>
>
> Daniel
>
>>
>>
>> r~
>>
>>
>> Richard Henderson (2):
>>    common-user/host/ppc: Implement safe-syscall.inc.S
>>    linux-user: Implment host/ppc/host-signal.h
>>
>>   linux-user/include/host/ppc/host-signal.h |  39 ++++++++
>>   common-user/host/ppc/safe-syscall.inc.S   | 107 ++++++++++++++++++++++
>>   2 files changed, 146 insertions(+)
>>   create mode 100644 linux-user/include/host/ppc/host-signal.h
>>   create mode 100644 common-user/host/ppc/safe-syscall.inc.S
>>
>
-- 
Lucas Mateus M. Araujo e Castro
Instituto de Pesquisas ELDORADO 
<https://www.eldorado.org.br/?utm_campaign=assinatura_de_e-mail&utm_medium=email&utm_source=RD+Station>
Departamento Computação Embarcada
Analista de Software Trainee
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>
Re: [PATCH for-7.1? 0/2] Re-enable ppc32 as a linux-user host
Posted by Richard Henderson 1 year, 9 months ago
On 7/29/22 13:44, Daniel Henrique Barboza wrote:
> The last Debian that supports ppc32 was Debian 8:
> 
> https://www.debian.org/ports/powerpc/#powerpc
> 
> "Debian on 32-bit PowerPC (powerpc)
> It first became an official release architecture with Debian GNU/Linux 2.2
> (potato) and had retained that status until the publication of Debian 9 (stretch).
> The last supported release for 32-bit PowerPC is Debian 8 (jessie)"

It has been moved out of general support but remains in ports[1].

I was able to install a debian sid chroot with this today[2].
which should be good enough to continue compile-testing.
And Mark has hardware for actual testing.  Given that almost
all of the code overlaps with ppc64, I'm ok keeping it now.


r~


[1] http://ftp.de.debian.org/debian-ports/pool-powerpc/
[2] https://github.com/vivier/linux-user-test-scrips.git