xref: /linux/arch/arm64/kvm/hyp/include/nvhe/define_events.h (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
1*0a90fbc8SVincent Donnefort /* SPDX-License-Identifier: GPL-2.0 */
2*0a90fbc8SVincent Donnefort 
3*0a90fbc8SVincent Donnefort #undef HYP_EVENT
4*0a90fbc8SVincent Donnefort #define HYP_EVENT(__name, __proto, __struct, __assign, __printk)	\
5*0a90fbc8SVincent Donnefort 	struct hyp_event_id hyp_event_id_##__name			\
6*0a90fbc8SVincent Donnefort 	__section(".hyp.event_ids."#__name) = {				\
7*0a90fbc8SVincent Donnefort 		.enabled = ATOMIC_INIT(0),				\
8*0a90fbc8SVincent Donnefort 	}
9*0a90fbc8SVincent Donnefort 
10*0a90fbc8SVincent Donnefort #define HYP_EVENT_MULTI_READ
11*0a90fbc8SVincent Donnefort #include <asm/kvm_hypevents.h>
12*0a90fbc8SVincent Donnefort #undef HYP_EVENT_MULTI_READ
13*0a90fbc8SVincent Donnefort 
14*0a90fbc8SVincent Donnefort #undef HYP_EVENT
15