[RFC PATCH 3/5] KVM: arm64: Allow userspace to request WFI

2021-06-08 Thread Jean-Philippe Brucker
To help userspace implement PSCI CPU_SUSPEND, allow setting the "HALTED" MP state to request a WFI before returning to the guest. Userspace won't obtain a HALTED mp_state from a KVM_GET_MP_STATE call unless they set it themselves. When set by KVM, to handle wfi or CPU_SUSPEND, it is consumed befor

Re: [RFC PATCH 3/5] KVM: arm64: Allow userspace to request WFI

2021-07-01 Thread Fuad Tabba
Hi Jean-Philippe, On Tue, Jun 8, 2021 at 4:54 PM Jean-Philippe Brucker wrote: > > To help userspace implement PSCI CPU_SUSPEND, allow setting the "HALTED" > MP state to request a WFI before returning to the guest. > > Userspace won't obtain a HALTED mp_state from a KVM_GET_MP_STATE call > unless