Python's profile-guided-optimisation has shown that it's possible to run non-trivial code at build time. Should we extend this so that recipes can run the target test suite inside a qemu-user? Is this even feasible? One big caveat is that fork/exec doesn't work correctly unless binfmt_misc is setup.
*** Bug 12724 has been marked as a duplicate of this bug. ***
qemu-user can't fork/exec, the assumption is that binfmt-misc is configured. We can't assume that so that's a serious blocker for test cases which tend to fork/exec heavily.