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 / tests / host / test_hv_interval.c
501 B 19 lines
1#include "hv/interval.h" 2 3#include <assert.h> 4#include <stdint.h> 5 6int main(void) 7{ 8 uint64_t end = 0; 9 struct hv_interval outer = { 0x1000u, 0x4000u }; 10 struct hv_interval inner = { 0x2000u, 0x1000u }; 11 struct hv_interval overflow = { UINT64_MAX - 1u, 4u }; 12 13 assert(hv_interval_end(outer, &end)); 14 assert(end == 0x5000u); 15 assert(hv_interval_contains(outer, inner)); 16 assert(!hv_interval_contains(inner, outer)); 17 assert(!hv_interval_end(overflow, &end)); 18 return 0; 19}