On Tue, 2023-11-21 at 12:21 +0100, Alexander Kanavin wrote: > On Tue, 21 Nov 2023 at 12:12, Jose Quaresma <[email protected]> wrote: > > > I was using it for running Unit Tests on the host before I deployed > > > them to the target device as ptest. This worked well. It is well > > > integrated with cmake and therefore also with IDEs. So I thought that > > > there are certain use cases where it would be nice to have it opt-in. > > > > > > meson offers qemu-user as well (because of gobject). So if qemu-user is > > > not usable there will be other challenges as well. > > > > > > There is also a MACHINE_FEATURE which allows to support it for ARCHs > > > where it works well but not for ARCHs where qemu-user is known to be > > > broken. > > > > > > I think it would be a nice optional feature. > > > > > > I agree without any doubt on that part. > > > > But I believe this doesn't work for applications that are using the fork > > system call. > > So consider this will also break any ptest using fork, giving the wrong > > impression the test is failing. > > I think this needs to be double checked. I find it odd that qemu > usermode would fail on such a basic thing, and it would not show up > anywhere in places where it's used in core (not just g-i - all the > various postinst utilities for generating indexes etc.).
It is more that the exec() calls are problematic so it depends what the code is doing after the fork(). exec*() can be made to work under usermode emulation if you setup binfmt_misc and enable it properly. This can be setup and gets into the territory of what scratchbox tried to do for example but it does usually need more permissions that our build user would typically have. We have no desire to need that level of system access. We do also want to maintain the ability to bring up/build platforms that do not have qemu user mode support. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#191162): https://lists.openembedded.org/g/openembedded-core/message/191162 Mute This Topic: https://lists.openembedded.org/mt/102708283/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
