qemu-e2k/include/sysemu
Peter Collingbourne 219c101fa7 arm/hvf: Add a WFI handler
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>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Acked-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20210916155404.86958-6-agraf@csgraf.de
[agraf: Remove unused 'set' variable, always advance PC on WFX trap,
        support vm stop / continue operations and cntv offsets]
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Acked-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2021-09-21 16:28:26 +01:00
..
accel-ops.h
arch_init.h stubs: Remove unused arch_type.c stub 2021-08-26 17:02:00 +01:00
balloon.h
block-backend.h block: introduce blk_replace_bs 2021-09-01 12:57:31 +02:00
blockdev.h blockdev: Drop deprecated bogus -drive interface type 2021-03-19 15:18:43 +01:00
cpu-throttle.h
cpu-timers.h
cpus.h
cryptodev-vhost-user.h
cryptodev-vhost.h
cryptodev.h
device_tree.h device_tree: add qemu_fdt_setprop_string_array helper 2021-03-10 15:34:11 +00:00
dma.h dma: Introduce dma_aligned_pow2_mask() 2021-03-12 12:40:10 +00:00
dump-arch.h
dump.h
hax.h include/sysemu: Poison all accelerator CONFIG switches in common code 2021-05-14 12:31:44 +02:00
hostmem.h hostmem: Wire up RAM_NORESERVE via "reserve" property 2021-06-15 20:27:38 +02:00
hvf_int.h arm/hvf: Add a WFI handler 2021-09-21 16:28:26 +01:00
hvf.h include/sysemu: Poison all accelerator CONFIG switches in common code 2021-05-14 12:31:44 +02:00
hw_accel.h Add NVMM accelerator: acceleration enlightenments 2021-05-04 14:15:34 +02:00
iothread.h iothread: add aio-max-batch parameter 2021-07-21 13:47:50 +01:00
kvm_int.h KVM: Cache kvm slot dirty bitmap size 2021-05-26 14:49:45 +02:00
kvm.h exec: Get rid of phys_mem_set_alloc() 2021-03-15 11:01:23 +01:00
memory_mapping.h
numa.h
nvmm.h Only check CONFIG_NVMM when NEED_CPU_H is defined 2021-09-13 13:56:26 +02:00
os-posix.h osdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves 2021-05-10 17:21:54 +01:00
os-win32.h osdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves 2021-05-10 17:21:54 +01:00
qtest.h
replay.h
reset.h
rng-random.h
rng.h
runstate-action.h
runstate.h sysemu: Let VMChangeStateHandler take boolean 'running' argument 2021-03-09 23:13:57 +01:00
seccomp.h
sev.h
sysemu.h
tcg.h accel/tcg: Merge tcg_exec_init into tcg_init_machine 2021-06-11 09:26:28 -07:00
tpm_backend.h sysemu: Make TPM structures inaccessible if CONFIG_TPM is not defined 2021-06-15 10:55:12 -04:00
tpm_util.h
tpm.h sysemu: Make TPM structures inaccessible if CONFIG_TPM is not defined 2021-06-15 10:55:12 -04:00
vhost-user-backend.h
watchdog.h
whpx.h include/sysemu: Poison all accelerator CONFIG switches in common code 2021-05-14 12:31:44 +02:00
xen-mapcache.h
xen.h