Re: [PATCH v11 05/10] arm/hvf: Add a WFI handler

2021-09-16 Thread Alexander Graf
On 16.09.21 06:49, Philippe Mathieu-Daudé wrote: > On 9/15/21 8:10 PM, Alexander Graf wrote: >> From: Peter Collingbourne >> >> Sleep on WFI until the VTIMER is due but allow ourselves to be woken >> up on IPI. >> >> In this implementation IPI is blocked on the CPU thread at startup and >> psele

Re: [PATCH v11 05/10] arm/hvf: Add a WFI handler

2021-09-16 Thread Peter Maydell
On Wed, 15 Sept 2021 at 19:10, Alexander Graf wrote: > > From: Peter Collingbourne > > Sleep on WFI until the VTIMER is due but allow ourselves to be woken > up on IPI. > > In this implementation IPI is blocked on the CPU thread at startup and > pselect() is used to atomically unblock the signal

Re: [PATCH v11 05/10] arm/hvf: Add a WFI handler

2021-09-15 Thread Philippe Mathieu-Daudé
On 9/15/21 8:10 PM, Alexander Graf wrote: > From: Peter Collingbourne > > Sleep on WFI until the VTIMER is due but allow ourselves to be woken > up on IPI. > > In this implementation IPI is blocked on the CPU thread at startup and > pselect() is used to atomically unblock the signal and begin sl

[PATCH v11 05/10] arm/hvf: Add a WFI handler

2021-09-15 Thread Alexander Graf
From: Peter Collingbourne Sleep on WFI until the VTIMER is due but allow ourselves to be woken up on IPI. In this implementation IPI is blocked on the CPU thread at startup and pselect() is used to atomically unblock the signal and begin sleeping. The signal is sent unconditionally so there's no