Skip to content

Commit f95cf99

Browse files
committed
maint: make linux/kvm.h parseable on arm
* maint/ioctls_sym.sh [AARCH64 || ARM]: Add missing definitions for structures referenced from linux/kvm.h.
1 parent e459ba9 commit f95cf99

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

maint/ioctls_sym.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,30 @@ __EOF__
237237
*linux/kvm.h)
238238
cat <<'__EOF__'
239239
#if defined __x86_64__ || defined __i386__
240-
struct kvm_create_spapr_tce { __u32 unused[3]; };
241240
struct kvm_allocate_rma { __u32 unused[2]; };
241+
struct kvm_create_spapr_tce { __u32 unused[3]; };
242242
struct kvm_get_htab_fd { __u32 unused[8]; };
243243
struct kvm_rtas_token_args { __u8 unused[128]; };
244244
struct kvm_vcpu_init { __u32 unused[8]; };
245+
#elif defined __arm64__ || defined __arm__
246+
struct kvm_allocate_rma { __u32 unused[2]; };
247+
struct kvm_cpuid { __u32 unused[2]; };
248+
struct kvm_cpuid2 { __u32 unused[2]; };
249+
struct kvm_create_spapr_tce { __u32 unused[3]; };
250+
struct kvm_debugregs { __u32 unused[32]; };
251+
struct kvm_get_htab_fd { __u32 unused[8]; };
252+
struct kvm_lapic_state { __u32 unused[256]; };
253+
struct kvm_memory_alias { __u32 unused[8]; };
254+
struct kvm_msr_list { __u32 unused[1]; };
255+
struct kvm_msrs { __u32 unused[2]; };
256+
struct kvm_pit_state { __u32 unused[18]; };
257+
struct kvm_pit_state2 { __u32 unused[28]; };
258+
struct kvm_rtas_token_args { __u32 unused[128]; };
259+
struct kvm_vcpu_events { __u32 unused[16]; };
260+
struct kvm_x86_mce { __u32 unused[16]; };
261+
struct kvm_xcrs { __u32 unused[98]; };
262+
struct kvm_xen_hvm_config { __u32 unused[14]; };
263+
struct kvm_xsave { __u32 unused[1024]; };
245264
#endif
246265
__EOF__
247266
;;

0 commit comments

Comments
 (0)