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.

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