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 / mmio_policy.h
613 B 28 lines
1#ifndef HV_MMIO_POLICY_H 2#define HV_MMIO_POLICY_H 3 4#include "hv/types.h" 5 6struct vcpu; 7 8enum mmio_policy_action { 9 MMIO_POLICY_DENY = 0, 10 MMIO_POLICY_EMULATE_ZERO, 11 MMIO_POLICY_EMULATE_PL011, 12 MMIO_POLICY_EMULATE_VIRTIO_MMIO, 13 MMIO_POLICY_EMULATE_READONLY_DEVICE, 14 MMIO_POLICY_ALLOW_STAGE2, 15}; 16 17struct mmio_policy_region { 18 ipa_t base; 19 uint64_t size; 20 const char *name; 21 enum mmio_policy_action action; 22}; 23 24const struct mmio_policy_region *mmio_policy_lookup(ipa_t ipa); 25bool mmio_policy_emulate(struct vcpu *vcpu, ipa_t ipa, uint64_t esr_el2); 26void mmio_policy_dump(void); 27 28#endif