On 29/11/2016 17:01, Andrew Jones wrote:
> OK, it may be due to scheduling then. Below is the test case (for AArch64)
> Also, I forgot to mention before that I can only see this with TCG, not
> KVM. If ppoll is allowed to timeout, then the test will complete. If not,
> then, as can be seen with strace, the iothread is stuck in ppoll, and the
> test never completes.
>
> #include <asm/smp.h>
> volatile int ready;
> void set_ready(void) {
> ready = 1;
> while(1);
> }
> int main(void) {
> smp_boot_secondary(1, set_ready);
> while (!ready);
> return 0;
> }
Where is the test stuck?
Paolo