AArch64 EL2 hypervisor for QEMU virt that boots at EL2
1

Configure Feed

Select the types of activity you want to include in your feed.

Use bounded ring buffer sequencing for trap telemetry

+17
+17
include/hv/ring.h
··· 1 + #ifndef HV_RING_H 2 + #define HV_RING_H 3 + 4 + #include "hv/types.h" 5 + 6 + static inline uint32_t hv_ring_advance(uint32_t index, uint32_t capacity) 7 + { 8 + index++; 9 + return index == capacity ? 0u : index; 10 + } 11 + 12 + static inline bool hv_ring_capacity_valid(uint32_t capacity) 13 + { 14 + return capacity != 0u && capacity <= 4096u; 15 + } 16 + 17 + #endif