Skip to contentSkip to conversation

Linux user for 5.0 patches

GIT PULL Laurent Vivier 2 participants 7 messages Apr 16, 2020 – Apr 20, 2020

lore
Share & tools
lore
#0 lore raw

The following changes since commit 20038cd7a8412feeb49c01f6ede89e36c8995472:

Update version for v5.0.0-rc3 release (2020-04-15 20:51:54 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request

for you to fetch changes up to 386d38656889a40d29b514ee6f34997ca18f741e:

linux-user/syscall.c: add target-to-host mapping for epoll_create1() (2020-04-16 09:24:22 +0200)

----------------------------------------------------------------
Fix epoll_create1() for qemu-alpha

----------------------------------------------------------------

Sergei Trofimovich (1):
linux-user/syscall.c: add target-to-host mapping for epoll_create1()

 linux-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.25.2
#1 lore raw

[PULL 1/1] linux-user/syscall.c: add target-to-host mapping for epoll_create1()

From: Sergei Trofimovich <[email protected]>

Noticed by Barnabás Virágh as a python-3.7 failue on qemu-alpha.

The bug shows up on alpha as it's one of the targets where EPOLL_CLOEXEC differs from other targets:
sysdeps/unix/sysv/linux/alpha/bits/epoll.h: EPOLL_CLOEXEC = 01000000
sysdeps/unix/sysv/linux/bits/epoll.h: EPOLL_CLOEXEC = 02000000

Reported-by Barnabás Virágh
CC Riku Voipio <[email protected]>
CC Laurent Vivier <[email protected]>

Message-Id: <[email protected]>

---
 linux-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/syscall.c +1 -1
index 674f70e70a56..05f03919ff07 100644
@@ -12012,7 +12012,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
 #endif
 #if defined(TARGET_NR_epoll_create1) && defined(CONFIG_EPOLL_CREATE1)
     case TARGET_NR_epoll_create1:
-        return get_errno(epoll_create1(arg1));
+        return get_errno(epoll_create1(target_to_host_bitmask(arg1, fcntl_flags_tbl)));
 #endif
 #if defined(TARGET_NR_epoll_ctl)
     case TARGET_NR_epoll_ctl:
Signature · 1 line
2.25.2
#2 lore raw
In reply to Laurent Vivier
Quoted 9 lines · Laurent Vivier

The following changes since commit 20038cd7a8412feeb49c01f6ede89e36c8995472:

Update version for v5.0.0-rc3 release (2020-04-15 20:51:54 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request

Quoted 8 lines

for you to fetch changes up to 386d38656889a40d29b514ee6f34997ca18f741e:

linux-user/syscall.c: add target-to-host mapping for epoll_create1() (2020-04-16 09:24:22 +0200)

----------------------------------------------------------------
Fix epoll_create1() for qemu-alpha

----------------------------------------------------------------

How critical is this bug fix? After rc3, I really don't want to have to create an rc4 unless it's unavoidable...

thanks
-- PMM

#3 lore raw

Le 16/04/2020 à 18:03, Peter Maydell a écrit :

Quoted 14 lines · Laurent Vivier
Quoted 13 lines

The following changes since commit 20038cd7a8412feeb49c01f6ede89e36c8995472:

Update version for v5.0.0-rc3 release (2020-04-15 20:51:54 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request

for you to fetch changes up to 386d38656889a40d29b514ee6f34997ca18f741e:

linux-user/syscall.c: add target-to-host mapping for epoll_create1() (2020-04-16 09:24:22 +0200)

Quoted 7 lines
Quoted 4 lines

----------------------------------------------------------------
Fix epoll_create1() for qemu-alpha

----------------------------------------------------------------

How critical is this bug fix? After rc3, I really don't want to have to create an rc4 unless it's unavoidable...

See the launchpad bug (https://bugs.gentoo.org/717548): on alpha, it prevents the use of python3 in gentoo chroot, and thus we can't use emerge to install packages. It also impacts cmake on debian (see
https://bugs.launchpad.net/bugs/1860553).

But it's not a regression, so up to you to reject it. It appears now because most of the distro have switched from python2 to python3.

It's a low risk change, only in linux-user and for archs that have a different EPOLL_CLOEXEC value.

Thanks,
Laurent

#4 lore raw
Quoted 29 lines · Laurent Vivier
Quoted 14 lines · Peter Maydell
Quoted 13 lines · Laurent Vivier

The following changes since commit 20038cd7a8412feeb49c01f6ede89e36c8995472:

Update version for v5.0.0-rc3 release (2020-04-15 20:51:54 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request

for you to fetch changes up to 386d38656889a40d29b514ee6f34997ca18f741e:

linux-user/syscall.c: add target-to-host mapping for epoll_create1() (2020-04-16 09:24:22 +0200)

Quoted 7 lines
Quoted 4 lines

----------------------------------------------------------------
Fix epoll_create1() for qemu-alpha

----------------------------------------------------------------

How critical is this bug fix? After rc3, I really don't want to have to create an rc4 unless it's unavoidable...

See the launchpad bug (https://bugs.gentoo.org/717548): on alpha, it prevents the use of python3 in gentoo chroot, and thus we can't use emerge to install packages. It also impacts cmake on debian (see
https://bugs.launchpad.net/bugs/1860553).

Quoted 5 lines

But it's not a regression, so up to you to reject it. It appears now because most of the distro have switched from python2 to python3.

It's a low risk change, only in linux-user and for archs that have a different EPOLL_CLOEXEC value.

Thanks for the explanation. I think that I'll put it to one side and if we need an rc4 for some other reason it can go in, but it's not sufficiently major to merit an rc4 by itself.

-- PMM

#5 lore raw

Le 16/04/2020 à 21:08, Peter Maydell a écrit :

Quoted 33 lines · Laurent Vivier
Quoted 32 lines · Peter Maydell
Quoted 14 lines · Laurent Vivier
Quoted 13 lines

The following changes since commit 20038cd7a8412feeb49c01f6ede89e36c8995472:

Update version for v5.0.0-rc3 release (2020-04-15 20:51:54 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request

for you to fetch changes up to 386d38656889a40d29b514ee6f34997ca18f741e:

linux-user/syscall.c: add target-to-host mapping for epoll_create1() (2020-04-16 09:24:22 +0200)

Quoted 7 lines
Quoted 4 lines

----------------------------------------------------------------
Fix epoll_create1() for qemu-alpha

----------------------------------------------------------------

How critical is this bug fix? After rc3, I really don't want to have to create an rc4 unless it's unavoidable...

See the launchpad bug (https://bugs.gentoo.org/717548): on alpha, it prevents the use of python3 in gentoo chroot, and thus we can't use emerge to install packages. It also impacts cmake on debian (see
https://bugs.launchpad.net/bugs/1860553).

But it's not a regression, so up to you to reject it. It appears now because most of the distro have switched from python2 to python3.

Quoted 7 lines
Quoted 2 lines

It's a low risk change, only in linux-user and for archs that have a different EPOLL_CLOEXEC value.

Thanks for the explanation. I think that I'll put it to one side and if we need an rc4 for some other reason it can go in, but it's not sufficiently major to merit an rc4 by itself.

Thank you, I agree.

Laurent

#6 lore raw
In reply to Peter Maydell
Quoted 34 lines · Peter Maydell
Quoted 32 lines · Laurent Vivier
Quoted 14 lines · Peter Maydell
Quoted 13 lines · Laurent Vivier

The following changes since commit 20038cd7a8412feeb49c01f6ede89e36c8995472:

Update version for v5.0.0-rc3 release (2020-04-15 20:51:54 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request

for you to fetch changes up to 386d38656889a40d29b514ee6f34997ca18f741e:

linux-user/syscall.c: add target-to-host mapping for epoll_create1() (2020-04-16 09:24:22 +0200)

Quoted 7 lines
Quoted 4 lines

----------------------------------------------------------------
Fix epoll_create1() for qemu-alpha

----------------------------------------------------------------

How critical is this bug fix? After rc3, I really don't want to have to create an rc4 unless it's unavoidable...

See the launchpad bug (https://bugs.gentoo.org/717548): on alpha, it prevents the use of python3 in gentoo chroot, and thus we can't use emerge to install packages. It also impacts cmake on debian (see
https://bugs.launchpad.net/bugs/1860553).

But it's not a regression, so up to you to reject it. It appears now because most of the distro have switched from python2 to python3.

Quoted 6 lines
Quoted 2 lines

It's a low risk change, only in linux-user and for archs that have a different EPOLL_CLOEXEC value.

Thanks for the explanation. I think that I'll put it to one side and if we need an rc4 for some other reason it can go in, but it's not sufficiently major to merit an rc4 by itself.

We needed an rc4 for the iscsi fix, so I have applied this pullreq.

thanks
-- PMM