xref: /linux/arch/arm64/include/asm/kvm_hyptrace.h (revision 53597deca0e38c30e6cd4ba2114fa42d2bcd85bb)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ARM64_KVM_HYPTRACE_H_
3 #define __ARM64_KVM_HYPTRACE_H_
4 
5 #include <linux/ring_buffer.h>
6 
7 struct hyp_trace_desc {
8 	unsigned long			bpages_backing_start;
9 	size_t				bpages_backing_size;
10 	struct trace_buffer_desc	trace_buffer_desc;
11 
12 };
13 
14 struct hyp_event_id {
15 	unsigned short	id;
16 	atomic_t	enabled;
17 };
18 
19 extern struct remote_event __hyp_events_start[];
20 extern struct remote_event __hyp_events_end[];
21 
22 /* hyp_event section used by the hypervisor */
23 extern struct hyp_event_id __hyp_event_ids_start[];
24 extern struct hyp_event_id __hyp_event_ids_end[];
25 
26 #endif
27