[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 14/19] arm/hvf: Add a WFI handler
From: |
Sergio Lopez |
Subject: |
Re: [PATCH v8 14/19] arm/hvf: Add a WFI handler |
Date: |
Thu, 27 May 2021 12:53:13 +0200 |
On Wed, May 19, 2021 at 10:22:48PM +0200, Alexander Graf wrote:
> From: Peter Collingbourne <pcc@google.com>
>
> 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 need to worry about
> races between actually sleeping and the "we think we're sleeping"
> state. It may lead to an extra wakeup but that's better than missing
> it entirely.
>
> Signed-off-by: Peter Collingbourne <pcc@google.com>
> [agraf: Remove unused 'set' variable, always advance PC on WFX trap]
> Signed-off-by: Alexander Graf <agraf@csgraf.de>
> Acked-by: Roman Bolshakov <r.bolshakov@yadro.com>
>
> ---
>
> v6 -> v7:
>
> - Move WFI into function
> - Improve comment wording
> ---
> accel/hvf/hvf-accel-ops.c | 5 ++-
> include/sysemu/hvf_int.h | 1 +
> target/arm/hvf/hvf.c | 68 +++++++++++++++++++++++++++++++++++++++
> 3 files changed, 71 insertions(+), 3 deletions(-)
Reviewed-by: Sergio Lopez <slp@redhat.com>
signature.asc
Description: PGP signature
- Re: [PATCH v8 09/19] hvf: Make synchronize functions static, (continued)
- [PATCH v8 12/19] hvf: Simplify post reset/init/loadvm hooks, Alexander Graf, 2021/05/19
- [PATCH v8 10/19] hvf: Remove hvf-accel-ops.h, Alexander Graf, 2021/05/19
- [PATCH v8 05/19] hvf: Make hvf_set_phys_mem() static, Alexander Graf, 2021/05/19
- [PATCH v8 08/19] hvf: Use cpu_synchronize_state(), Alexander Graf, 2021/05/19
- [PATCH v8 14/19] arm/hvf: Add a WFI handler, Alexander Graf, 2021/05/19
- Re: [PATCH v8 14/19] arm/hvf: Add a WFI handler,
Sergio Lopez <=
- [PATCH v8 11/19] hvf: Introduce hvf vcpu struct, Alexander Graf, 2021/05/19
- [PATCH v8 13/19] hvf: Add Apple Silicon support, Alexander Graf, 2021/05/19
- [PATCH v8 15/19] hvf: arm: Implement -cpu host, Alexander Graf, 2021/05/19
- [PATCH v8 16/19] hvf: arm: Implement PSCI handling, Alexander Graf, 2021/05/19
- [PATCH v8 17/19] arm: Add Hypervisor.framework build target, Alexander Graf, 2021/05/19