qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Linux kernel polling for QEMU


From: Paolo Bonzini
Subject: Re: [Qemu-devel] Linux kernel polling for QEMU
Date: Tue, 29 Nov 2016 17:13:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]