1 // Copyright 2019 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /* automatically generated by rust-bindgen */
6
7 #[repr(C)]
8 #[derive(Default)]
9 pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>);
10 impl<T> __IncompleteArrayField<T> {
11 #[inline]
new() -> Self12 pub fn new() -> Self {
13 __IncompleteArrayField(::std::marker::PhantomData)
14 }
15 #[inline]
as_ptr(&self) -> *const T16 pub unsafe fn as_ptr(&self) -> *const T {
17 ::std::mem::transmute(self)
18 }
19 #[inline]
as_mut_ptr(&mut self) -> *mut T20 pub unsafe fn as_mut_ptr(&mut self) -> *mut T {
21 ::std::mem::transmute(self)
22 }
23 #[inline]
as_slice(&self, len: usize) -> &[T]24 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
25 ::std::slice::from_raw_parts(self.as_ptr(), len)
26 }
27 #[inline]
as_mut_slice(&mut self, len: usize) -> &mut [T]28 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
29 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
30 }
31 }
32 impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result33 fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
34 fmt.write_str("__IncompleteArrayField")
35 }
36 }
37 impl<T> ::std::clone::Clone for __IncompleteArrayField<T> {
38 #[inline]
clone(&self) -> Self39 fn clone(&self) -> Self {
40 Self::new()
41 }
42 }
43 impl<T> ::std::marker::Copy for __IncompleteArrayField<T> {}
44 pub const __BITS_PER_LONG: ::std::os::raw::c_uint = 64;
45 pub const __FD_SETSIZE: ::std::os::raw::c_uint = 1024;
46 pub const _IOC_NRBITS: ::std::os::raw::c_uint = 8;
47 pub const _IOC_TYPEBITS: ::std::os::raw::c_uint = 8;
48 pub const _IOC_SIZEBITS: ::std::os::raw::c_uint = 14;
49 pub const _IOC_DIRBITS: ::std::os::raw::c_uint = 2;
50 pub const _IOC_NRMASK: ::std::os::raw::c_uint = 255;
51 pub const _IOC_TYPEMASK: ::std::os::raw::c_uint = 255;
52 pub const _IOC_SIZEMASK: ::std::os::raw::c_uint = 16383;
53 pub const _IOC_DIRMASK: ::std::os::raw::c_uint = 3;
54 pub const _IOC_NRSHIFT: ::std::os::raw::c_uint = 0;
55 pub const _IOC_TYPESHIFT: ::std::os::raw::c_uint = 8;
56 pub const _IOC_SIZESHIFT: ::std::os::raw::c_uint = 16;
57 pub const _IOC_DIRSHIFT: ::std::os::raw::c_uint = 30;
58 pub const _IOC_NONE: ::std::os::raw::c_uint = 0;
59 pub const _IOC_WRITE: ::std::os::raw::c_uint = 1;
60 pub const _IOC_READ: ::std::os::raw::c_uint = 2;
61 pub const IOC_IN: ::std::os::raw::c_uint = 1073741824;
62 pub const IOC_OUT: ::std::os::raw::c_uint = 2147483648;
63 pub const IOC_INOUT: ::std::os::raw::c_uint = 3221225472;
64 pub const IOCSIZE_MASK: ::std::os::raw::c_uint = 1073676288;
65 pub const IOCSIZE_SHIFT: ::std::os::raw::c_uint = 16;
66 pub const KVM_SPSR_EL1: ::std::os::raw::c_uint = 0;
67 pub const KVM_SPSR_SVC: ::std::os::raw::c_uint = 0;
68 pub const KVM_SPSR_ABT: ::std::os::raw::c_uint = 1;
69 pub const KVM_SPSR_UND: ::std::os::raw::c_uint = 2;
70 pub const KVM_SPSR_IRQ: ::std::os::raw::c_uint = 3;
71 pub const KVM_SPSR_FIQ: ::std::os::raw::c_uint = 4;
72 pub const KVM_NR_SPSR: ::std::os::raw::c_uint = 5;
73 pub const PSCI_0_2_FN_BASE: ::std::os::raw::c_uint = 2214592512;
74 pub const PSCI_0_2_64BIT: ::std::os::raw::c_uint = 1073741824;
75 pub const PSCI_0_2_FN64_BASE: ::std::os::raw::c_uint = 3288334336;
76 pub const PSCI_0_2_POWER_STATE_ID_MASK: ::std::os::raw::c_uint = 65535;
77 pub const PSCI_0_2_POWER_STATE_ID_SHIFT: ::std::os::raw::c_uint = 0;
78 pub const PSCI_0_2_POWER_STATE_TYPE_SHIFT: ::std::os::raw::c_uint = 16;
79 pub const PSCI_0_2_POWER_STATE_TYPE_MASK: ::std::os::raw::c_uint = 65536;
80 pub const PSCI_0_2_POWER_STATE_AFFL_SHIFT: ::std::os::raw::c_uint = 24;
81 pub const PSCI_0_2_POWER_STATE_AFFL_MASK: ::std::os::raw::c_uint = 50331648;
82 pub const PSCI_1_0_EXT_POWER_STATE_ID_MASK: ::std::os::raw::c_uint = 268435455;
83 pub const PSCI_1_0_EXT_POWER_STATE_ID_SHIFT: ::std::os::raw::c_uint = 0;
84 pub const PSCI_1_0_EXT_POWER_STATE_TYPE_SHIFT: ::std::os::raw::c_uint = 30;
85 pub const PSCI_1_0_EXT_POWER_STATE_TYPE_MASK: ::std::os::raw::c_uint = 1073741824;
86 pub const PSCI_0_2_AFFINITY_LEVEL_ON: ::std::os::raw::c_uint = 0;
87 pub const PSCI_0_2_AFFINITY_LEVEL_OFF: ::std::os::raw::c_uint = 1;
88 pub const PSCI_0_2_AFFINITY_LEVEL_ON_PENDING: ::std::os::raw::c_uint = 2;
89 pub const PSCI_0_2_TOS_UP_MIGRATE: ::std::os::raw::c_uint = 0;
90 pub const PSCI_0_2_TOS_UP_NO_MIGRATE: ::std::os::raw::c_uint = 1;
91 pub const PSCI_0_2_TOS_MP: ::std::os::raw::c_uint = 2;
92 pub const PSCI_VERSION_MAJOR_SHIFT: ::std::os::raw::c_uint = 16;
93 pub const PSCI_VERSION_MINOR_MASK: ::std::os::raw::c_uint = 65535;
94 pub const PSCI_VERSION_MAJOR_MASK: ::std::os::raw::c_int = -65536;
95 pub const PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT: ::std::os::raw::c_uint = 1;
96 pub const PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK: ::std::os::raw::c_uint = 2;
97 pub const PSCI_RET_SUCCESS: ::std::os::raw::c_uint = 0;
98 pub const PSCI_RET_NOT_SUPPORTED: ::std::os::raw::c_int = -1;
99 pub const PSCI_RET_INVALID_PARAMS: ::std::os::raw::c_int = -2;
100 pub const PSCI_RET_DENIED: ::std::os::raw::c_int = -3;
101 pub const PSCI_RET_ALREADY_ON: ::std::os::raw::c_int = -4;
102 pub const PSCI_RET_ON_PENDING: ::std::os::raw::c_int = -5;
103 pub const PSCI_RET_INTERNAL_FAILURE: ::std::os::raw::c_int = -6;
104 pub const PSCI_RET_NOT_PRESENT: ::std::os::raw::c_int = -7;
105 pub const PSCI_RET_DISABLED: ::std::os::raw::c_int = -8;
106 pub const PSCI_RET_INVALID_ADDRESS: ::std::os::raw::c_int = -9;
107 pub const HWCAP_FP: ::std::os::raw::c_uint = 1;
108 pub const HWCAP_ASIMD: ::std::os::raw::c_uint = 2;
109 pub const HWCAP_EVTSTRM: ::std::os::raw::c_uint = 4;
110 pub const HWCAP_AES: ::std::os::raw::c_uint = 8;
111 pub const HWCAP_PMULL: ::std::os::raw::c_uint = 16;
112 pub const HWCAP_SHA1: ::std::os::raw::c_uint = 32;
113 pub const HWCAP_SHA2: ::std::os::raw::c_uint = 64;
114 pub const HWCAP_CRC32: ::std::os::raw::c_uint = 128;
115 pub const HWCAP_ATOMICS: ::std::os::raw::c_uint = 256;
116 pub const PSR_MODE_EL0t: ::std::os::raw::c_uint = 0;
117 pub const PSR_MODE_EL1t: ::std::os::raw::c_uint = 4;
118 pub const PSR_MODE_EL1h: ::std::os::raw::c_uint = 5;
119 pub const PSR_MODE_EL2t: ::std::os::raw::c_uint = 8;
120 pub const PSR_MODE_EL2h: ::std::os::raw::c_uint = 9;
121 pub const PSR_MODE_EL3t: ::std::os::raw::c_uint = 12;
122 pub const PSR_MODE_EL3h: ::std::os::raw::c_uint = 13;
123 pub const PSR_MODE_MASK: ::std::os::raw::c_uint = 15;
124 pub const PSR_MODE32_BIT: ::std::os::raw::c_uint = 16;
125 pub const PSR_F_BIT: ::std::os::raw::c_uint = 64;
126 pub const PSR_I_BIT: ::std::os::raw::c_uint = 128;
127 pub const PSR_A_BIT: ::std::os::raw::c_uint = 256;
128 pub const PSR_D_BIT: ::std::os::raw::c_uint = 512;
129 pub const PSR_PAN_BIT: ::std::os::raw::c_uint = 4194304;
130 pub const PSR_Q_BIT: ::std::os::raw::c_uint = 134217728;
131 pub const PSR_V_BIT: ::std::os::raw::c_uint = 268435456;
132 pub const PSR_C_BIT: ::std::os::raw::c_uint = 536870912;
133 pub const PSR_Z_BIT: ::std::os::raw::c_uint = 1073741824;
134 pub const PSR_N_BIT: ::std::os::raw::c_uint = 2147483648;
135 pub const PSR_f: ::std::os::raw::c_uint = 4278190080;
136 pub const PSR_s: ::std::os::raw::c_uint = 16711680;
137 pub const PSR_x: ::std::os::raw::c_uint = 65280;
138 pub const PSR_c: ::std::os::raw::c_uint = 255;
139 pub const KVM_ARM_TARGET_AEM_V8: ::std::os::raw::c_uint = 0;
140 pub const KVM_ARM_TARGET_FOUNDATION_V8: ::std::os::raw::c_uint = 1;
141 pub const KVM_ARM_TARGET_CORTEX_A57: ::std::os::raw::c_uint = 2;
142 pub const KVM_ARM_TARGET_XGENE_POTENZA: ::std::os::raw::c_uint = 3;
143 pub const KVM_ARM_TARGET_CORTEX_A53: ::std::os::raw::c_uint = 4;
144 pub const KVM_ARM_TARGET_GENERIC_V8: ::std::os::raw::c_uint = 5;
145 pub const KVM_ARM_NUM_TARGETS: ::std::os::raw::c_uint = 6;
146 pub const KVM_ARM_DEVICE_TYPE_SHIFT: ::std::os::raw::c_uint = 0;
147 pub const KVM_ARM_DEVICE_TYPE_MASK: ::std::os::raw::c_uint = 65535;
148 pub const KVM_ARM_DEVICE_ID_SHIFT: ::std::os::raw::c_uint = 16;
149 pub const KVM_ARM_DEVICE_ID_MASK: ::std::os::raw::c_uint = 4294901760;
150 pub const KVM_ARM_DEVICE_VGIC_V2: ::std::os::raw::c_uint = 0;
151 pub const KVM_VGIC_V2_ADDR_TYPE_DIST: ::std::os::raw::c_uint = 0;
152 pub const KVM_VGIC_V2_ADDR_TYPE_CPU: ::std::os::raw::c_uint = 1;
153 pub const KVM_VGIC_V2_DIST_SIZE: ::std::os::raw::c_uint = 4096;
154 pub const KVM_VGIC_V2_CPU_SIZE: ::std::os::raw::c_uint = 8192;
155 pub const KVM_VGIC_V3_ADDR_TYPE_DIST: ::std::os::raw::c_uint = 2;
156 pub const KVM_VGIC_V3_ADDR_TYPE_REDIST: ::std::os::raw::c_uint = 3;
157 pub const KVM_ARM_VCPU_POWER_OFF: ::std::os::raw::c_uint = 0;
158 pub const KVM_ARM_VCPU_EL1_32BIT: ::std::os::raw::c_uint = 1;
159 pub const KVM_ARM_VCPU_PSCI_0_2: ::std::os::raw::c_uint = 2;
160 pub const KVM_ARM_MAX_DBG_REGS: ::std::os::raw::c_uint = 16;
161 pub const KVM_GUESTDBG_USE_SW_BP: ::std::os::raw::c_uint = 65536;
162 pub const KVM_GUESTDBG_USE_HW: ::std::os::raw::c_uint = 131072;
163 pub const KVM_REG_ARM_COPROC_MASK: ::std::os::raw::c_uint = 268369920;
164 pub const KVM_REG_ARM_COPROC_SHIFT: ::std::os::raw::c_uint = 16;
165 pub const KVM_REG_ARM_CORE: ::std::os::raw::c_uint = 1048576;
166 pub const KVM_REG_ARM_DEMUX: ::std::os::raw::c_uint = 1114112;
167 pub const KVM_REG_ARM_DEMUX_ID_MASK: ::std::os::raw::c_uint = 65280;
168 pub const KVM_REG_ARM_DEMUX_ID_SHIFT: ::std::os::raw::c_uint = 8;
169 pub const KVM_REG_ARM_DEMUX_ID_CCSIDR: ::std::os::raw::c_uint = 0;
170 pub const KVM_REG_ARM_DEMUX_VAL_MASK: ::std::os::raw::c_uint = 255;
171 pub const KVM_REG_ARM_DEMUX_VAL_SHIFT: ::std::os::raw::c_uint = 0;
172 pub const KVM_REG_ARM64_SYSREG: ::std::os::raw::c_uint = 1245184;
173 pub const KVM_REG_ARM64_SYSREG_OP0_MASK: ::std::os::raw::c_uint = 49152;
174 pub const KVM_REG_ARM64_SYSREG_OP0_SHIFT: ::std::os::raw::c_uint = 14;
175 pub const KVM_REG_ARM64_SYSREG_OP1_MASK: ::std::os::raw::c_uint = 14336;
176 pub const KVM_REG_ARM64_SYSREG_OP1_SHIFT: ::std::os::raw::c_uint = 11;
177 pub const KVM_REG_ARM64_SYSREG_CRN_MASK: ::std::os::raw::c_uint = 1920;
178 pub const KVM_REG_ARM64_SYSREG_CRN_SHIFT: ::std::os::raw::c_uint = 7;
179 pub const KVM_REG_ARM64_SYSREG_CRM_MASK: ::std::os::raw::c_uint = 120;
180 pub const KVM_REG_ARM64_SYSREG_CRM_SHIFT: ::std::os::raw::c_uint = 3;
181 pub const KVM_REG_ARM64_SYSREG_OP2_MASK: ::std::os::raw::c_uint = 7;
182 pub const KVM_REG_ARM64_SYSREG_OP2_SHIFT: ::std::os::raw::c_uint = 0;
183 pub const KVM_DEV_ARM_VGIC_GRP_ADDR: ::std::os::raw::c_uint = 0;
184 pub const KVM_DEV_ARM_VGIC_GRP_DIST_REGS: ::std::os::raw::c_uint = 1;
185 pub const KVM_DEV_ARM_VGIC_GRP_CPU_REGS: ::std::os::raw::c_uint = 2;
186 pub const KVM_DEV_ARM_VGIC_CPUID_SHIFT: ::std::os::raw::c_uint = 32;
187 pub const KVM_DEV_ARM_VGIC_CPUID_MASK: ::std::os::raw::c_ulonglong = 1095216660480;
188 pub const KVM_DEV_ARM_VGIC_OFFSET_SHIFT: ::std::os::raw::c_uint = 0;
189 pub const KVM_DEV_ARM_VGIC_OFFSET_MASK: ::std::os::raw::c_uint = 4294967295;
190 pub const KVM_DEV_ARM_VGIC_GRP_NR_IRQS: ::std::os::raw::c_uint = 3;
191 pub const KVM_DEV_ARM_VGIC_GRP_CTRL: ::std::os::raw::c_uint = 4;
192 pub const KVM_DEV_ARM_VGIC_CTRL_INIT: ::std::os::raw::c_uint = 0;
193 pub const KVM_ARM_IRQ_TYPE_SHIFT: ::std::os::raw::c_uint = 24;
194 pub const KVM_ARM_IRQ_TYPE_MASK: ::std::os::raw::c_uint = 255;
195 pub const KVM_ARM_IRQ_VCPU_SHIFT: ::std::os::raw::c_uint = 16;
196 pub const KVM_ARM_IRQ_VCPU_MASK: ::std::os::raw::c_uint = 255;
197 pub const KVM_ARM_IRQ_NUM_SHIFT: ::std::os::raw::c_uint = 0;
198 pub const KVM_ARM_IRQ_NUM_MASK: ::std::os::raw::c_uint = 65535;
199 pub const KVM_ARM_IRQ_TYPE_CPU: ::std::os::raw::c_uint = 0;
200 pub const KVM_ARM_IRQ_TYPE_SPI: ::std::os::raw::c_uint = 1;
201 pub const KVM_ARM_IRQ_TYPE_PPI: ::std::os::raw::c_uint = 2;
202 pub const KVM_ARM_IRQ_CPU_IRQ: ::std::os::raw::c_uint = 0;
203 pub const KVM_ARM_IRQ_CPU_FIQ: ::std::os::raw::c_uint = 1;
204 pub const KVM_ARM_IRQ_GIC_MAX: ::std::os::raw::c_uint = 127;
205 pub const KVM_NR_IRQCHIPS: ::std::os::raw::c_uint = 1;
206 pub const KVM_PSCI_FN_BASE: ::std::os::raw::c_uint = 2512501342;
207 pub const KVM_PSCI_RET_SUCCESS: ::std::os::raw::c_uint = 0;
208 pub const KVM_PSCI_RET_NI: ::std::os::raw::c_int = -1;
209 pub const KVM_PSCI_RET_INVAL: ::std::os::raw::c_int = -2;
210 pub const KVM_PSCI_RET_DENIED: ::std::os::raw::c_int = -3;
211 pub const KVM_API_VERSION: ::std::os::raw::c_uint = 12;
212 pub const KVM_TRC_SHIFT: ::std::os::raw::c_uint = 16;
213 pub const KVM_TRC_ENTRYEXIT: ::std::os::raw::c_uint = 65536;
214 pub const KVM_TRC_HANDLER: ::std::os::raw::c_uint = 131072;
215 pub const KVM_TRC_VMENTRY: ::std::os::raw::c_uint = 65537;
216 pub const KVM_TRC_VMEXIT: ::std::os::raw::c_uint = 65538;
217 pub const KVM_TRC_PAGE_FAULT: ::std::os::raw::c_uint = 131073;
218 pub const KVM_TRC_HEAD_SIZE: ::std::os::raw::c_uint = 12;
219 pub const KVM_TRC_CYCLE_SIZE: ::std::os::raw::c_uint = 8;
220 pub const KVM_TRC_EXTRA_MAX: ::std::os::raw::c_uint = 7;
221 pub const KVM_TRC_INJ_VIRQ: ::std::os::raw::c_uint = 131074;
222 pub const KVM_TRC_REDELIVER_EVT: ::std::os::raw::c_uint = 131075;
223 pub const KVM_TRC_PEND_INTR: ::std::os::raw::c_uint = 131076;
224 pub const KVM_TRC_IO_READ: ::std::os::raw::c_uint = 131077;
225 pub const KVM_TRC_IO_WRITE: ::std::os::raw::c_uint = 131078;
226 pub const KVM_TRC_CR_READ: ::std::os::raw::c_uint = 131079;
227 pub const KVM_TRC_CR_WRITE: ::std::os::raw::c_uint = 131080;
228 pub const KVM_TRC_DR_READ: ::std::os::raw::c_uint = 131081;
229 pub const KVM_TRC_DR_WRITE: ::std::os::raw::c_uint = 131082;
230 pub const KVM_TRC_MSR_READ: ::std::os::raw::c_uint = 131083;
231 pub const KVM_TRC_MSR_WRITE: ::std::os::raw::c_uint = 131084;
232 pub const KVM_TRC_CPUID: ::std::os::raw::c_uint = 131085;
233 pub const KVM_TRC_INTR: ::std::os::raw::c_uint = 131086;
234 pub const KVM_TRC_NMI: ::std::os::raw::c_uint = 131087;
235 pub const KVM_TRC_VMMCALL: ::std::os::raw::c_uint = 131088;
236 pub const KVM_TRC_HLT: ::std::os::raw::c_uint = 131089;
237 pub const KVM_TRC_CLTS: ::std::os::raw::c_uint = 131090;
238 pub const KVM_TRC_LMSW: ::std::os::raw::c_uint = 131091;
239 pub const KVM_TRC_APIC_ACCESS: ::std::os::raw::c_uint = 131092;
240 pub const KVM_TRC_TDP_FAULT: ::std::os::raw::c_uint = 131093;
241 pub const KVM_TRC_GTLB_WRITE: ::std::os::raw::c_uint = 131094;
242 pub const KVM_TRC_STLB_WRITE: ::std::os::raw::c_uint = 131095;
243 pub const KVM_TRC_STLB_INVAL: ::std::os::raw::c_uint = 131096;
244 pub const KVM_TRC_PPC_INSTR: ::std::os::raw::c_uint = 131097;
245 pub const KVM_MEM_LOG_DIRTY_PAGES: ::std::os::raw::c_uint = 1;
246 pub const KVM_MEM_READONLY: ::std::os::raw::c_uint = 2;
247 pub const KVM_PIT_SPEAKER_DUMMY: ::std::os::raw::c_uint = 1;
248 pub const KVM_S390_GET_SKEYS_NONE: ::std::os::raw::c_uint = 1;
249 pub const KVM_S390_SKEYS_MAX: ::std::os::raw::c_uint = 1048576;
250 pub const KVM_EXIT_UNKNOWN: ::std::os::raw::c_uint = 0;
251 pub const KVM_EXIT_EXCEPTION: ::std::os::raw::c_uint = 1;
252 pub const KVM_EXIT_IO: ::std::os::raw::c_uint = 2;
253 pub const KVM_EXIT_HYPERCALL: ::std::os::raw::c_uint = 3;
254 pub const KVM_EXIT_DEBUG: ::std::os::raw::c_uint = 4;
255 pub const KVM_EXIT_HLT: ::std::os::raw::c_uint = 5;
256 pub const KVM_EXIT_MMIO: ::std::os::raw::c_uint = 6;
257 pub const KVM_EXIT_IRQ_WINDOW_OPEN: ::std::os::raw::c_uint = 7;
258 pub const KVM_EXIT_SHUTDOWN: ::std::os::raw::c_uint = 8;
259 pub const KVM_EXIT_FAIL_ENTRY: ::std::os::raw::c_uint = 9;
260 pub const KVM_EXIT_INTR: ::std::os::raw::c_uint = 10;
261 pub const KVM_EXIT_SET_TPR: ::std::os::raw::c_uint = 11;
262 pub const KVM_EXIT_TPR_ACCESS: ::std::os::raw::c_uint = 12;
263 pub const KVM_EXIT_S390_SIEIC: ::std::os::raw::c_uint = 13;
264 pub const KVM_EXIT_S390_RESET: ::std::os::raw::c_uint = 14;
265 pub const KVM_EXIT_DCR: ::std::os::raw::c_uint = 15;
266 pub const KVM_EXIT_NMI: ::std::os::raw::c_uint = 16;
267 pub const KVM_EXIT_INTERNAL_ERROR: ::std::os::raw::c_uint = 17;
268 pub const KVM_EXIT_OSI: ::std::os::raw::c_uint = 18;
269 pub const KVM_EXIT_PAPR_HCALL: ::std::os::raw::c_uint = 19;
270 pub const KVM_EXIT_S390_UCONTROL: ::std::os::raw::c_uint = 20;
271 pub const KVM_EXIT_WATCHDOG: ::std::os::raw::c_uint = 21;
272 pub const KVM_EXIT_S390_TSCH: ::std::os::raw::c_uint = 22;
273 pub const KVM_EXIT_EPR: ::std::os::raw::c_uint = 23;
274 pub const KVM_EXIT_SYSTEM_EVENT: ::std::os::raw::c_uint = 24;
275 pub const KVM_EXIT_S390_STSI: ::std::os::raw::c_uint = 25;
276 pub const KVM_EXIT_IOAPIC_EOI: ::std::os::raw::c_uint = 26;
277 pub const KVM_INTERNAL_ERROR_EMULATION: ::std::os::raw::c_uint = 1;
278 pub const KVM_INTERNAL_ERROR_SIMUL_EX: ::std::os::raw::c_uint = 2;
279 pub const KVM_INTERNAL_ERROR_DELIVERY_EV: ::std::os::raw::c_uint = 3;
280 pub const KVM_EXIT_IO_IN: ::std::os::raw::c_uint = 0;
281 pub const KVM_EXIT_IO_OUT: ::std::os::raw::c_uint = 1;
282 pub const KVM_S390_RESET_POR: ::std::os::raw::c_uint = 1;
283 pub const KVM_S390_RESET_CLEAR: ::std::os::raw::c_uint = 2;
284 pub const KVM_S390_RESET_SUBSYSTEM: ::std::os::raw::c_uint = 4;
285 pub const KVM_S390_RESET_CPU_INIT: ::std::os::raw::c_uint = 8;
286 pub const KVM_S390_RESET_IPL: ::std::os::raw::c_uint = 16;
287 pub const KVM_SYSTEM_EVENT_SHUTDOWN: ::std::os::raw::c_uint = 1;
288 pub const KVM_SYSTEM_EVENT_RESET: ::std::os::raw::c_uint = 2;
289 pub const KVM_SYSTEM_EVENT_CRASH: ::std::os::raw::c_uint = 3;
290 pub const KVM_S390_MEMOP_LOGICAL_READ: ::std::os::raw::c_uint = 0;
291 pub const KVM_S390_MEMOP_LOGICAL_WRITE: ::std::os::raw::c_uint = 1;
292 pub const KVM_S390_MEMOP_F_CHECK_ONLY: ::std::os::raw::c_uint = 1;
293 pub const KVM_S390_MEMOP_F_INJECT_EXCEPTION: ::std::os::raw::c_uint = 2;
294 pub const KVM_MP_STATE_RUNNABLE: ::std::os::raw::c_uint = 0;
295 pub const KVM_MP_STATE_UNINITIALIZED: ::std::os::raw::c_uint = 1;
296 pub const KVM_MP_STATE_INIT_RECEIVED: ::std::os::raw::c_uint = 2;
297 pub const KVM_MP_STATE_HALTED: ::std::os::raw::c_uint = 3;
298 pub const KVM_MP_STATE_SIPI_RECEIVED: ::std::os::raw::c_uint = 4;
299 pub const KVM_MP_STATE_STOPPED: ::std::os::raw::c_uint = 5;
300 pub const KVM_MP_STATE_CHECK_STOP: ::std::os::raw::c_uint = 6;
301 pub const KVM_MP_STATE_OPERATING: ::std::os::raw::c_uint = 7;
302 pub const KVM_MP_STATE_LOAD: ::std::os::raw::c_uint = 8;
303 pub const KVM_S390_SIGP_STOP: ::std::os::raw::c_uint = 4294836224;
304 pub const KVM_S390_PROGRAM_INT: ::std::os::raw::c_uint = 4294836225;
305 pub const KVM_S390_SIGP_SET_PREFIX: ::std::os::raw::c_uint = 4294836226;
306 pub const KVM_S390_RESTART: ::std::os::raw::c_uint = 4294836227;
307 pub const KVM_S390_INT_PFAULT_INIT: ::std::os::raw::c_uint = 4294836228;
308 pub const KVM_S390_INT_PFAULT_DONE: ::std::os::raw::c_uint = 4294836229;
309 pub const KVM_S390_MCHK: ::std::os::raw::c_uint = 4294840320;
310 pub const KVM_S390_INT_CLOCK_COMP: ::std::os::raw::c_uint = 4294905860;
311 pub const KVM_S390_INT_CPU_TIMER: ::std::os::raw::c_uint = 4294905861;
312 pub const KVM_S390_INT_VIRTIO: ::std::os::raw::c_uint = 4294911491;
313 pub const KVM_S390_INT_SERVICE: ::std::os::raw::c_uint = 4294910977;
314 pub const KVM_S390_INT_EMERGENCY: ::std::os::raw::c_uint = 4294906369;
315 pub const KVM_S390_INT_EXTERNAL_CALL: ::std::os::raw::c_uint = 4294906370;
316 pub const KVM_S390_INT_IO_MIN: ::std::os::raw::c_uint = 0;
317 pub const KVM_S390_INT_IO_MAX: ::std::os::raw::c_uint = 4294836223;
318 pub const KVM_S390_INT_IO_AI_MASK: ::std::os::raw::c_uint = 67108864;
319 pub const KVM_S390_STOP_FLAG_STORE_STATUS: ::std::os::raw::c_uint = 1;
320 pub const KVM_GUESTDBG_ENABLE: ::std::os::raw::c_uint = 1;
321 pub const KVM_GUESTDBG_SINGLESTEP: ::std::os::raw::c_uint = 2;
322 pub const KVM_PPC_PAGE_SIZES_MAX_SZ: ::std::os::raw::c_uint = 8;
323 pub const KVM_PPC_PAGE_SIZES_REAL: ::std::os::raw::c_uint = 1;
324 pub const KVM_PPC_1T_SEGMENTS: ::std::os::raw::c_uint = 2;
325 pub const KVM_PPC_PVINFO_FLAGS_EV_IDLE: ::std::os::raw::c_uint = 1;
326 pub const KVMIO: ::std::os::raw::c_uint = 174;
327 pub const KVM_VM_S390_UCONTROL: ::std::os::raw::c_uint = 1;
328 pub const KVM_VM_PPC_HV: ::std::os::raw::c_uint = 1;
329 pub const KVM_VM_PPC_PR: ::std::os::raw::c_uint = 2;
330 pub const KVM_S390_SIE_PAGE_OFFSET: ::std::os::raw::c_uint = 1;
331 pub const KVM_CAP_IRQCHIP: ::std::os::raw::c_uint = 0;
332 pub const KVM_CAP_HLT: ::std::os::raw::c_uint = 1;
333 pub const KVM_CAP_MMU_SHADOW_CACHE_CONTROL: ::std::os::raw::c_uint = 2;
334 pub const KVM_CAP_USER_MEMORY: ::std::os::raw::c_uint = 3;
335 pub const KVM_CAP_SET_TSS_ADDR: ::std::os::raw::c_uint = 4;
336 pub const KVM_CAP_VAPIC: ::std::os::raw::c_uint = 6;
337 pub const KVM_CAP_EXT_CPUID: ::std::os::raw::c_uint = 7;
338 pub const KVM_CAP_CLOCKSOURCE: ::std::os::raw::c_uint = 8;
339 pub const KVM_CAP_NR_VCPUS: ::std::os::raw::c_uint = 9;
340 pub const KVM_CAP_NR_MEMSLOTS: ::std::os::raw::c_uint = 10;
341 pub const KVM_CAP_PIT: ::std::os::raw::c_uint = 11;
342 pub const KVM_CAP_NOP_IO_DELAY: ::std::os::raw::c_uint = 12;
343 pub const KVM_CAP_PV_MMU: ::std::os::raw::c_uint = 13;
344 pub const KVM_CAP_MP_STATE: ::std::os::raw::c_uint = 14;
345 pub const KVM_CAP_COALESCED_MMIO: ::std::os::raw::c_uint = 15;
346 pub const KVM_CAP_SYNC_MMU: ::std::os::raw::c_uint = 16;
347 pub const KVM_CAP_IOMMU: ::std::os::raw::c_uint = 18;
348 pub const KVM_CAP_DESTROY_MEMORY_REGION_WORKS: ::std::os::raw::c_uint = 21;
349 pub const KVM_CAP_USER_NMI: ::std::os::raw::c_uint = 22;
350 pub const KVM_CAP_SET_GUEST_DEBUG: ::std::os::raw::c_uint = 23;
351 pub const KVM_CAP_IRQ_ROUTING: ::std::os::raw::c_uint = 25;
352 pub const KVM_CAP_IRQ_INJECT_STATUS: ::std::os::raw::c_uint = 26;
353 pub const KVM_CAP_ASSIGN_DEV_IRQ: ::std::os::raw::c_uint = 29;
354 pub const KVM_CAP_JOIN_MEMORY_REGIONS_WORKS: ::std::os::raw::c_uint = 30;
355 pub const KVM_CAP_IRQFD: ::std::os::raw::c_uint = 32;
356 pub const KVM_CAP_SET_BOOT_CPU_ID: ::std::os::raw::c_uint = 34;
357 pub const KVM_CAP_IOEVENTFD: ::std::os::raw::c_uint = 36;
358 pub const KVM_CAP_SET_IDENTITY_MAP_ADDR: ::std::os::raw::c_uint = 37;
359 pub const KVM_CAP_ADJUST_CLOCK: ::std::os::raw::c_uint = 39;
360 pub const KVM_CAP_INTERNAL_ERROR_DATA: ::std::os::raw::c_uint = 40;
361 pub const KVM_CAP_S390_PSW: ::std::os::raw::c_uint = 42;
362 pub const KVM_CAP_PPC_SEGSTATE: ::std::os::raw::c_uint = 43;
363 pub const KVM_CAP_HYPERV: ::std::os::raw::c_uint = 44;
364 pub const KVM_CAP_HYPERV_VAPIC: ::std::os::raw::c_uint = 45;
365 pub const KVM_CAP_HYPERV_SPIN: ::std::os::raw::c_uint = 46;
366 pub const KVM_CAP_PCI_SEGMENT: ::std::os::raw::c_uint = 47;
367 pub const KVM_CAP_PPC_PAIRED_SINGLES: ::std::os::raw::c_uint = 48;
368 pub const KVM_CAP_INTR_SHADOW: ::std::os::raw::c_uint = 49;
369 pub const KVM_CAP_X86_ROBUST_SINGLESTEP: ::std::os::raw::c_uint = 51;
370 pub const KVM_CAP_PPC_OSI: ::std::os::raw::c_uint = 52;
371 pub const KVM_CAP_PPC_UNSET_IRQ: ::std::os::raw::c_uint = 53;
372 pub const KVM_CAP_ENABLE_CAP: ::std::os::raw::c_uint = 54;
373 pub const KVM_CAP_PPC_GET_PVINFO: ::std::os::raw::c_uint = 57;
374 pub const KVM_CAP_PPC_IRQ_LEVEL: ::std::os::raw::c_uint = 58;
375 pub const KVM_CAP_ASYNC_PF: ::std::os::raw::c_uint = 59;
376 pub const KVM_CAP_TSC_CONTROL: ::std::os::raw::c_uint = 60;
377 pub const KVM_CAP_GET_TSC_KHZ: ::std::os::raw::c_uint = 61;
378 pub const KVM_CAP_PPC_BOOKE_SREGS: ::std::os::raw::c_uint = 62;
379 pub const KVM_CAP_SPAPR_TCE: ::std::os::raw::c_uint = 63;
380 pub const KVM_CAP_PPC_SMT: ::std::os::raw::c_uint = 64;
381 pub const KVM_CAP_PPC_RMA: ::std::os::raw::c_uint = 65;
382 pub const KVM_CAP_MAX_VCPUS: ::std::os::raw::c_uint = 66;
383 pub const KVM_CAP_PPC_HIOR: ::std::os::raw::c_uint = 67;
384 pub const KVM_CAP_PPC_PAPR: ::std::os::raw::c_uint = 68;
385 pub const KVM_CAP_SW_TLB: ::std::os::raw::c_uint = 69;
386 pub const KVM_CAP_ONE_REG: ::std::os::raw::c_uint = 70;
387 pub const KVM_CAP_S390_GMAP: ::std::os::raw::c_uint = 71;
388 pub const KVM_CAP_TSC_DEADLINE_TIMER: ::std::os::raw::c_uint = 72;
389 pub const KVM_CAP_S390_UCONTROL: ::std::os::raw::c_uint = 73;
390 pub const KVM_CAP_SYNC_REGS: ::std::os::raw::c_uint = 74;
391 pub const KVM_CAP_PCI_2_3: ::std::os::raw::c_uint = 75;
392 pub const KVM_CAP_KVMCLOCK_CTRL: ::std::os::raw::c_uint = 76;
393 pub const KVM_CAP_SIGNAL_MSI: ::std::os::raw::c_uint = 77;
394 pub const KVM_CAP_PPC_GET_SMMU_INFO: ::std::os::raw::c_uint = 78;
395 pub const KVM_CAP_S390_COW: ::std::os::raw::c_uint = 79;
396 pub const KVM_CAP_PPC_ALLOC_HTAB: ::std::os::raw::c_uint = 80;
397 pub const KVM_CAP_READONLY_MEM: ::std::os::raw::c_uint = 81;
398 pub const KVM_CAP_IRQFD_RESAMPLE: ::std::os::raw::c_uint = 82;
399 pub const KVM_CAP_PPC_BOOKE_WATCHDOG: ::std::os::raw::c_uint = 83;
400 pub const KVM_CAP_PPC_HTAB_FD: ::std::os::raw::c_uint = 84;
401 pub const KVM_CAP_S390_CSS_SUPPORT: ::std::os::raw::c_uint = 85;
402 pub const KVM_CAP_PPC_EPR: ::std::os::raw::c_uint = 86;
403 pub const KVM_CAP_ARM_PSCI: ::std::os::raw::c_uint = 87;
404 pub const KVM_CAP_ARM_SET_DEVICE_ADDR: ::std::os::raw::c_uint = 88;
405 pub const KVM_CAP_DEVICE_CTRL: ::std::os::raw::c_uint = 89;
406 pub const KVM_CAP_IRQ_MPIC: ::std::os::raw::c_uint = 90;
407 pub const KVM_CAP_PPC_RTAS: ::std::os::raw::c_uint = 91;
408 pub const KVM_CAP_IRQ_XICS: ::std::os::raw::c_uint = 92;
409 pub const KVM_CAP_ARM_EL1_32BIT: ::std::os::raw::c_uint = 93;
410 pub const KVM_CAP_SPAPR_MULTITCE: ::std::os::raw::c_uint = 94;
411 pub const KVM_CAP_EXT_EMUL_CPUID: ::std::os::raw::c_uint = 95;
412 pub const KVM_CAP_HYPERV_TIME: ::std::os::raw::c_uint = 96;
413 pub const KVM_CAP_IOAPIC_POLARITY_IGNORED: ::std::os::raw::c_uint = 97;
414 pub const KVM_CAP_ENABLE_CAP_VM: ::std::os::raw::c_uint = 98;
415 pub const KVM_CAP_S390_IRQCHIP: ::std::os::raw::c_uint = 99;
416 pub const KVM_CAP_IOEVENTFD_NO_LENGTH: ::std::os::raw::c_uint = 100;
417 pub const KVM_CAP_VM_ATTRIBUTES: ::std::os::raw::c_uint = 101;
418 pub const KVM_CAP_ARM_PSCI_0_2: ::std::os::raw::c_uint = 102;
419 pub const KVM_CAP_PPC_FIXUP_HCALL: ::std::os::raw::c_uint = 103;
420 pub const KVM_CAP_PPC_ENABLE_HCALL: ::std::os::raw::c_uint = 104;
421 pub const KVM_CAP_CHECK_EXTENSION_VM: ::std::os::raw::c_uint = 105;
422 pub const KVM_CAP_S390_USER_SIGP: ::std::os::raw::c_uint = 106;
423 pub const KVM_CAP_S390_VECTOR_REGISTERS: ::std::os::raw::c_uint = 107;
424 pub const KVM_CAP_S390_MEM_OP: ::std::os::raw::c_uint = 108;
425 pub const KVM_CAP_S390_USER_STSI: ::std::os::raw::c_uint = 109;
426 pub const KVM_CAP_S390_SKEYS: ::std::os::raw::c_uint = 110;
427 pub const KVM_CAP_MIPS_FPU: ::std::os::raw::c_uint = 111;
428 pub const KVM_CAP_MIPS_MSA: ::std::os::raw::c_uint = 112;
429 pub const KVM_CAP_S390_INJECT_IRQ: ::std::os::raw::c_uint = 113;
430 pub const KVM_CAP_S390_IRQ_STATE: ::std::os::raw::c_uint = 114;
431 pub const KVM_CAP_PPC_HWRNG: ::std::os::raw::c_uint = 115;
432 pub const KVM_CAP_DISABLE_QUIRKS: ::std::os::raw::c_uint = 116;
433 pub const KVM_CAP_X86_SMM: ::std::os::raw::c_uint = 117;
434 pub const KVM_CAP_MULTI_ADDRESS_SPACE: ::std::os::raw::c_uint = 118;
435 pub const KVM_CAP_GUEST_DEBUG_HW_BPS: ::std::os::raw::c_uint = 119;
436 pub const KVM_CAP_GUEST_DEBUG_HW_WPS: ::std::os::raw::c_uint = 120;
437 pub const KVM_CAP_SPLIT_IRQCHIP: ::std::os::raw::c_uint = 121;
438 pub const KVM_CAP_IOEVENTFD_ANY_LENGTH: ::std::os::raw::c_uint = 122;
439 pub const KVM_IRQ_ROUTING_IRQCHIP: ::std::os::raw::c_uint = 1;
440 pub const KVM_IRQ_ROUTING_MSI: ::std::os::raw::c_uint = 2;
441 pub const KVM_IRQ_ROUTING_S390_ADAPTER: ::std::os::raw::c_uint = 3;
442 pub const KVM_IRQFD_FLAG_DEASSIGN: ::std::os::raw::c_uint = 1;
443 pub const KVM_IRQFD_FLAG_RESAMPLE: ::std::os::raw::c_uint = 2;
444 pub const KVM_MMU_FSL_BOOKE_NOHV: ::std::os::raw::c_uint = 0;
445 pub const KVM_MMU_FSL_BOOKE_HV: ::std::os::raw::c_uint = 1;
446 pub const KVM_REG_ARCH_MASK: ::std::os::raw::c_longlong = -72057594037927936;
447 pub const KVM_REG_GENERIC: ::std::os::raw::c_uint = 0;
448 pub const KVM_REG_PPC: ::std::os::raw::c_ulonglong = 1152921504606846976;
449 pub const KVM_REG_X86: ::std::os::raw::c_ulonglong = 2305843009213693952;
450 pub const KVM_REG_IA64: ::std::os::raw::c_ulonglong = 3458764513820540928;
451 pub const KVM_REG_ARM: ::std::os::raw::c_ulonglong = 4611686018427387904;
452 pub const KVM_REG_S390: ::std::os::raw::c_ulonglong = 5764607523034234880;
453 pub const KVM_REG_ARM64: ::std::os::raw::c_ulonglong = 6917529027641081856;
454 pub const KVM_REG_MIPS: ::std::os::raw::c_ulonglong = 8070450532247928832;
455 pub const KVM_REG_SIZE_SHIFT: ::std::os::raw::c_uint = 52;
456 pub const KVM_REG_SIZE_MASK: ::std::os::raw::c_ulonglong = 67553994410557440;
457 pub const KVM_REG_SIZE_U8: ::std::os::raw::c_uint = 0;
458 pub const KVM_REG_SIZE_U16: ::std::os::raw::c_ulonglong = 4503599627370496;
459 pub const KVM_REG_SIZE_U32: ::std::os::raw::c_ulonglong = 9007199254740992;
460 pub const KVM_REG_SIZE_U64: ::std::os::raw::c_ulonglong = 13510798882111488;
461 pub const KVM_REG_SIZE_U128: ::std::os::raw::c_ulonglong = 18014398509481984;
462 pub const KVM_REG_SIZE_U256: ::std::os::raw::c_ulonglong = 22517998136852480;
463 pub const KVM_REG_SIZE_U512: ::std::os::raw::c_ulonglong = 27021597764222976;
464 pub const KVM_REG_SIZE_U1024: ::std::os::raw::c_ulonglong = 31525197391593472;
465 pub const KVM_CREATE_DEVICE_TEST: ::std::os::raw::c_uint = 1;
466 pub const KVM_DEV_VFIO_GROUP: ::std::os::raw::c_uint = 1;
467 pub const KVM_DEV_VFIO_GROUP_ADD: ::std::os::raw::c_uint = 1;
468 pub const KVM_DEV_VFIO_GROUP_DEL: ::std::os::raw::c_uint = 2;
469 pub const KVM_S390_STORE_STATUS_NOADDR: ::std::os::raw::c_int = -1;
470 pub const KVM_S390_STORE_STATUS_PREFIXED: ::std::os::raw::c_int = -2;
471 pub const KVM_DEV_ASSIGN_ENABLE_IOMMU: ::std::os::raw::c_uint = 1;
472 pub const KVM_DEV_ASSIGN_PCI_2_3: ::std::os::raw::c_uint = 2;
473 pub const KVM_DEV_ASSIGN_MASK_INTX: ::std::os::raw::c_uint = 4;
474 pub const KVM_DEV_IRQ_HOST_INTX: ::std::os::raw::c_uint = 1;
475 pub const KVM_DEV_IRQ_HOST_MSI: ::std::os::raw::c_uint = 2;
476 pub const KVM_DEV_IRQ_HOST_MSIX: ::std::os::raw::c_uint = 4;
477 pub const KVM_DEV_IRQ_GUEST_INTX: ::std::os::raw::c_uint = 256;
478 pub const KVM_DEV_IRQ_GUEST_MSI: ::std::os::raw::c_uint = 512;
479 pub const KVM_DEV_IRQ_GUEST_MSIX: ::std::os::raw::c_uint = 1024;
480 pub const KVM_DEV_IRQ_HOST_MASK: ::std::os::raw::c_uint = 255;
481 pub const KVM_DEV_IRQ_GUEST_MASK: ::std::os::raw::c_uint = 65280;
482 pub const KVM_MAX_MSIX_PER_DEV: ::std::os::raw::c_uint = 256;
483 pub type __s8 = ::std::os::raw::c_schar;
484 pub type __u8 = ::std::os::raw::c_uchar;
485 pub type __s16 = ::std::os::raw::c_short;
486 pub type __u16 = ::std::os::raw::c_ushort;
487 pub type __s32 = ::std::os::raw::c_int;
488 pub type __u32 = ::std::os::raw::c_uint;
489 pub type __s64 = ::std::os::raw::c_longlong;
490 pub type __u64 = ::std::os::raw::c_ulonglong;
491 #[repr(C)]
492 #[derive(Debug, Default, Copy, Clone)]
493 pub struct __kernel_fd_set {
494 pub fds_bits: [::std::os::raw::c_ulong; 16usize],
495 }
496 #[test]
bindgen_test_layout___kernel_fd_set()497 fn bindgen_test_layout___kernel_fd_set() {
498 assert_eq!(
499 ::std::mem::size_of::<__kernel_fd_set>(),
500 128usize,
501 concat!("Size of: ", stringify!(__kernel_fd_set))
502 );
503 assert_eq!(
504 ::std::mem::align_of::<__kernel_fd_set>(),
505 8usize,
506 concat!("Alignment of ", stringify!(__kernel_fd_set))
507 );
508 assert_eq!(
509 unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize },
510 0usize,
511 concat!(
512 "Offset of field: ",
513 stringify!(__kernel_fd_set),
514 "::",
515 stringify!(fds_bits)
516 )
517 );
518 }
519 pub type __kernel_sighandler_t =
520 ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
521 pub type __kernel_key_t = ::std::os::raw::c_int;
522 pub type __kernel_mqd_t = ::std::os::raw::c_int;
523 pub type __kernel_old_uid_t = ::std::os::raw::c_ushort;
524 pub type __kernel_old_gid_t = ::std::os::raw::c_ushort;
525 pub type __kernel_long_t = ::std::os::raw::c_long;
526 pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
527 pub type __kernel_ino_t = __kernel_ulong_t;
528 pub type __kernel_mode_t = ::std::os::raw::c_uint;
529 pub type __kernel_pid_t = ::std::os::raw::c_int;
530 pub type __kernel_ipc_pid_t = ::std::os::raw::c_int;
531 pub type __kernel_uid_t = ::std::os::raw::c_uint;
532 pub type __kernel_gid_t = ::std::os::raw::c_uint;
533 pub type __kernel_suseconds_t = __kernel_long_t;
534 pub type __kernel_daddr_t = ::std::os::raw::c_int;
535 pub type __kernel_uid32_t = ::std::os::raw::c_uint;
536 pub type __kernel_gid32_t = ::std::os::raw::c_uint;
537 pub type __kernel_old_dev_t = ::std::os::raw::c_uint;
538 pub type __kernel_size_t = __kernel_ulong_t;
539 pub type __kernel_ssize_t = __kernel_long_t;
540 pub type __kernel_ptrdiff_t = __kernel_long_t;
541 #[repr(C)]
542 #[derive(Debug, Default, Copy, Clone)]
543 pub struct __kernel_fsid_t {
544 pub val: [::std::os::raw::c_int; 2usize],
545 }
546 #[test]
bindgen_test_layout___kernel_fsid_t()547 fn bindgen_test_layout___kernel_fsid_t() {
548 assert_eq!(
549 ::std::mem::size_of::<__kernel_fsid_t>(),
550 8usize,
551 concat!("Size of: ", stringify!(__kernel_fsid_t))
552 );
553 assert_eq!(
554 ::std::mem::align_of::<__kernel_fsid_t>(),
555 4usize,
556 concat!("Alignment of ", stringify!(__kernel_fsid_t))
557 );
558 assert_eq!(
559 unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize },
560 0usize,
561 concat!(
562 "Offset of field: ",
563 stringify!(__kernel_fsid_t),
564 "::",
565 stringify!(val)
566 )
567 );
568 }
569 pub type __kernel_off_t = __kernel_long_t;
570 pub type __kernel_loff_t = ::std::os::raw::c_longlong;
571 pub type __kernel_time_t = __kernel_long_t;
572 pub type __kernel_clock_t = __kernel_long_t;
573 pub type __kernel_timer_t = ::std::os::raw::c_int;
574 pub type __kernel_clockid_t = ::std::os::raw::c_int;
575 pub type __kernel_caddr_t = *mut ::std::os::raw::c_char;
576 pub type __kernel_uid16_t = ::std::os::raw::c_ushort;
577 pub type __kernel_gid16_t = ::std::os::raw::c_ushort;
578 pub type __le16 = __u16;
579 pub type __be16 = __u16;
580 pub type __le32 = __u32;
581 pub type __be32 = __u32;
582 pub type __le64 = __u64;
583 pub type __be64 = __u64;
584 pub type __sum16 = __u16;
585 pub type __wsum = __u32;
586 #[repr(C)]
587 #[derive(Debug, Default, Copy, Clone)]
588 pub struct user_pt_regs {
589 pub regs: [__u64; 31usize],
590 pub sp: __u64,
591 pub pc: __u64,
592 pub pstate: __u64,
593 }
594 #[test]
bindgen_test_layout_user_pt_regs()595 fn bindgen_test_layout_user_pt_regs() {
596 assert_eq!(
597 ::std::mem::size_of::<user_pt_regs>(),
598 272usize,
599 concat!("Size of: ", stringify!(user_pt_regs))
600 );
601 assert_eq!(
602 ::std::mem::align_of::<user_pt_regs>(),
603 8usize,
604 concat!("Alignment of ", stringify!(user_pt_regs))
605 );
606 assert_eq!(
607 unsafe { &(*(::std::ptr::null::<user_pt_regs>())).regs as *const _ as usize },
608 0usize,
609 concat!(
610 "Offset of field: ",
611 stringify!(user_pt_regs),
612 "::",
613 stringify!(regs)
614 )
615 );
616 assert_eq!(
617 unsafe { &(*(::std::ptr::null::<user_pt_regs>())).sp as *const _ as usize },
618 248usize,
619 concat!(
620 "Offset of field: ",
621 stringify!(user_pt_regs),
622 "::",
623 stringify!(sp)
624 )
625 );
626 assert_eq!(
627 unsafe { &(*(::std::ptr::null::<user_pt_regs>())).pc as *const _ as usize },
628 256usize,
629 concat!(
630 "Offset of field: ",
631 stringify!(user_pt_regs),
632 "::",
633 stringify!(pc)
634 )
635 );
636 assert_eq!(
637 unsafe { &(*(::std::ptr::null::<user_pt_regs>())).pstate as *const _ as usize },
638 264usize,
639 concat!(
640 "Offset of field: ",
641 stringify!(user_pt_regs),
642 "::",
643 stringify!(pstate)
644 )
645 );
646 }
647 #[repr(C)]
648 #[derive(Debug, Default, Copy, Clone)]
649 pub struct user_fpsimd_state {
650 pub vregs: [__uint128_t; 32usize],
651 pub fpsr: __u32,
652 pub fpcr: __u32,
653 pub __bindgen_padding_0: u64,
654 }
655 #[test]
bindgen_test_layout_user_fpsimd_state()656 fn bindgen_test_layout_user_fpsimd_state() {
657 assert_eq!(
658 ::std::mem::size_of::<user_fpsimd_state>(),
659 528usize,
660 concat!("Size of: ", stringify!(user_fpsimd_state))
661 );
662 assert_eq!(
663 unsafe { &(*(::std::ptr::null::<user_fpsimd_state>())).vregs as *const _ as usize },
664 0usize,
665 concat!(
666 "Offset of field: ",
667 stringify!(user_fpsimd_state),
668 "::",
669 stringify!(vregs)
670 )
671 );
672 assert_eq!(
673 unsafe { &(*(::std::ptr::null::<user_fpsimd_state>())).fpsr as *const _ as usize },
674 512usize,
675 concat!(
676 "Offset of field: ",
677 stringify!(user_fpsimd_state),
678 "::",
679 stringify!(fpsr)
680 )
681 );
682 assert_eq!(
683 unsafe { &(*(::std::ptr::null::<user_fpsimd_state>())).fpcr as *const _ as usize },
684 516usize,
685 concat!(
686 "Offset of field: ",
687 stringify!(user_fpsimd_state),
688 "::",
689 stringify!(fpcr)
690 )
691 );
692 }
693 #[repr(C)]
694 #[derive(Debug, Default, Copy, Clone)]
695 pub struct user_hwdebug_state {
696 pub dbg_info: __u32,
697 pub pad: __u32,
698 pub dbg_regs: [user_hwdebug_state__bindgen_ty_1; 16usize],
699 }
700 #[repr(C)]
701 #[derive(Debug, Default, Copy, Clone)]
702 pub struct user_hwdebug_state__bindgen_ty_1 {
703 pub addr: __u64,
704 pub ctrl: __u32,
705 pub pad: __u32,
706 }
707 #[test]
bindgen_test_layout_user_hwdebug_state__bindgen_ty_1()708 fn bindgen_test_layout_user_hwdebug_state__bindgen_ty_1() {
709 assert_eq!(
710 ::std::mem::size_of::<user_hwdebug_state__bindgen_ty_1>(),
711 16usize,
712 concat!("Size of: ", stringify!(user_hwdebug_state__bindgen_ty_1))
713 );
714 assert_eq!(
715 ::std::mem::align_of::<user_hwdebug_state__bindgen_ty_1>(),
716 8usize,
717 concat!(
718 "Alignment of ",
719 stringify!(user_hwdebug_state__bindgen_ty_1)
720 )
721 );
722 assert_eq!(
723 unsafe {
724 &(*(::std::ptr::null::<user_hwdebug_state__bindgen_ty_1>())).addr as *const _ as usize
725 },
726 0usize,
727 concat!(
728 "Offset of field: ",
729 stringify!(user_hwdebug_state__bindgen_ty_1),
730 "::",
731 stringify!(addr)
732 )
733 );
734 assert_eq!(
735 unsafe {
736 &(*(::std::ptr::null::<user_hwdebug_state__bindgen_ty_1>())).ctrl as *const _ as usize
737 },
738 8usize,
739 concat!(
740 "Offset of field: ",
741 stringify!(user_hwdebug_state__bindgen_ty_1),
742 "::",
743 stringify!(ctrl)
744 )
745 );
746 assert_eq!(
747 unsafe {
748 &(*(::std::ptr::null::<user_hwdebug_state__bindgen_ty_1>())).pad as *const _ as usize
749 },
750 12usize,
751 concat!(
752 "Offset of field: ",
753 stringify!(user_hwdebug_state__bindgen_ty_1),
754 "::",
755 stringify!(pad)
756 )
757 );
758 }
759 #[test]
bindgen_test_layout_user_hwdebug_state()760 fn bindgen_test_layout_user_hwdebug_state() {
761 assert_eq!(
762 ::std::mem::size_of::<user_hwdebug_state>(),
763 264usize,
764 concat!("Size of: ", stringify!(user_hwdebug_state))
765 );
766 assert_eq!(
767 ::std::mem::align_of::<user_hwdebug_state>(),
768 8usize,
769 concat!("Alignment of ", stringify!(user_hwdebug_state))
770 );
771 assert_eq!(
772 unsafe { &(*(::std::ptr::null::<user_hwdebug_state>())).dbg_info as *const _ as usize },
773 0usize,
774 concat!(
775 "Offset of field: ",
776 stringify!(user_hwdebug_state),
777 "::",
778 stringify!(dbg_info)
779 )
780 );
781 assert_eq!(
782 unsafe { &(*(::std::ptr::null::<user_hwdebug_state>())).pad as *const _ as usize },
783 4usize,
784 concat!(
785 "Offset of field: ",
786 stringify!(user_hwdebug_state),
787 "::",
788 stringify!(pad)
789 )
790 );
791 assert_eq!(
792 unsafe { &(*(::std::ptr::null::<user_hwdebug_state>())).dbg_regs as *const _ as usize },
793 8usize,
794 concat!(
795 "Offset of field: ",
796 stringify!(user_hwdebug_state),
797 "::",
798 stringify!(dbg_regs)
799 )
800 );
801 }
802 #[repr(C)]
803 #[derive(Debug, Default, Copy, Clone)]
804 pub struct kvm_regs {
805 pub regs: user_pt_regs,
806 pub sp_el1: __u64,
807 pub elr_el1: __u64,
808 pub spsr: [__u64; 5usize],
809 pub __bindgen_padding_0: u64,
810 pub fp_regs: user_fpsimd_state,
811 }
812 #[test]
bindgen_test_layout_kvm_regs()813 fn bindgen_test_layout_kvm_regs() {
814 assert_eq!(
815 ::std::mem::size_of::<kvm_regs>(),
816 864usize,
817 concat!("Size of: ", stringify!(kvm_regs))
818 );
819 assert_eq!(
820 unsafe { &(*(::std::ptr::null::<kvm_regs>())).regs as *const _ as usize },
821 0usize,
822 concat!(
823 "Offset of field: ",
824 stringify!(kvm_regs),
825 "::",
826 stringify!(regs)
827 )
828 );
829 assert_eq!(
830 unsafe { &(*(::std::ptr::null::<kvm_regs>())).sp_el1 as *const _ as usize },
831 272usize,
832 concat!(
833 "Offset of field: ",
834 stringify!(kvm_regs),
835 "::",
836 stringify!(sp_el1)
837 )
838 );
839 assert_eq!(
840 unsafe { &(*(::std::ptr::null::<kvm_regs>())).elr_el1 as *const _ as usize },
841 280usize,
842 concat!(
843 "Offset of field: ",
844 stringify!(kvm_regs),
845 "::",
846 stringify!(elr_el1)
847 )
848 );
849 assert_eq!(
850 unsafe { &(*(::std::ptr::null::<kvm_regs>())).spsr as *const _ as usize },
851 288usize,
852 concat!(
853 "Offset of field: ",
854 stringify!(kvm_regs),
855 "::",
856 stringify!(spsr)
857 )
858 );
859 assert_eq!(
860 unsafe { &(*(::std::ptr::null::<kvm_regs>())).fp_regs as *const _ as usize },
861 336usize,
862 concat!(
863 "Offset of field: ",
864 stringify!(kvm_regs),
865 "::",
866 stringify!(fp_regs)
867 )
868 );
869 }
870 #[repr(C)]
871 #[derive(Debug, Default, Copy, Clone)]
872 pub struct kvm_vcpu_init {
873 pub target: __u32,
874 pub features: [__u32; 7usize],
875 }
876 #[test]
bindgen_test_layout_kvm_vcpu_init()877 fn bindgen_test_layout_kvm_vcpu_init() {
878 assert_eq!(
879 ::std::mem::size_of::<kvm_vcpu_init>(),
880 32usize,
881 concat!("Size of: ", stringify!(kvm_vcpu_init))
882 );
883 assert_eq!(
884 ::std::mem::align_of::<kvm_vcpu_init>(),
885 4usize,
886 concat!("Alignment of ", stringify!(kvm_vcpu_init))
887 );
888 assert_eq!(
889 unsafe { &(*(::std::ptr::null::<kvm_vcpu_init>())).target as *const _ as usize },
890 0usize,
891 concat!(
892 "Offset of field: ",
893 stringify!(kvm_vcpu_init),
894 "::",
895 stringify!(target)
896 )
897 );
898 assert_eq!(
899 unsafe { &(*(::std::ptr::null::<kvm_vcpu_init>())).features as *const _ as usize },
900 4usize,
901 concat!(
902 "Offset of field: ",
903 stringify!(kvm_vcpu_init),
904 "::",
905 stringify!(features)
906 )
907 );
908 }
909 #[repr(C)]
910 #[derive(Debug, Default, Copy, Clone)]
911 pub struct kvm_sregs {}
912 #[test]
bindgen_test_layout_kvm_sregs()913 fn bindgen_test_layout_kvm_sregs() {
914 assert_eq!(
915 ::std::mem::size_of::<kvm_sregs>(),
916 0usize,
917 concat!("Size of: ", stringify!(kvm_sregs))
918 );
919 assert_eq!(
920 ::std::mem::align_of::<kvm_sregs>(),
921 1usize,
922 concat!("Alignment of ", stringify!(kvm_sregs))
923 );
924 }
925 #[repr(C)]
926 #[derive(Debug, Default, Copy, Clone)]
927 pub struct kvm_fpu {}
928 #[test]
bindgen_test_layout_kvm_fpu()929 fn bindgen_test_layout_kvm_fpu() {
930 assert_eq!(
931 ::std::mem::size_of::<kvm_fpu>(),
932 0usize,
933 concat!("Size of: ", stringify!(kvm_fpu))
934 );
935 assert_eq!(
936 ::std::mem::align_of::<kvm_fpu>(),
937 1usize,
938 concat!("Alignment of ", stringify!(kvm_fpu))
939 );
940 }
941 #[repr(C)]
942 #[derive(Debug, Default, Copy, Clone)]
943 pub struct kvm_guest_debug_arch {
944 pub dbg_bcr: [__u64; 16usize],
945 pub dbg_bvr: [__u64; 16usize],
946 pub dbg_wcr: [__u64; 16usize],
947 pub dbg_wvr: [__u64; 16usize],
948 }
949 #[test]
bindgen_test_layout_kvm_guest_debug_arch()950 fn bindgen_test_layout_kvm_guest_debug_arch() {
951 assert_eq!(
952 ::std::mem::size_of::<kvm_guest_debug_arch>(),
953 512usize,
954 concat!("Size of: ", stringify!(kvm_guest_debug_arch))
955 );
956 assert_eq!(
957 ::std::mem::align_of::<kvm_guest_debug_arch>(),
958 8usize,
959 concat!("Alignment of ", stringify!(kvm_guest_debug_arch))
960 );
961 assert_eq!(
962 unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_bcr as *const _ as usize },
963 0usize,
964 concat!(
965 "Offset of field: ",
966 stringify!(kvm_guest_debug_arch),
967 "::",
968 stringify!(dbg_bcr)
969 )
970 );
971 assert_eq!(
972 unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_bvr as *const _ as usize },
973 128usize,
974 concat!(
975 "Offset of field: ",
976 stringify!(kvm_guest_debug_arch),
977 "::",
978 stringify!(dbg_bvr)
979 )
980 );
981 assert_eq!(
982 unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_wcr as *const _ as usize },
983 256usize,
984 concat!(
985 "Offset of field: ",
986 stringify!(kvm_guest_debug_arch),
987 "::",
988 stringify!(dbg_wcr)
989 )
990 );
991 assert_eq!(
992 unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_wvr as *const _ as usize },
993 384usize,
994 concat!(
995 "Offset of field: ",
996 stringify!(kvm_guest_debug_arch),
997 "::",
998 stringify!(dbg_wvr)
999 )
1000 );
1001 }
1002 #[repr(C)]
1003 #[derive(Debug, Default, Copy, Clone)]
1004 pub struct kvm_debug_exit_arch {
1005 pub hsr: __u32,
1006 pub far: __u64,
1007 }
1008 #[test]
bindgen_test_layout_kvm_debug_exit_arch()1009 fn bindgen_test_layout_kvm_debug_exit_arch() {
1010 assert_eq!(
1011 ::std::mem::size_of::<kvm_debug_exit_arch>(),
1012 16usize,
1013 concat!("Size of: ", stringify!(kvm_debug_exit_arch))
1014 );
1015 assert_eq!(
1016 ::std::mem::align_of::<kvm_debug_exit_arch>(),
1017 8usize,
1018 concat!("Alignment of ", stringify!(kvm_debug_exit_arch))
1019 );
1020 assert_eq!(
1021 unsafe { &(*(::std::ptr::null::<kvm_debug_exit_arch>())).hsr as *const _ as usize },
1022 0usize,
1023 concat!(
1024 "Offset of field: ",
1025 stringify!(kvm_debug_exit_arch),
1026 "::",
1027 stringify!(hsr)
1028 )
1029 );
1030 assert_eq!(
1031 unsafe { &(*(::std::ptr::null::<kvm_debug_exit_arch>())).far as *const _ as usize },
1032 8usize,
1033 concat!(
1034 "Offset of field: ",
1035 stringify!(kvm_debug_exit_arch),
1036 "::",
1037 stringify!(far)
1038 )
1039 );
1040 }
1041 #[repr(C)]
1042 #[derive(Debug, Default, Copy, Clone)]
1043 pub struct kvm_sync_regs {}
1044 #[test]
bindgen_test_layout_kvm_sync_regs()1045 fn bindgen_test_layout_kvm_sync_regs() {
1046 assert_eq!(
1047 ::std::mem::size_of::<kvm_sync_regs>(),
1048 0usize,
1049 concat!("Size of: ", stringify!(kvm_sync_regs))
1050 );
1051 assert_eq!(
1052 ::std::mem::align_of::<kvm_sync_regs>(),
1053 1usize,
1054 concat!("Alignment of ", stringify!(kvm_sync_regs))
1055 );
1056 }
1057 #[repr(C)]
1058 #[derive(Debug, Default, Copy, Clone)]
1059 pub struct kvm_arch_memory_slot {}
1060 #[test]
bindgen_test_layout_kvm_arch_memory_slot()1061 fn bindgen_test_layout_kvm_arch_memory_slot() {
1062 assert_eq!(
1063 ::std::mem::size_of::<kvm_arch_memory_slot>(),
1064 0usize,
1065 concat!("Size of: ", stringify!(kvm_arch_memory_slot))
1066 );
1067 assert_eq!(
1068 ::std::mem::align_of::<kvm_arch_memory_slot>(),
1069 1usize,
1070 concat!("Alignment of ", stringify!(kvm_arch_memory_slot))
1071 );
1072 }
1073 #[repr(C)]
1074 #[derive(Debug, Default, Copy, Clone)]
1075 pub struct kvm_user_trace_setup {
1076 pub buf_size: __u32,
1077 pub buf_nr: __u32,
1078 }
1079 #[test]
bindgen_test_layout_kvm_user_trace_setup()1080 fn bindgen_test_layout_kvm_user_trace_setup() {
1081 assert_eq!(
1082 ::std::mem::size_of::<kvm_user_trace_setup>(),
1083 8usize,
1084 concat!("Size of: ", stringify!(kvm_user_trace_setup))
1085 );
1086 assert_eq!(
1087 ::std::mem::align_of::<kvm_user_trace_setup>(),
1088 4usize,
1089 concat!("Alignment of ", stringify!(kvm_user_trace_setup))
1090 );
1091 assert_eq!(
1092 unsafe { &(*(::std::ptr::null::<kvm_user_trace_setup>())).buf_size as *const _ as usize },
1093 0usize,
1094 concat!(
1095 "Offset of field: ",
1096 stringify!(kvm_user_trace_setup),
1097 "::",
1098 stringify!(buf_size)
1099 )
1100 );
1101 assert_eq!(
1102 unsafe { &(*(::std::ptr::null::<kvm_user_trace_setup>())).buf_nr as *const _ as usize },
1103 4usize,
1104 concat!(
1105 "Offset of field: ",
1106 stringify!(kvm_user_trace_setup),
1107 "::",
1108 stringify!(buf_nr)
1109 )
1110 );
1111 }
1112 #[repr(C)]
1113 #[derive(Debug, Default, Copy, Clone)]
1114 pub struct kvm_breakpoint {
1115 pub enabled: __u32,
1116 pub padding: __u32,
1117 pub address: __u64,
1118 }
1119 #[test]
bindgen_test_layout_kvm_breakpoint()1120 fn bindgen_test_layout_kvm_breakpoint() {
1121 assert_eq!(
1122 ::std::mem::size_of::<kvm_breakpoint>(),
1123 16usize,
1124 concat!("Size of: ", stringify!(kvm_breakpoint))
1125 );
1126 assert_eq!(
1127 ::std::mem::align_of::<kvm_breakpoint>(),
1128 8usize,
1129 concat!("Alignment of ", stringify!(kvm_breakpoint))
1130 );
1131 assert_eq!(
1132 unsafe { &(*(::std::ptr::null::<kvm_breakpoint>())).enabled as *const _ as usize },
1133 0usize,
1134 concat!(
1135 "Offset of field: ",
1136 stringify!(kvm_breakpoint),
1137 "::",
1138 stringify!(enabled)
1139 )
1140 );
1141 assert_eq!(
1142 unsafe { &(*(::std::ptr::null::<kvm_breakpoint>())).padding as *const _ as usize },
1143 4usize,
1144 concat!(
1145 "Offset of field: ",
1146 stringify!(kvm_breakpoint),
1147 "::",
1148 stringify!(padding)
1149 )
1150 );
1151 assert_eq!(
1152 unsafe { &(*(::std::ptr::null::<kvm_breakpoint>())).address as *const _ as usize },
1153 8usize,
1154 concat!(
1155 "Offset of field: ",
1156 stringify!(kvm_breakpoint),
1157 "::",
1158 stringify!(address)
1159 )
1160 );
1161 }
1162 #[repr(C)]
1163 #[derive(Debug, Default, Copy, Clone)]
1164 pub struct kvm_debug_guest {
1165 pub enabled: __u32,
1166 pub pad: __u32,
1167 pub breakpoints: [kvm_breakpoint; 4usize],
1168 pub singlestep: __u32,
1169 }
1170 #[test]
bindgen_test_layout_kvm_debug_guest()1171 fn bindgen_test_layout_kvm_debug_guest() {
1172 assert_eq!(
1173 ::std::mem::size_of::<kvm_debug_guest>(),
1174 80usize,
1175 concat!("Size of: ", stringify!(kvm_debug_guest))
1176 );
1177 assert_eq!(
1178 ::std::mem::align_of::<kvm_debug_guest>(),
1179 8usize,
1180 concat!("Alignment of ", stringify!(kvm_debug_guest))
1181 );
1182 assert_eq!(
1183 unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).enabled as *const _ as usize },
1184 0usize,
1185 concat!(
1186 "Offset of field: ",
1187 stringify!(kvm_debug_guest),
1188 "::",
1189 stringify!(enabled)
1190 )
1191 );
1192 assert_eq!(
1193 unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).pad as *const _ as usize },
1194 4usize,
1195 concat!(
1196 "Offset of field: ",
1197 stringify!(kvm_debug_guest),
1198 "::",
1199 stringify!(pad)
1200 )
1201 );
1202 assert_eq!(
1203 unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).breakpoints as *const _ as usize },
1204 8usize,
1205 concat!(
1206 "Offset of field: ",
1207 stringify!(kvm_debug_guest),
1208 "::",
1209 stringify!(breakpoints)
1210 )
1211 );
1212 assert_eq!(
1213 unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).singlestep as *const _ as usize },
1214 72usize,
1215 concat!(
1216 "Offset of field: ",
1217 stringify!(kvm_debug_guest),
1218 "::",
1219 stringify!(singlestep)
1220 )
1221 );
1222 }
1223 #[repr(C)]
1224 #[derive(Debug, Default, Copy, Clone)]
1225 pub struct kvm_memory_region {
1226 pub slot: __u32,
1227 pub flags: __u32,
1228 pub guest_phys_addr: __u64,
1229 pub memory_size: __u64,
1230 }
1231 #[test]
bindgen_test_layout_kvm_memory_region()1232 fn bindgen_test_layout_kvm_memory_region() {
1233 assert_eq!(
1234 ::std::mem::size_of::<kvm_memory_region>(),
1235 24usize,
1236 concat!("Size of: ", stringify!(kvm_memory_region))
1237 );
1238 assert_eq!(
1239 ::std::mem::align_of::<kvm_memory_region>(),
1240 8usize,
1241 concat!("Alignment of ", stringify!(kvm_memory_region))
1242 );
1243 assert_eq!(
1244 unsafe { &(*(::std::ptr::null::<kvm_memory_region>())).slot as *const _ as usize },
1245 0usize,
1246 concat!(
1247 "Offset of field: ",
1248 stringify!(kvm_memory_region),
1249 "::",
1250 stringify!(slot)
1251 )
1252 );
1253 assert_eq!(
1254 unsafe { &(*(::std::ptr::null::<kvm_memory_region>())).flags as *const _ as usize },
1255 4usize,
1256 concat!(
1257 "Offset of field: ",
1258 stringify!(kvm_memory_region),
1259 "::",
1260 stringify!(flags)
1261 )
1262 );
1263 assert_eq!(
1264 unsafe {
1265 &(*(::std::ptr::null::<kvm_memory_region>())).guest_phys_addr as *const _ as usize
1266 },
1267 8usize,
1268 concat!(
1269 "Offset of field: ",
1270 stringify!(kvm_memory_region),
1271 "::",
1272 stringify!(guest_phys_addr)
1273 )
1274 );
1275 assert_eq!(
1276 unsafe { &(*(::std::ptr::null::<kvm_memory_region>())).memory_size as *const _ as usize },
1277 16usize,
1278 concat!(
1279 "Offset of field: ",
1280 stringify!(kvm_memory_region),
1281 "::",
1282 stringify!(memory_size)
1283 )
1284 );
1285 }
1286 #[repr(C)]
1287 #[derive(Debug, Default, Copy, Clone)]
1288 pub struct kvm_userspace_memory_region {
1289 pub slot: __u32,
1290 pub flags: __u32,
1291 pub guest_phys_addr: __u64,
1292 pub memory_size: __u64,
1293 pub userspace_addr: __u64,
1294 }
1295 #[test]
bindgen_test_layout_kvm_userspace_memory_region()1296 fn bindgen_test_layout_kvm_userspace_memory_region() {
1297 assert_eq!(
1298 ::std::mem::size_of::<kvm_userspace_memory_region>(),
1299 32usize,
1300 concat!("Size of: ", stringify!(kvm_userspace_memory_region))
1301 );
1302 assert_eq!(
1303 ::std::mem::align_of::<kvm_userspace_memory_region>(),
1304 8usize,
1305 concat!("Alignment of ", stringify!(kvm_userspace_memory_region))
1306 );
1307 assert_eq!(
1308 unsafe {
1309 &(*(::std::ptr::null::<kvm_userspace_memory_region>())).slot as *const _ as usize
1310 },
1311 0usize,
1312 concat!(
1313 "Offset of field: ",
1314 stringify!(kvm_userspace_memory_region),
1315 "::",
1316 stringify!(slot)
1317 )
1318 );
1319 assert_eq!(
1320 unsafe {
1321 &(*(::std::ptr::null::<kvm_userspace_memory_region>())).flags as *const _ as usize
1322 },
1323 4usize,
1324 concat!(
1325 "Offset of field: ",
1326 stringify!(kvm_userspace_memory_region),
1327 "::",
1328 stringify!(flags)
1329 )
1330 );
1331 assert_eq!(
1332 unsafe {
1333 &(*(::std::ptr::null::<kvm_userspace_memory_region>())).guest_phys_addr as *const _
1334 as usize
1335 },
1336 8usize,
1337 concat!(
1338 "Offset of field: ",
1339 stringify!(kvm_userspace_memory_region),
1340 "::",
1341 stringify!(guest_phys_addr)
1342 )
1343 );
1344 assert_eq!(
1345 unsafe {
1346 &(*(::std::ptr::null::<kvm_userspace_memory_region>())).memory_size as *const _ as usize
1347 },
1348 16usize,
1349 concat!(
1350 "Offset of field: ",
1351 stringify!(kvm_userspace_memory_region),
1352 "::",
1353 stringify!(memory_size)
1354 )
1355 );
1356 assert_eq!(
1357 unsafe {
1358 &(*(::std::ptr::null::<kvm_userspace_memory_region>())).userspace_addr as *const _
1359 as usize
1360 },
1361 24usize,
1362 concat!(
1363 "Offset of field: ",
1364 stringify!(kvm_userspace_memory_region),
1365 "::",
1366 stringify!(userspace_addr)
1367 )
1368 );
1369 }
1370 #[repr(C)]
1371 #[derive(Copy, Clone)]
1372 pub struct kvm_irq_level {
1373 pub __bindgen_anon_1: kvm_irq_level__bindgen_ty_1,
1374 pub level: __u32,
1375 }
1376 #[repr(C)]
1377 #[derive(Copy, Clone)]
1378 pub union kvm_irq_level__bindgen_ty_1 {
1379 pub irq: __u32,
1380 pub status: __s32,
1381 _bindgen_union_align: u32,
1382 }
1383 #[test]
bindgen_test_layout_kvm_irq_level__bindgen_ty_1()1384 fn bindgen_test_layout_kvm_irq_level__bindgen_ty_1() {
1385 assert_eq!(
1386 ::std::mem::size_of::<kvm_irq_level__bindgen_ty_1>(),
1387 4usize,
1388 concat!("Size of: ", stringify!(kvm_irq_level__bindgen_ty_1))
1389 );
1390 assert_eq!(
1391 ::std::mem::align_of::<kvm_irq_level__bindgen_ty_1>(),
1392 4usize,
1393 concat!("Alignment of ", stringify!(kvm_irq_level__bindgen_ty_1))
1394 );
1395 assert_eq!(
1396 unsafe { &(*(::std::ptr::null::<kvm_irq_level__bindgen_ty_1>())).irq as *const _ as usize },
1397 0usize,
1398 concat!(
1399 "Offset of field: ",
1400 stringify!(kvm_irq_level__bindgen_ty_1),
1401 "::",
1402 stringify!(irq)
1403 )
1404 );
1405 assert_eq!(
1406 unsafe {
1407 &(*(::std::ptr::null::<kvm_irq_level__bindgen_ty_1>())).status as *const _ as usize
1408 },
1409 0usize,
1410 concat!(
1411 "Offset of field: ",
1412 stringify!(kvm_irq_level__bindgen_ty_1),
1413 "::",
1414 stringify!(status)
1415 )
1416 );
1417 }
1418 impl Default for kvm_irq_level__bindgen_ty_1 {
default() -> Self1419 fn default() -> Self {
1420 unsafe { ::std::mem::zeroed() }
1421 }
1422 }
1423 #[test]
bindgen_test_layout_kvm_irq_level()1424 fn bindgen_test_layout_kvm_irq_level() {
1425 assert_eq!(
1426 ::std::mem::size_of::<kvm_irq_level>(),
1427 8usize,
1428 concat!("Size of: ", stringify!(kvm_irq_level))
1429 );
1430 assert_eq!(
1431 ::std::mem::align_of::<kvm_irq_level>(),
1432 4usize,
1433 concat!("Alignment of ", stringify!(kvm_irq_level))
1434 );
1435 assert_eq!(
1436 unsafe { &(*(::std::ptr::null::<kvm_irq_level>())).level as *const _ as usize },
1437 4usize,
1438 concat!(
1439 "Offset of field: ",
1440 stringify!(kvm_irq_level),
1441 "::",
1442 stringify!(level)
1443 )
1444 );
1445 }
1446 impl Default for kvm_irq_level {
default() -> Self1447 fn default() -> Self {
1448 unsafe { ::std::mem::zeroed() }
1449 }
1450 }
1451 #[repr(C)]
1452 #[derive(Copy, Clone)]
1453 pub struct kvm_irqchip {
1454 pub chip_id: __u32,
1455 pub pad: __u32,
1456 pub chip: kvm_irqchip__bindgen_ty_1,
1457 }
1458 #[repr(C)]
1459 #[derive(Copy, Clone)]
1460 pub union kvm_irqchip__bindgen_ty_1 {
1461 pub dummy: [::std::os::raw::c_char; 512usize],
1462 _bindgen_union_align: [u8; 512usize],
1463 }
1464 #[test]
bindgen_test_layout_kvm_irqchip__bindgen_ty_1()1465 fn bindgen_test_layout_kvm_irqchip__bindgen_ty_1() {
1466 assert_eq!(
1467 ::std::mem::size_of::<kvm_irqchip__bindgen_ty_1>(),
1468 512usize,
1469 concat!("Size of: ", stringify!(kvm_irqchip__bindgen_ty_1))
1470 );
1471 assert_eq!(
1472 ::std::mem::align_of::<kvm_irqchip__bindgen_ty_1>(),
1473 1usize,
1474 concat!("Alignment of ", stringify!(kvm_irqchip__bindgen_ty_1))
1475 );
1476 assert_eq!(
1477 unsafe { &(*(::std::ptr::null::<kvm_irqchip__bindgen_ty_1>())).dummy as *const _ as usize },
1478 0usize,
1479 concat!(
1480 "Offset of field: ",
1481 stringify!(kvm_irqchip__bindgen_ty_1),
1482 "::",
1483 stringify!(dummy)
1484 )
1485 );
1486 }
1487 impl Default for kvm_irqchip__bindgen_ty_1 {
default() -> Self1488 fn default() -> Self {
1489 unsafe { ::std::mem::zeroed() }
1490 }
1491 }
1492 #[test]
bindgen_test_layout_kvm_irqchip()1493 fn bindgen_test_layout_kvm_irqchip() {
1494 assert_eq!(
1495 ::std::mem::size_of::<kvm_irqchip>(),
1496 520usize,
1497 concat!("Size of: ", stringify!(kvm_irqchip))
1498 );
1499 assert_eq!(
1500 ::std::mem::align_of::<kvm_irqchip>(),
1501 4usize,
1502 concat!("Alignment of ", stringify!(kvm_irqchip))
1503 );
1504 assert_eq!(
1505 unsafe { &(*(::std::ptr::null::<kvm_irqchip>())).chip_id as *const _ as usize },
1506 0usize,
1507 concat!(
1508 "Offset of field: ",
1509 stringify!(kvm_irqchip),
1510 "::",
1511 stringify!(chip_id)
1512 )
1513 );
1514 assert_eq!(
1515 unsafe { &(*(::std::ptr::null::<kvm_irqchip>())).pad as *const _ as usize },
1516 4usize,
1517 concat!(
1518 "Offset of field: ",
1519 stringify!(kvm_irqchip),
1520 "::",
1521 stringify!(pad)
1522 )
1523 );
1524 assert_eq!(
1525 unsafe { &(*(::std::ptr::null::<kvm_irqchip>())).chip as *const _ as usize },
1526 8usize,
1527 concat!(
1528 "Offset of field: ",
1529 stringify!(kvm_irqchip),
1530 "::",
1531 stringify!(chip)
1532 )
1533 );
1534 }
1535 impl Default for kvm_irqchip {
default() -> Self1536 fn default() -> Self {
1537 unsafe { ::std::mem::zeroed() }
1538 }
1539 }
1540 #[repr(C)]
1541 #[derive(Debug, Default, Copy, Clone)]
1542 pub struct kvm_pit_config {
1543 pub flags: __u32,
1544 pub pad: [__u32; 15usize],
1545 }
1546 #[test]
bindgen_test_layout_kvm_pit_config()1547 fn bindgen_test_layout_kvm_pit_config() {
1548 assert_eq!(
1549 ::std::mem::size_of::<kvm_pit_config>(),
1550 64usize,
1551 concat!("Size of: ", stringify!(kvm_pit_config))
1552 );
1553 assert_eq!(
1554 ::std::mem::align_of::<kvm_pit_config>(),
1555 4usize,
1556 concat!("Alignment of ", stringify!(kvm_pit_config))
1557 );
1558 assert_eq!(
1559 unsafe { &(*(::std::ptr::null::<kvm_pit_config>())).flags as *const _ as usize },
1560 0usize,
1561 concat!(
1562 "Offset of field: ",
1563 stringify!(kvm_pit_config),
1564 "::",
1565 stringify!(flags)
1566 )
1567 );
1568 assert_eq!(
1569 unsafe { &(*(::std::ptr::null::<kvm_pit_config>())).pad as *const _ as usize },
1570 4usize,
1571 concat!(
1572 "Offset of field: ",
1573 stringify!(kvm_pit_config),
1574 "::",
1575 stringify!(pad)
1576 )
1577 );
1578 }
1579 #[repr(C)]
1580 #[derive(Debug, Default, Copy, Clone)]
1581 pub struct kvm_s390_skeys {
1582 pub start_gfn: __u64,
1583 pub count: __u64,
1584 pub skeydata_addr: __u64,
1585 pub flags: __u32,
1586 pub reserved: [__u32; 9usize],
1587 }
1588 #[test]
bindgen_test_layout_kvm_s390_skeys()1589 fn bindgen_test_layout_kvm_s390_skeys() {
1590 assert_eq!(
1591 ::std::mem::size_of::<kvm_s390_skeys>(),
1592 64usize,
1593 concat!("Size of: ", stringify!(kvm_s390_skeys))
1594 );
1595 assert_eq!(
1596 ::std::mem::align_of::<kvm_s390_skeys>(),
1597 8usize,
1598 concat!("Alignment of ", stringify!(kvm_s390_skeys))
1599 );
1600 assert_eq!(
1601 unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).start_gfn as *const _ as usize },
1602 0usize,
1603 concat!(
1604 "Offset of field: ",
1605 stringify!(kvm_s390_skeys),
1606 "::",
1607 stringify!(start_gfn)
1608 )
1609 );
1610 assert_eq!(
1611 unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).count as *const _ as usize },
1612 8usize,
1613 concat!(
1614 "Offset of field: ",
1615 stringify!(kvm_s390_skeys),
1616 "::",
1617 stringify!(count)
1618 )
1619 );
1620 assert_eq!(
1621 unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).skeydata_addr as *const _ as usize },
1622 16usize,
1623 concat!(
1624 "Offset of field: ",
1625 stringify!(kvm_s390_skeys),
1626 "::",
1627 stringify!(skeydata_addr)
1628 )
1629 );
1630 assert_eq!(
1631 unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).flags as *const _ as usize },
1632 24usize,
1633 concat!(
1634 "Offset of field: ",
1635 stringify!(kvm_s390_skeys),
1636 "::",
1637 stringify!(flags)
1638 )
1639 );
1640 assert_eq!(
1641 unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).reserved as *const _ as usize },
1642 28usize,
1643 concat!(
1644 "Offset of field: ",
1645 stringify!(kvm_s390_skeys),
1646 "::",
1647 stringify!(reserved)
1648 )
1649 );
1650 }
1651 #[repr(C)]
1652 #[derive(Copy, Clone)]
1653 pub struct kvm_run {
1654 pub request_interrupt_window: __u8,
1655 pub padding1: [__u8; 7usize],
1656 pub exit_reason: __u32,
1657 pub ready_for_interrupt_injection: __u8,
1658 pub if_flag: __u8,
1659 pub flags: __u16,
1660 pub cr8: __u64,
1661 pub apic_base: __u64,
1662 pub __bindgen_anon_1: kvm_run__bindgen_ty_1,
1663 pub kvm_valid_regs: __u64,
1664 pub kvm_dirty_regs: __u64,
1665 pub s: kvm_run__bindgen_ty_2,
1666 }
1667 #[repr(C)]
1668 #[derive(Debug, Default, Copy, Clone)]
1669 pub struct kvm_run__bindgen_ty_1__bindgen_ty_1 {
1670 pub hardware_exit_reason: __u64,
1671 }
1672 #[repr(C)]
1673 #[derive(Copy, Clone)]
1674 pub union kvm_run__bindgen_ty_1 {
1675 pub hw: kvm_run__bindgen_ty_1__bindgen_ty_1,
1676 pub fail_entry: kvm_run__bindgen_ty_1__bindgen_ty_2,
1677 pub ex: kvm_run__bindgen_ty_1__bindgen_ty_3,
1678 pub io: kvm_run__bindgen_ty_1__bindgen_ty_4,
1679 pub debug: kvm_run__bindgen_ty_1__bindgen_ty_5,
1680 pub mmio: kvm_run__bindgen_ty_1__bindgen_ty_6,
1681 pub hypercall: kvm_run__bindgen_ty_1__bindgen_ty_7,
1682 pub tpr_access: kvm_run__bindgen_ty_1__bindgen_ty_8,
1683 pub s390_sieic: kvm_run__bindgen_ty_1__bindgen_ty_9,
1684 pub s390_reset_flags: __u64,
1685 pub s390_ucontrol: kvm_run__bindgen_ty_1__bindgen_ty_10,
1686 pub dcr: kvm_run__bindgen_ty_1__bindgen_ty_11,
1687 pub internal: kvm_run__bindgen_ty_1__bindgen_ty_12,
1688 pub osi: kvm_run__bindgen_ty_1__bindgen_ty_13,
1689 pub papr_hcall: kvm_run__bindgen_ty_1__bindgen_ty_14,
1690 pub s390_tsch: kvm_run__bindgen_ty_1__bindgen_ty_15,
1691 pub epr: kvm_run__bindgen_ty_1__bindgen_ty_16,
1692 pub system_event: kvm_run__bindgen_ty_1__bindgen_ty_17,
1693 pub s390_stsi: kvm_run__bindgen_ty_1__bindgen_ty_18,
1694 pub eoi: kvm_run__bindgen_ty_1__bindgen_ty_19,
1695 pub padding: [::std::os::raw::c_char; 256usize],
1696 _bindgen_union_align: [u64; 32usize],
1697 }
1698 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_1()1699 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_1() {
1700 assert_eq!(
1701 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_1>(),
1702 8usize,
1703 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_1))
1704 );
1705 assert_eq!(
1706 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_1>(),
1707 8usize,
1708 concat!(
1709 "Alignment of ",
1710 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_1)
1711 )
1712 );
1713 assert_eq!(
1714 unsafe {
1715 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_1>())).hardware_exit_reason
1716 as *const _ as usize
1717 },
1718 0usize,
1719 concat!(
1720 "Offset of field: ",
1721 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_1),
1722 "::",
1723 stringify!(hardware_exit_reason)
1724 )
1725 );
1726 }
1727 #[repr(C)]
1728 #[derive(Debug, Default, Copy, Clone)]
1729 pub struct kvm_run__bindgen_ty_1__bindgen_ty_2 {
1730 pub hardware_entry_failure_reason: __u64,
1731 }
1732 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_2()1733 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_2() {
1734 assert_eq!(
1735 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_2>(),
1736 8usize,
1737 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_2))
1738 );
1739 assert_eq!(
1740 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_2>(),
1741 8usize,
1742 concat!(
1743 "Alignment of ",
1744 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_2)
1745 )
1746 );
1747 assert_eq!(
1748 unsafe {
1749 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_2>()))
1750 .hardware_entry_failure_reason as *const _ as usize
1751 },
1752 0usize,
1753 concat!(
1754 "Offset of field: ",
1755 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_2),
1756 "::",
1757 stringify!(hardware_entry_failure_reason)
1758 )
1759 );
1760 }
1761 #[repr(C)]
1762 #[derive(Debug, Default, Copy, Clone)]
1763 pub struct kvm_run__bindgen_ty_1__bindgen_ty_3 {
1764 pub exception: __u32,
1765 pub error_code: __u32,
1766 }
1767 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_3()1768 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_3() {
1769 assert_eq!(
1770 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_3>(),
1771 8usize,
1772 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3))
1773 );
1774 assert_eq!(
1775 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_3>(),
1776 4usize,
1777 concat!(
1778 "Alignment of ",
1779 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3)
1780 )
1781 );
1782 assert_eq!(
1783 unsafe {
1784 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_3>())).exception as *const _
1785 as usize
1786 },
1787 0usize,
1788 concat!(
1789 "Offset of field: ",
1790 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3),
1791 "::",
1792 stringify!(exception)
1793 )
1794 );
1795 assert_eq!(
1796 unsafe {
1797 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_3>())).error_code as *const _
1798 as usize
1799 },
1800 4usize,
1801 concat!(
1802 "Offset of field: ",
1803 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3),
1804 "::",
1805 stringify!(error_code)
1806 )
1807 );
1808 }
1809 #[repr(C)]
1810 #[derive(Debug, Default, Copy, Clone)]
1811 pub struct kvm_run__bindgen_ty_1__bindgen_ty_4 {
1812 pub direction: __u8,
1813 pub size: __u8,
1814 pub port: __u16,
1815 pub count: __u32,
1816 pub data_offset: __u64,
1817 }
1818 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_4()1819 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_4() {
1820 assert_eq!(
1821 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_4>(),
1822 16usize,
1823 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4))
1824 );
1825 assert_eq!(
1826 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_4>(),
1827 8usize,
1828 concat!(
1829 "Alignment of ",
1830 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4)
1831 )
1832 );
1833 assert_eq!(
1834 unsafe {
1835 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).direction as *const _
1836 as usize
1837 },
1838 0usize,
1839 concat!(
1840 "Offset of field: ",
1841 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
1842 "::",
1843 stringify!(direction)
1844 )
1845 );
1846 assert_eq!(
1847 unsafe {
1848 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).size as *const _
1849 as usize
1850 },
1851 1usize,
1852 concat!(
1853 "Offset of field: ",
1854 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
1855 "::",
1856 stringify!(size)
1857 )
1858 );
1859 assert_eq!(
1860 unsafe {
1861 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).port as *const _
1862 as usize
1863 },
1864 2usize,
1865 concat!(
1866 "Offset of field: ",
1867 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
1868 "::",
1869 stringify!(port)
1870 )
1871 );
1872 assert_eq!(
1873 unsafe {
1874 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).count as *const _
1875 as usize
1876 },
1877 4usize,
1878 concat!(
1879 "Offset of field: ",
1880 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
1881 "::",
1882 stringify!(count)
1883 )
1884 );
1885 assert_eq!(
1886 unsafe {
1887 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).data_offset as *const _
1888 as usize
1889 },
1890 8usize,
1891 concat!(
1892 "Offset of field: ",
1893 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
1894 "::",
1895 stringify!(data_offset)
1896 )
1897 );
1898 }
1899 #[repr(C)]
1900 #[derive(Debug, Default, Copy, Clone)]
1901 pub struct kvm_run__bindgen_ty_1__bindgen_ty_5 {
1902 pub arch: kvm_debug_exit_arch,
1903 }
1904 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_5()1905 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_5() {
1906 assert_eq!(
1907 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_5>(),
1908 16usize,
1909 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_5))
1910 );
1911 assert_eq!(
1912 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_5>(),
1913 8usize,
1914 concat!(
1915 "Alignment of ",
1916 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_5)
1917 )
1918 );
1919 assert_eq!(
1920 unsafe {
1921 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_5>())).arch as *const _
1922 as usize
1923 },
1924 0usize,
1925 concat!(
1926 "Offset of field: ",
1927 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_5),
1928 "::",
1929 stringify!(arch)
1930 )
1931 );
1932 }
1933 #[repr(C)]
1934 #[derive(Debug, Default, Copy, Clone)]
1935 pub struct kvm_run__bindgen_ty_1__bindgen_ty_6 {
1936 pub phys_addr: __u64,
1937 pub data: [__u8; 8usize],
1938 pub len: __u32,
1939 pub is_write: __u8,
1940 }
1941 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_6()1942 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_6() {
1943 assert_eq!(
1944 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_6>(),
1945 24usize,
1946 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6))
1947 );
1948 assert_eq!(
1949 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_6>(),
1950 8usize,
1951 concat!(
1952 "Alignment of ",
1953 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6)
1954 )
1955 );
1956 assert_eq!(
1957 unsafe {
1958 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).phys_addr as *const _
1959 as usize
1960 },
1961 0usize,
1962 concat!(
1963 "Offset of field: ",
1964 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
1965 "::",
1966 stringify!(phys_addr)
1967 )
1968 );
1969 assert_eq!(
1970 unsafe {
1971 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).data as *const _
1972 as usize
1973 },
1974 8usize,
1975 concat!(
1976 "Offset of field: ",
1977 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
1978 "::",
1979 stringify!(data)
1980 )
1981 );
1982 assert_eq!(
1983 unsafe {
1984 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).len as *const _ as usize
1985 },
1986 16usize,
1987 concat!(
1988 "Offset of field: ",
1989 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
1990 "::",
1991 stringify!(len)
1992 )
1993 );
1994 assert_eq!(
1995 unsafe {
1996 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).is_write as *const _
1997 as usize
1998 },
1999 20usize,
2000 concat!(
2001 "Offset of field: ",
2002 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
2003 "::",
2004 stringify!(is_write)
2005 )
2006 );
2007 }
2008 #[repr(C)]
2009 #[derive(Debug, Default, Copy, Clone)]
2010 pub struct kvm_run__bindgen_ty_1__bindgen_ty_7 {
2011 pub nr: __u64,
2012 pub args: [__u64; 6usize],
2013 pub ret: __u64,
2014 pub longmode: __u32,
2015 pub pad: __u32,
2016 }
2017 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_7()2018 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_7() {
2019 assert_eq!(
2020 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_7>(),
2021 72usize,
2022 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7))
2023 );
2024 assert_eq!(
2025 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_7>(),
2026 8usize,
2027 concat!(
2028 "Alignment of ",
2029 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7)
2030 )
2031 );
2032 assert_eq!(
2033 unsafe {
2034 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).nr as *const _ as usize
2035 },
2036 0usize,
2037 concat!(
2038 "Offset of field: ",
2039 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
2040 "::",
2041 stringify!(nr)
2042 )
2043 );
2044 assert_eq!(
2045 unsafe {
2046 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).args as *const _
2047 as usize
2048 },
2049 8usize,
2050 concat!(
2051 "Offset of field: ",
2052 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
2053 "::",
2054 stringify!(args)
2055 )
2056 );
2057 assert_eq!(
2058 unsafe {
2059 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).ret as *const _ as usize
2060 },
2061 56usize,
2062 concat!(
2063 "Offset of field: ",
2064 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
2065 "::",
2066 stringify!(ret)
2067 )
2068 );
2069 assert_eq!(
2070 unsafe {
2071 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).longmode as *const _
2072 as usize
2073 },
2074 64usize,
2075 concat!(
2076 "Offset of field: ",
2077 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
2078 "::",
2079 stringify!(longmode)
2080 )
2081 );
2082 assert_eq!(
2083 unsafe {
2084 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).pad as *const _ as usize
2085 },
2086 68usize,
2087 concat!(
2088 "Offset of field: ",
2089 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
2090 "::",
2091 stringify!(pad)
2092 )
2093 );
2094 }
2095 #[repr(C)]
2096 #[derive(Debug, Default, Copy, Clone)]
2097 pub struct kvm_run__bindgen_ty_1__bindgen_ty_8 {
2098 pub rip: __u64,
2099 pub is_write: __u32,
2100 pub pad: __u32,
2101 }
2102 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_8()2103 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_8() {
2104 assert_eq!(
2105 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_8>(),
2106 16usize,
2107 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8))
2108 );
2109 assert_eq!(
2110 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_8>(),
2111 8usize,
2112 concat!(
2113 "Alignment of ",
2114 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8)
2115 )
2116 );
2117 assert_eq!(
2118 unsafe {
2119 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_8>())).rip as *const _ as usize
2120 },
2121 0usize,
2122 concat!(
2123 "Offset of field: ",
2124 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8),
2125 "::",
2126 stringify!(rip)
2127 )
2128 );
2129 assert_eq!(
2130 unsafe {
2131 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_8>())).is_write as *const _
2132 as usize
2133 },
2134 8usize,
2135 concat!(
2136 "Offset of field: ",
2137 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8),
2138 "::",
2139 stringify!(is_write)
2140 )
2141 );
2142 assert_eq!(
2143 unsafe {
2144 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_8>())).pad as *const _ as usize
2145 },
2146 12usize,
2147 concat!(
2148 "Offset of field: ",
2149 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8),
2150 "::",
2151 stringify!(pad)
2152 )
2153 );
2154 }
2155 #[repr(C)]
2156 #[derive(Debug, Default, Copy, Clone)]
2157 pub struct kvm_run__bindgen_ty_1__bindgen_ty_9 {
2158 pub icptcode: __u8,
2159 pub ipa: __u16,
2160 pub ipb: __u32,
2161 }
2162 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_9()2163 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_9() {
2164 assert_eq!(
2165 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_9>(),
2166 8usize,
2167 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9))
2168 );
2169 assert_eq!(
2170 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_9>(),
2171 4usize,
2172 concat!(
2173 "Alignment of ",
2174 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9)
2175 )
2176 );
2177 assert_eq!(
2178 unsafe {
2179 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_9>())).icptcode as *const _
2180 as usize
2181 },
2182 0usize,
2183 concat!(
2184 "Offset of field: ",
2185 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9),
2186 "::",
2187 stringify!(icptcode)
2188 )
2189 );
2190 assert_eq!(
2191 unsafe {
2192 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_9>())).ipa as *const _ as usize
2193 },
2194 2usize,
2195 concat!(
2196 "Offset of field: ",
2197 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9),
2198 "::",
2199 stringify!(ipa)
2200 )
2201 );
2202 assert_eq!(
2203 unsafe {
2204 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_9>())).ipb as *const _ as usize
2205 },
2206 4usize,
2207 concat!(
2208 "Offset of field: ",
2209 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9),
2210 "::",
2211 stringify!(ipb)
2212 )
2213 );
2214 }
2215 #[repr(C)]
2216 #[derive(Debug, Default, Copy, Clone)]
2217 pub struct kvm_run__bindgen_ty_1__bindgen_ty_10 {
2218 pub trans_exc_code: __u64,
2219 pub pgm_code: __u32,
2220 }
2221 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_10()2222 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_10() {
2223 assert_eq!(
2224 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_10>(),
2225 16usize,
2226 concat!(
2227 "Size of: ",
2228 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10)
2229 )
2230 );
2231 assert_eq!(
2232 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_10>(),
2233 8usize,
2234 concat!(
2235 "Alignment of ",
2236 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10)
2237 )
2238 );
2239 assert_eq!(
2240 unsafe {
2241 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_10>())).trans_exc_code
2242 as *const _ as usize
2243 },
2244 0usize,
2245 concat!(
2246 "Offset of field: ",
2247 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10),
2248 "::",
2249 stringify!(trans_exc_code)
2250 )
2251 );
2252 assert_eq!(
2253 unsafe {
2254 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_10>())).pgm_code as *const _
2255 as usize
2256 },
2257 8usize,
2258 concat!(
2259 "Offset of field: ",
2260 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10),
2261 "::",
2262 stringify!(pgm_code)
2263 )
2264 );
2265 }
2266 #[repr(C)]
2267 #[derive(Debug, Default, Copy, Clone)]
2268 pub struct kvm_run__bindgen_ty_1__bindgen_ty_11 {
2269 pub dcrn: __u32,
2270 pub data: __u32,
2271 pub is_write: __u8,
2272 }
2273 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_11()2274 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_11() {
2275 assert_eq!(
2276 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_11>(),
2277 12usize,
2278 concat!(
2279 "Size of: ",
2280 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11)
2281 )
2282 );
2283 assert_eq!(
2284 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_11>(),
2285 4usize,
2286 concat!(
2287 "Alignment of ",
2288 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11)
2289 )
2290 );
2291 assert_eq!(
2292 unsafe {
2293 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_11>())).dcrn as *const _
2294 as usize
2295 },
2296 0usize,
2297 concat!(
2298 "Offset of field: ",
2299 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11),
2300 "::",
2301 stringify!(dcrn)
2302 )
2303 );
2304 assert_eq!(
2305 unsafe {
2306 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_11>())).data as *const _
2307 as usize
2308 },
2309 4usize,
2310 concat!(
2311 "Offset of field: ",
2312 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11),
2313 "::",
2314 stringify!(data)
2315 )
2316 );
2317 assert_eq!(
2318 unsafe {
2319 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_11>())).is_write as *const _
2320 as usize
2321 },
2322 8usize,
2323 concat!(
2324 "Offset of field: ",
2325 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11),
2326 "::",
2327 stringify!(is_write)
2328 )
2329 );
2330 }
2331 #[repr(C)]
2332 #[derive(Debug, Default, Copy, Clone)]
2333 pub struct kvm_run__bindgen_ty_1__bindgen_ty_12 {
2334 pub suberror: __u32,
2335 pub ndata: __u32,
2336 pub data: [__u64; 16usize],
2337 }
2338 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_12()2339 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_12() {
2340 assert_eq!(
2341 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_12>(),
2342 136usize,
2343 concat!(
2344 "Size of: ",
2345 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_12)
2346 )
2347 );
2348 assert_eq!(
2349 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_12>(),
2350 8usize,
2351 concat!(
2352 "Alignment of ",
2353 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_12)
2354 )
2355 );
2356 assert_eq!(
2357 unsafe {
2358 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_12>())).suberror as *const _
2359 as usize
2360 },
2361 0usize,
2362 concat!(
2363 "Offset of field: ",
2364 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_12),
2365 "::",
2366 stringify!(suberror)
2367 )
2368 );
2369 assert_eq!(
2370 unsafe {
2371 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_12>())).ndata as *const _
2372 as usize
2373 },
2374 4usize,
2375 concat!(
2376 "Offset of field: ",
2377 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_12),
2378 "::",
2379 stringify!(ndata)
2380 )
2381 );
2382 assert_eq!(
2383 unsafe {
2384 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_12>())).data as *const _
2385 as usize
2386 },
2387 8usize,
2388 concat!(
2389 "Offset of field: ",
2390 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_12),
2391 "::",
2392 stringify!(data)
2393 )
2394 );
2395 }
2396 #[repr(C)]
2397 #[derive(Debug, Default, Copy, Clone)]
2398 pub struct kvm_run__bindgen_ty_1__bindgen_ty_13 {
2399 pub gprs: [__u64; 32usize],
2400 }
2401 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_13()2402 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_13() {
2403 assert_eq!(
2404 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_13>(),
2405 256usize,
2406 concat!(
2407 "Size of: ",
2408 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_13)
2409 )
2410 );
2411 assert_eq!(
2412 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_13>(),
2413 8usize,
2414 concat!(
2415 "Alignment of ",
2416 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_13)
2417 )
2418 );
2419 assert_eq!(
2420 unsafe {
2421 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_13>())).gprs as *const _
2422 as usize
2423 },
2424 0usize,
2425 concat!(
2426 "Offset of field: ",
2427 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_13),
2428 "::",
2429 stringify!(gprs)
2430 )
2431 );
2432 }
2433 #[repr(C)]
2434 #[derive(Debug, Default, Copy, Clone)]
2435 pub struct kvm_run__bindgen_ty_1__bindgen_ty_14 {
2436 pub nr: __u64,
2437 pub ret: __u64,
2438 pub args: [__u64; 9usize],
2439 }
2440 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_14()2441 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_14() {
2442 assert_eq!(
2443 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_14>(),
2444 88usize,
2445 concat!(
2446 "Size of: ",
2447 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_14)
2448 )
2449 );
2450 assert_eq!(
2451 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_14>(),
2452 8usize,
2453 concat!(
2454 "Alignment of ",
2455 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_14)
2456 )
2457 );
2458 assert_eq!(
2459 unsafe {
2460 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_14>())).nr as *const _ as usize
2461 },
2462 0usize,
2463 concat!(
2464 "Offset of field: ",
2465 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_14),
2466 "::",
2467 stringify!(nr)
2468 )
2469 );
2470 assert_eq!(
2471 unsafe {
2472 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_14>())).ret as *const _
2473 as usize
2474 },
2475 8usize,
2476 concat!(
2477 "Offset of field: ",
2478 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_14),
2479 "::",
2480 stringify!(ret)
2481 )
2482 );
2483 assert_eq!(
2484 unsafe {
2485 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_14>())).args as *const _
2486 as usize
2487 },
2488 16usize,
2489 concat!(
2490 "Offset of field: ",
2491 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_14),
2492 "::",
2493 stringify!(args)
2494 )
2495 );
2496 }
2497 #[repr(C)]
2498 #[derive(Debug, Default, Copy, Clone)]
2499 pub struct kvm_run__bindgen_ty_1__bindgen_ty_15 {
2500 pub subchannel_id: __u16,
2501 pub subchannel_nr: __u16,
2502 pub io_int_parm: __u32,
2503 pub io_int_word: __u32,
2504 pub ipb: __u32,
2505 pub dequeued: __u8,
2506 }
2507 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_15()2508 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_15() {
2509 assert_eq!(
2510 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_15>(),
2511 20usize,
2512 concat!(
2513 "Size of: ",
2514 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15)
2515 )
2516 );
2517 assert_eq!(
2518 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_15>(),
2519 4usize,
2520 concat!(
2521 "Alignment of ",
2522 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15)
2523 )
2524 );
2525 assert_eq!(
2526 unsafe {
2527 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_15>())).subchannel_id
2528 as *const _ as usize
2529 },
2530 0usize,
2531 concat!(
2532 "Offset of field: ",
2533 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15),
2534 "::",
2535 stringify!(subchannel_id)
2536 )
2537 );
2538 assert_eq!(
2539 unsafe {
2540 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_15>())).subchannel_nr
2541 as *const _ as usize
2542 },
2543 2usize,
2544 concat!(
2545 "Offset of field: ",
2546 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15),
2547 "::",
2548 stringify!(subchannel_nr)
2549 )
2550 );
2551 assert_eq!(
2552 unsafe {
2553 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_15>())).io_int_parm as *const _
2554 as usize
2555 },
2556 4usize,
2557 concat!(
2558 "Offset of field: ",
2559 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15),
2560 "::",
2561 stringify!(io_int_parm)
2562 )
2563 );
2564 assert_eq!(
2565 unsafe {
2566 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_15>())).io_int_word as *const _
2567 as usize
2568 },
2569 8usize,
2570 concat!(
2571 "Offset of field: ",
2572 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15),
2573 "::",
2574 stringify!(io_int_word)
2575 )
2576 );
2577 assert_eq!(
2578 unsafe {
2579 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_15>())).ipb as *const _
2580 as usize
2581 },
2582 12usize,
2583 concat!(
2584 "Offset of field: ",
2585 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15),
2586 "::",
2587 stringify!(ipb)
2588 )
2589 );
2590 assert_eq!(
2591 unsafe {
2592 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_15>())).dequeued as *const _
2593 as usize
2594 },
2595 16usize,
2596 concat!(
2597 "Offset of field: ",
2598 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_15),
2599 "::",
2600 stringify!(dequeued)
2601 )
2602 );
2603 }
2604 #[repr(C)]
2605 #[derive(Debug, Default, Copy, Clone)]
2606 pub struct kvm_run__bindgen_ty_1__bindgen_ty_16 {
2607 pub epr: __u32,
2608 }
2609 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_16()2610 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_16() {
2611 assert_eq!(
2612 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_16>(),
2613 4usize,
2614 concat!(
2615 "Size of: ",
2616 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_16)
2617 )
2618 );
2619 assert_eq!(
2620 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_16>(),
2621 4usize,
2622 concat!(
2623 "Alignment of ",
2624 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_16)
2625 )
2626 );
2627 assert_eq!(
2628 unsafe {
2629 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_16>())).epr as *const _
2630 as usize
2631 },
2632 0usize,
2633 concat!(
2634 "Offset of field: ",
2635 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_16),
2636 "::",
2637 stringify!(epr)
2638 )
2639 );
2640 }
2641 #[repr(C)]
2642 #[derive(Debug, Default, Copy, Clone)]
2643 pub struct kvm_run__bindgen_ty_1__bindgen_ty_17 {
2644 pub type_: __u32,
2645 pub flags: __u64,
2646 }
2647 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_17()2648 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_17() {
2649 assert_eq!(
2650 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_17>(),
2651 16usize,
2652 concat!(
2653 "Size of: ",
2654 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_17)
2655 )
2656 );
2657 assert_eq!(
2658 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_17>(),
2659 8usize,
2660 concat!(
2661 "Alignment of ",
2662 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_17)
2663 )
2664 );
2665 assert_eq!(
2666 unsafe {
2667 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_17>())).type_ as *const _
2668 as usize
2669 },
2670 0usize,
2671 concat!(
2672 "Offset of field: ",
2673 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_17),
2674 "::",
2675 stringify!(type_)
2676 )
2677 );
2678 assert_eq!(
2679 unsafe {
2680 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_17>())).flags as *const _
2681 as usize
2682 },
2683 8usize,
2684 concat!(
2685 "Offset of field: ",
2686 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_17),
2687 "::",
2688 stringify!(flags)
2689 )
2690 );
2691 }
2692 #[repr(C)]
2693 #[derive(Debug, Default, Copy, Clone)]
2694 pub struct kvm_run__bindgen_ty_1__bindgen_ty_18 {
2695 pub addr: __u64,
2696 pub ar: __u8,
2697 pub reserved: __u8,
2698 pub fc: __u8,
2699 pub sel1: __u8,
2700 pub sel2: __u16,
2701 }
2702 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_18()2703 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_18() {
2704 assert_eq!(
2705 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_18>(),
2706 16usize,
2707 concat!(
2708 "Size of: ",
2709 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18)
2710 )
2711 );
2712 assert_eq!(
2713 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_18>(),
2714 8usize,
2715 concat!(
2716 "Alignment of ",
2717 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18)
2718 )
2719 );
2720 assert_eq!(
2721 unsafe {
2722 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_18>())).addr as *const _
2723 as usize
2724 },
2725 0usize,
2726 concat!(
2727 "Offset of field: ",
2728 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18),
2729 "::",
2730 stringify!(addr)
2731 )
2732 );
2733 assert_eq!(
2734 unsafe {
2735 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_18>())).ar as *const _ as usize
2736 },
2737 8usize,
2738 concat!(
2739 "Offset of field: ",
2740 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18),
2741 "::",
2742 stringify!(ar)
2743 )
2744 );
2745 assert_eq!(
2746 unsafe {
2747 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_18>())).reserved as *const _
2748 as usize
2749 },
2750 9usize,
2751 concat!(
2752 "Offset of field: ",
2753 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18),
2754 "::",
2755 stringify!(reserved)
2756 )
2757 );
2758 assert_eq!(
2759 unsafe {
2760 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_18>())).fc as *const _ as usize
2761 },
2762 10usize,
2763 concat!(
2764 "Offset of field: ",
2765 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18),
2766 "::",
2767 stringify!(fc)
2768 )
2769 );
2770 assert_eq!(
2771 unsafe {
2772 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_18>())).sel1 as *const _
2773 as usize
2774 },
2775 11usize,
2776 concat!(
2777 "Offset of field: ",
2778 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18),
2779 "::",
2780 stringify!(sel1)
2781 )
2782 );
2783 assert_eq!(
2784 unsafe {
2785 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_18>())).sel2 as *const _
2786 as usize
2787 },
2788 12usize,
2789 concat!(
2790 "Offset of field: ",
2791 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_18),
2792 "::",
2793 stringify!(sel2)
2794 )
2795 );
2796 }
2797 #[repr(C)]
2798 #[derive(Debug, Default, Copy, Clone)]
2799 pub struct kvm_run__bindgen_ty_1__bindgen_ty_19 {
2800 pub vector: __u8,
2801 }
2802 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_19()2803 fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_19() {
2804 assert_eq!(
2805 ::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_19>(),
2806 1usize,
2807 concat!(
2808 "Size of: ",
2809 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_19)
2810 )
2811 );
2812 assert_eq!(
2813 ::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_19>(),
2814 1usize,
2815 concat!(
2816 "Alignment of ",
2817 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_19)
2818 )
2819 );
2820 assert_eq!(
2821 unsafe {
2822 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_19>())).vector as *const _
2823 as usize
2824 },
2825 0usize,
2826 concat!(
2827 "Offset of field: ",
2828 stringify!(kvm_run__bindgen_ty_1__bindgen_ty_19),
2829 "::",
2830 stringify!(vector)
2831 )
2832 );
2833 }
2834 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_1()2835 fn bindgen_test_layout_kvm_run__bindgen_ty_1() {
2836 assert_eq!(
2837 ::std::mem::size_of::<kvm_run__bindgen_ty_1>(),
2838 256usize,
2839 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1))
2840 );
2841 assert_eq!(
2842 ::std::mem::align_of::<kvm_run__bindgen_ty_1>(),
2843 8usize,
2844 concat!("Alignment of ", stringify!(kvm_run__bindgen_ty_1))
2845 );
2846 assert_eq!(
2847 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).hw as *const _ as usize },
2848 0usize,
2849 concat!(
2850 "Offset of field: ",
2851 stringify!(kvm_run__bindgen_ty_1),
2852 "::",
2853 stringify!(hw)
2854 )
2855 );
2856 assert_eq!(
2857 unsafe {
2858 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).fail_entry as *const _ as usize
2859 },
2860 0usize,
2861 concat!(
2862 "Offset of field: ",
2863 stringify!(kvm_run__bindgen_ty_1),
2864 "::",
2865 stringify!(fail_entry)
2866 )
2867 );
2868 assert_eq!(
2869 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).ex as *const _ as usize },
2870 0usize,
2871 concat!(
2872 "Offset of field: ",
2873 stringify!(kvm_run__bindgen_ty_1),
2874 "::",
2875 stringify!(ex)
2876 )
2877 );
2878 assert_eq!(
2879 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).io as *const _ as usize },
2880 0usize,
2881 concat!(
2882 "Offset of field: ",
2883 stringify!(kvm_run__bindgen_ty_1),
2884 "::",
2885 stringify!(io)
2886 )
2887 );
2888 assert_eq!(
2889 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).debug as *const _ as usize },
2890 0usize,
2891 concat!(
2892 "Offset of field: ",
2893 stringify!(kvm_run__bindgen_ty_1),
2894 "::",
2895 stringify!(debug)
2896 )
2897 );
2898 assert_eq!(
2899 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).mmio as *const _ as usize },
2900 0usize,
2901 concat!(
2902 "Offset of field: ",
2903 stringify!(kvm_run__bindgen_ty_1),
2904 "::",
2905 stringify!(mmio)
2906 )
2907 );
2908 assert_eq!(
2909 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).hypercall as *const _ as usize },
2910 0usize,
2911 concat!(
2912 "Offset of field: ",
2913 stringify!(kvm_run__bindgen_ty_1),
2914 "::",
2915 stringify!(hypercall)
2916 )
2917 );
2918 assert_eq!(
2919 unsafe {
2920 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).tpr_access as *const _ as usize
2921 },
2922 0usize,
2923 concat!(
2924 "Offset of field: ",
2925 stringify!(kvm_run__bindgen_ty_1),
2926 "::",
2927 stringify!(tpr_access)
2928 )
2929 );
2930 assert_eq!(
2931 unsafe {
2932 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).s390_sieic as *const _ as usize
2933 },
2934 0usize,
2935 concat!(
2936 "Offset of field: ",
2937 stringify!(kvm_run__bindgen_ty_1),
2938 "::",
2939 stringify!(s390_sieic)
2940 )
2941 );
2942 assert_eq!(
2943 unsafe {
2944 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).s390_reset_flags as *const _ as usize
2945 },
2946 0usize,
2947 concat!(
2948 "Offset of field: ",
2949 stringify!(kvm_run__bindgen_ty_1),
2950 "::",
2951 stringify!(s390_reset_flags)
2952 )
2953 );
2954 assert_eq!(
2955 unsafe {
2956 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).s390_ucontrol as *const _ as usize
2957 },
2958 0usize,
2959 concat!(
2960 "Offset of field: ",
2961 stringify!(kvm_run__bindgen_ty_1),
2962 "::",
2963 stringify!(s390_ucontrol)
2964 )
2965 );
2966 assert_eq!(
2967 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).dcr as *const _ as usize },
2968 0usize,
2969 concat!(
2970 "Offset of field: ",
2971 stringify!(kvm_run__bindgen_ty_1),
2972 "::",
2973 stringify!(dcr)
2974 )
2975 );
2976 assert_eq!(
2977 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).internal as *const _ as usize },
2978 0usize,
2979 concat!(
2980 "Offset of field: ",
2981 stringify!(kvm_run__bindgen_ty_1),
2982 "::",
2983 stringify!(internal)
2984 )
2985 );
2986 assert_eq!(
2987 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).osi as *const _ as usize },
2988 0usize,
2989 concat!(
2990 "Offset of field: ",
2991 stringify!(kvm_run__bindgen_ty_1),
2992 "::",
2993 stringify!(osi)
2994 )
2995 );
2996 assert_eq!(
2997 unsafe {
2998 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).papr_hcall as *const _ as usize
2999 },
3000 0usize,
3001 concat!(
3002 "Offset of field: ",
3003 stringify!(kvm_run__bindgen_ty_1),
3004 "::",
3005 stringify!(papr_hcall)
3006 )
3007 );
3008 assert_eq!(
3009 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).s390_tsch as *const _ as usize },
3010 0usize,
3011 concat!(
3012 "Offset of field: ",
3013 stringify!(kvm_run__bindgen_ty_1),
3014 "::",
3015 stringify!(s390_tsch)
3016 )
3017 );
3018 assert_eq!(
3019 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).epr as *const _ as usize },
3020 0usize,
3021 concat!(
3022 "Offset of field: ",
3023 stringify!(kvm_run__bindgen_ty_1),
3024 "::",
3025 stringify!(epr)
3026 )
3027 );
3028 assert_eq!(
3029 unsafe {
3030 &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).system_event as *const _ as usize
3031 },
3032 0usize,
3033 concat!(
3034 "Offset of field: ",
3035 stringify!(kvm_run__bindgen_ty_1),
3036 "::",
3037 stringify!(system_event)
3038 )
3039 );
3040 assert_eq!(
3041 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).s390_stsi as *const _ as usize },
3042 0usize,
3043 concat!(
3044 "Offset of field: ",
3045 stringify!(kvm_run__bindgen_ty_1),
3046 "::",
3047 stringify!(s390_stsi)
3048 )
3049 );
3050 assert_eq!(
3051 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).eoi as *const _ as usize },
3052 0usize,
3053 concat!(
3054 "Offset of field: ",
3055 stringify!(kvm_run__bindgen_ty_1),
3056 "::",
3057 stringify!(eoi)
3058 )
3059 );
3060 assert_eq!(
3061 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_1>())).padding as *const _ as usize },
3062 0usize,
3063 concat!(
3064 "Offset of field: ",
3065 stringify!(kvm_run__bindgen_ty_1),
3066 "::",
3067 stringify!(padding)
3068 )
3069 );
3070 }
3071 impl Default for kvm_run__bindgen_ty_1 {
default() -> Self3072 fn default() -> Self {
3073 unsafe { ::std::mem::zeroed() }
3074 }
3075 }
3076 #[repr(C)]
3077 #[derive(Copy, Clone)]
3078 pub union kvm_run__bindgen_ty_2 {
3079 pub regs: kvm_sync_regs,
3080 pub padding: [::std::os::raw::c_char; 2048usize],
3081 _bindgen_union_align: [u8; 2048usize],
3082 }
3083 #[test]
bindgen_test_layout_kvm_run__bindgen_ty_2()3084 fn bindgen_test_layout_kvm_run__bindgen_ty_2() {
3085 assert_eq!(
3086 ::std::mem::size_of::<kvm_run__bindgen_ty_2>(),
3087 2048usize,
3088 concat!("Size of: ", stringify!(kvm_run__bindgen_ty_2))
3089 );
3090 assert_eq!(
3091 ::std::mem::align_of::<kvm_run__bindgen_ty_2>(),
3092 1usize,
3093 concat!("Alignment of ", stringify!(kvm_run__bindgen_ty_2))
3094 );
3095 assert_eq!(
3096 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_2>())).regs as *const _ as usize },
3097 0usize,
3098 concat!(
3099 "Offset of field: ",
3100 stringify!(kvm_run__bindgen_ty_2),
3101 "::",
3102 stringify!(regs)
3103 )
3104 );
3105 assert_eq!(
3106 unsafe { &(*(::std::ptr::null::<kvm_run__bindgen_ty_2>())).padding as *const _ as usize },
3107 0usize,
3108 concat!(
3109 "Offset of field: ",
3110 stringify!(kvm_run__bindgen_ty_2),
3111 "::",
3112 stringify!(padding)
3113 )
3114 );
3115 }
3116 impl Default for kvm_run__bindgen_ty_2 {
default() -> Self3117 fn default() -> Self {
3118 unsafe { ::std::mem::zeroed() }
3119 }
3120 }
3121 #[test]
bindgen_test_layout_kvm_run()3122 fn bindgen_test_layout_kvm_run() {
3123 assert_eq!(
3124 ::std::mem::size_of::<kvm_run>(),
3125 2352usize,
3126 concat!("Size of: ", stringify!(kvm_run))
3127 );
3128 assert_eq!(
3129 ::std::mem::align_of::<kvm_run>(),
3130 8usize,
3131 concat!("Alignment of ", stringify!(kvm_run))
3132 );
3133 assert_eq!(
3134 unsafe {
3135 &(*(::std::ptr::null::<kvm_run>())).request_interrupt_window as *const _ as usize
3136 },
3137 0usize,
3138 concat!(
3139 "Offset of field: ",
3140 stringify!(kvm_run),
3141 "::",
3142 stringify!(request_interrupt_window)
3143 )
3144 );
3145 assert_eq!(
3146 unsafe { &(*(::std::ptr::null::<kvm_run>())).padding1 as *const _ as usize },
3147 1usize,
3148 concat!(
3149 "Offset of field: ",
3150 stringify!(kvm_run),
3151 "::",
3152 stringify!(padding1)
3153 )
3154 );
3155 assert_eq!(
3156 unsafe { &(*(::std::ptr::null::<kvm_run>())).exit_reason as *const _ as usize },
3157 8usize,
3158 concat!(
3159 "Offset of field: ",
3160 stringify!(kvm_run),
3161 "::",
3162 stringify!(exit_reason)
3163 )
3164 );
3165 assert_eq!(
3166 unsafe {
3167 &(*(::std::ptr::null::<kvm_run>())).ready_for_interrupt_injection as *const _ as usize
3168 },
3169 12usize,
3170 concat!(
3171 "Offset of field: ",
3172 stringify!(kvm_run),
3173 "::",
3174 stringify!(ready_for_interrupt_injection)
3175 )
3176 );
3177 assert_eq!(
3178 unsafe { &(*(::std::ptr::null::<kvm_run>())).if_flag as *const _ as usize },
3179 13usize,
3180 concat!(
3181 "Offset of field: ",
3182 stringify!(kvm_run),
3183 "::",
3184 stringify!(if_flag)
3185 )
3186 );
3187 assert_eq!(
3188 unsafe { &(*(::std::ptr::null::<kvm_run>())).flags as *const _ as usize },
3189 14usize,
3190 concat!(
3191 "Offset of field: ",
3192 stringify!(kvm_run),
3193 "::",
3194 stringify!(flags)
3195 )
3196 );
3197 assert_eq!(
3198 unsafe { &(*(::std::ptr::null::<kvm_run>())).cr8 as *const _ as usize },
3199 16usize,
3200 concat!(
3201 "Offset of field: ",
3202 stringify!(kvm_run),
3203 "::",
3204 stringify!(cr8)
3205 )
3206 );
3207 assert_eq!(
3208 unsafe { &(*(::std::ptr::null::<kvm_run>())).apic_base as *const _ as usize },
3209 24usize,
3210 concat!(
3211 "Offset of field: ",
3212 stringify!(kvm_run),
3213 "::",
3214 stringify!(apic_base)
3215 )
3216 );
3217 assert_eq!(
3218 unsafe { &(*(::std::ptr::null::<kvm_run>())).kvm_valid_regs as *const _ as usize },
3219 288usize,
3220 concat!(
3221 "Offset of field: ",
3222 stringify!(kvm_run),
3223 "::",
3224 stringify!(kvm_valid_regs)
3225 )
3226 );
3227 assert_eq!(
3228 unsafe { &(*(::std::ptr::null::<kvm_run>())).kvm_dirty_regs as *const _ as usize },
3229 296usize,
3230 concat!(
3231 "Offset of field: ",
3232 stringify!(kvm_run),
3233 "::",
3234 stringify!(kvm_dirty_regs)
3235 )
3236 );
3237 assert_eq!(
3238 unsafe { &(*(::std::ptr::null::<kvm_run>())).s as *const _ as usize },
3239 304usize,
3240 concat!(
3241 "Offset of field: ",
3242 stringify!(kvm_run),
3243 "::",
3244 stringify!(s)
3245 )
3246 );
3247 }
3248 impl Default for kvm_run {
default() -> Self3249 fn default() -> Self {
3250 unsafe { ::std::mem::zeroed() }
3251 }
3252 }
3253 #[repr(C)]
3254 #[derive(Debug, Default, Copy, Clone)]
3255 pub struct kvm_coalesced_mmio_zone {
3256 pub addr: __u64,
3257 pub size: __u32,
3258 pub pad: __u32,
3259 }
3260 #[test]
bindgen_test_layout_kvm_coalesced_mmio_zone()3261 fn bindgen_test_layout_kvm_coalesced_mmio_zone() {
3262 assert_eq!(
3263 ::std::mem::size_of::<kvm_coalesced_mmio_zone>(),
3264 16usize,
3265 concat!("Size of: ", stringify!(kvm_coalesced_mmio_zone))
3266 );
3267 assert_eq!(
3268 ::std::mem::align_of::<kvm_coalesced_mmio_zone>(),
3269 8usize,
3270 concat!("Alignment of ", stringify!(kvm_coalesced_mmio_zone))
3271 );
3272 assert_eq!(
3273 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio_zone>())).addr as *const _ as usize },
3274 0usize,
3275 concat!(
3276 "Offset of field: ",
3277 stringify!(kvm_coalesced_mmio_zone),
3278 "::",
3279 stringify!(addr)
3280 )
3281 );
3282 assert_eq!(
3283 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio_zone>())).size as *const _ as usize },
3284 8usize,
3285 concat!(
3286 "Offset of field: ",
3287 stringify!(kvm_coalesced_mmio_zone),
3288 "::",
3289 stringify!(size)
3290 )
3291 );
3292 assert_eq!(
3293 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio_zone>())).pad as *const _ as usize },
3294 12usize,
3295 concat!(
3296 "Offset of field: ",
3297 stringify!(kvm_coalesced_mmio_zone),
3298 "::",
3299 stringify!(pad)
3300 )
3301 );
3302 }
3303 #[repr(C)]
3304 #[derive(Debug, Default, Copy, Clone)]
3305 pub struct kvm_coalesced_mmio {
3306 pub phys_addr: __u64,
3307 pub len: __u32,
3308 pub pad: __u32,
3309 pub data: [__u8; 8usize],
3310 }
3311 #[test]
bindgen_test_layout_kvm_coalesced_mmio()3312 fn bindgen_test_layout_kvm_coalesced_mmio() {
3313 assert_eq!(
3314 ::std::mem::size_of::<kvm_coalesced_mmio>(),
3315 24usize,
3316 concat!("Size of: ", stringify!(kvm_coalesced_mmio))
3317 );
3318 assert_eq!(
3319 ::std::mem::align_of::<kvm_coalesced_mmio>(),
3320 8usize,
3321 concat!("Alignment of ", stringify!(kvm_coalesced_mmio))
3322 );
3323 assert_eq!(
3324 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio>())).phys_addr as *const _ as usize },
3325 0usize,
3326 concat!(
3327 "Offset of field: ",
3328 stringify!(kvm_coalesced_mmio),
3329 "::",
3330 stringify!(phys_addr)
3331 )
3332 );
3333 assert_eq!(
3334 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio>())).len as *const _ as usize },
3335 8usize,
3336 concat!(
3337 "Offset of field: ",
3338 stringify!(kvm_coalesced_mmio),
3339 "::",
3340 stringify!(len)
3341 )
3342 );
3343 assert_eq!(
3344 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio>())).pad as *const _ as usize },
3345 12usize,
3346 concat!(
3347 "Offset of field: ",
3348 stringify!(kvm_coalesced_mmio),
3349 "::",
3350 stringify!(pad)
3351 )
3352 );
3353 assert_eq!(
3354 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio>())).data as *const _ as usize },
3355 16usize,
3356 concat!(
3357 "Offset of field: ",
3358 stringify!(kvm_coalesced_mmio),
3359 "::",
3360 stringify!(data)
3361 )
3362 );
3363 }
3364 #[repr(C)]
3365 #[derive(Debug, Default)]
3366 pub struct kvm_coalesced_mmio_ring {
3367 pub first: __u32,
3368 pub last: __u32,
3369 pub coalesced_mmio: __IncompleteArrayField<kvm_coalesced_mmio>,
3370 // Manually added to work around rust bindgen issue 684
3371 __force_alignment: [u64; 0],
3372 }
3373 #[test]
bindgen_test_layout_kvm_coalesced_mmio_ring()3374 fn bindgen_test_layout_kvm_coalesced_mmio_ring() {
3375 assert_eq!(
3376 ::std::mem::size_of::<kvm_coalesced_mmio_ring>(),
3377 8usize,
3378 concat!("Size of: ", stringify!(kvm_coalesced_mmio_ring))
3379 );
3380 assert_eq!(
3381 ::std::mem::align_of::<kvm_coalesced_mmio_ring>(),
3382 8usize,
3383 concat!("Alignment of ", stringify!(kvm_coalesced_mmio_ring))
3384 );
3385 assert_eq!(
3386 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio_ring>())).first as *const _ as usize },
3387 0usize,
3388 concat!(
3389 "Offset of field: ",
3390 stringify!(kvm_coalesced_mmio_ring),
3391 "::",
3392 stringify!(first)
3393 )
3394 );
3395 assert_eq!(
3396 unsafe { &(*(::std::ptr::null::<kvm_coalesced_mmio_ring>())).last as *const _ as usize },
3397 4usize,
3398 concat!(
3399 "Offset of field: ",
3400 stringify!(kvm_coalesced_mmio_ring),
3401 "::",
3402 stringify!(last)
3403 )
3404 );
3405 assert_eq!(
3406 unsafe {
3407 &(*(::std::ptr::null::<kvm_coalesced_mmio_ring>())).coalesced_mmio as *const _ as usize
3408 },
3409 8usize,
3410 concat!(
3411 "Offset of field: ",
3412 stringify!(kvm_coalesced_mmio_ring),
3413 "::",
3414 stringify!(coalesced_mmio)
3415 )
3416 );
3417 }
3418 #[repr(C)]
3419 #[derive(Debug, Default, Copy, Clone)]
3420 pub struct kvm_translation {
3421 pub linear_address: __u64,
3422 pub physical_address: __u64,
3423 pub valid: __u8,
3424 pub writeable: __u8,
3425 pub usermode: __u8,
3426 pub pad: [__u8; 5usize],
3427 }
3428 #[test]
bindgen_test_layout_kvm_translation()3429 fn bindgen_test_layout_kvm_translation() {
3430 assert_eq!(
3431 ::std::mem::size_of::<kvm_translation>(),
3432 24usize,
3433 concat!("Size of: ", stringify!(kvm_translation))
3434 );
3435 assert_eq!(
3436 ::std::mem::align_of::<kvm_translation>(),
3437 8usize,
3438 concat!("Alignment of ", stringify!(kvm_translation))
3439 );
3440 assert_eq!(
3441 unsafe { &(*(::std::ptr::null::<kvm_translation>())).linear_address as *const _ as usize },
3442 0usize,
3443 concat!(
3444 "Offset of field: ",
3445 stringify!(kvm_translation),
3446 "::",
3447 stringify!(linear_address)
3448 )
3449 );
3450 assert_eq!(
3451 unsafe {
3452 &(*(::std::ptr::null::<kvm_translation>())).physical_address as *const _ as usize
3453 },
3454 8usize,
3455 concat!(
3456 "Offset of field: ",
3457 stringify!(kvm_translation),
3458 "::",
3459 stringify!(physical_address)
3460 )
3461 );
3462 assert_eq!(
3463 unsafe { &(*(::std::ptr::null::<kvm_translation>())).valid as *const _ as usize },
3464 16usize,
3465 concat!(
3466 "Offset of field: ",
3467 stringify!(kvm_translation),
3468 "::",
3469 stringify!(valid)
3470 )
3471 );
3472 assert_eq!(
3473 unsafe { &(*(::std::ptr::null::<kvm_translation>())).writeable as *const _ as usize },
3474 17usize,
3475 concat!(
3476 "Offset of field: ",
3477 stringify!(kvm_translation),
3478 "::",
3479 stringify!(writeable)
3480 )
3481 );
3482 assert_eq!(
3483 unsafe { &(*(::std::ptr::null::<kvm_translation>())).usermode as *const _ as usize },
3484 18usize,
3485 concat!(
3486 "Offset of field: ",
3487 stringify!(kvm_translation),
3488 "::",
3489 stringify!(usermode)
3490 )
3491 );
3492 assert_eq!(
3493 unsafe { &(*(::std::ptr::null::<kvm_translation>())).pad as *const _ as usize },
3494 19usize,
3495 concat!(
3496 "Offset of field: ",
3497 stringify!(kvm_translation),
3498 "::",
3499 stringify!(pad)
3500 )
3501 );
3502 }
3503 #[repr(C)]
3504 #[derive(Debug, Default, Copy, Clone)]
3505 pub struct kvm_s390_mem_op {
3506 pub gaddr: __u64,
3507 pub flags: __u64,
3508 pub size: __u32,
3509 pub op: __u32,
3510 pub buf: __u64,
3511 pub ar: __u8,
3512 pub reserved: [__u8; 31usize],
3513 }
3514 #[test]
bindgen_test_layout_kvm_s390_mem_op()3515 fn bindgen_test_layout_kvm_s390_mem_op() {
3516 assert_eq!(
3517 ::std::mem::size_of::<kvm_s390_mem_op>(),
3518 64usize,
3519 concat!("Size of: ", stringify!(kvm_s390_mem_op))
3520 );
3521 assert_eq!(
3522 ::std::mem::align_of::<kvm_s390_mem_op>(),
3523 8usize,
3524 concat!("Alignment of ", stringify!(kvm_s390_mem_op))
3525 );
3526 assert_eq!(
3527 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).gaddr as *const _ as usize },
3528 0usize,
3529 concat!(
3530 "Offset of field: ",
3531 stringify!(kvm_s390_mem_op),
3532 "::",
3533 stringify!(gaddr)
3534 )
3535 );
3536 assert_eq!(
3537 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).flags as *const _ as usize },
3538 8usize,
3539 concat!(
3540 "Offset of field: ",
3541 stringify!(kvm_s390_mem_op),
3542 "::",
3543 stringify!(flags)
3544 )
3545 );
3546 assert_eq!(
3547 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).size as *const _ as usize },
3548 16usize,
3549 concat!(
3550 "Offset of field: ",
3551 stringify!(kvm_s390_mem_op),
3552 "::",
3553 stringify!(size)
3554 )
3555 );
3556 assert_eq!(
3557 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).op as *const _ as usize },
3558 20usize,
3559 concat!(
3560 "Offset of field: ",
3561 stringify!(kvm_s390_mem_op),
3562 "::",
3563 stringify!(op)
3564 )
3565 );
3566 assert_eq!(
3567 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).buf as *const _ as usize },
3568 24usize,
3569 concat!(
3570 "Offset of field: ",
3571 stringify!(kvm_s390_mem_op),
3572 "::",
3573 stringify!(buf)
3574 )
3575 );
3576 assert_eq!(
3577 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).ar as *const _ as usize },
3578 32usize,
3579 concat!(
3580 "Offset of field: ",
3581 stringify!(kvm_s390_mem_op),
3582 "::",
3583 stringify!(ar)
3584 )
3585 );
3586 assert_eq!(
3587 unsafe { &(*(::std::ptr::null::<kvm_s390_mem_op>())).reserved as *const _ as usize },
3588 33usize,
3589 concat!(
3590 "Offset of field: ",
3591 stringify!(kvm_s390_mem_op),
3592 "::",
3593 stringify!(reserved)
3594 )
3595 );
3596 }
3597 #[repr(C)]
3598 #[derive(Debug, Default, Copy, Clone)]
3599 pub struct kvm_interrupt {
3600 pub irq: __u32,
3601 }
3602 #[test]
bindgen_test_layout_kvm_interrupt()3603 fn bindgen_test_layout_kvm_interrupt() {
3604 assert_eq!(
3605 ::std::mem::size_of::<kvm_interrupt>(),
3606 4usize,
3607 concat!("Size of: ", stringify!(kvm_interrupt))
3608 );
3609 assert_eq!(
3610 ::std::mem::align_of::<kvm_interrupt>(),
3611 4usize,
3612 concat!("Alignment of ", stringify!(kvm_interrupt))
3613 );
3614 assert_eq!(
3615 unsafe { &(*(::std::ptr::null::<kvm_interrupt>())).irq as *const _ as usize },
3616 0usize,
3617 concat!(
3618 "Offset of field: ",
3619 stringify!(kvm_interrupt),
3620 "::",
3621 stringify!(irq)
3622 )
3623 );
3624 }
3625 #[repr(C)]
3626 #[derive(Copy, Clone)]
3627 pub struct kvm_dirty_log {
3628 pub slot: __u32,
3629 pub padding1: __u32,
3630 pub __bindgen_anon_1: kvm_dirty_log__bindgen_ty_1,
3631 }
3632 #[repr(C)]
3633 #[derive(Copy, Clone)]
3634 pub union kvm_dirty_log__bindgen_ty_1 {
3635 pub dirty_bitmap: *mut ::std::os::raw::c_void,
3636 pub padding2: __u64,
3637 _bindgen_union_align: u64,
3638 }
3639 #[test]
bindgen_test_layout_kvm_dirty_log__bindgen_ty_1()3640 fn bindgen_test_layout_kvm_dirty_log__bindgen_ty_1() {
3641 assert_eq!(
3642 ::std::mem::size_of::<kvm_dirty_log__bindgen_ty_1>(),
3643 8usize,
3644 concat!("Size of: ", stringify!(kvm_dirty_log__bindgen_ty_1))
3645 );
3646 assert_eq!(
3647 ::std::mem::align_of::<kvm_dirty_log__bindgen_ty_1>(),
3648 8usize,
3649 concat!("Alignment of ", stringify!(kvm_dirty_log__bindgen_ty_1))
3650 );
3651 assert_eq!(
3652 unsafe {
3653 &(*(::std::ptr::null::<kvm_dirty_log__bindgen_ty_1>())).dirty_bitmap as *const _
3654 as usize
3655 },
3656 0usize,
3657 concat!(
3658 "Offset of field: ",
3659 stringify!(kvm_dirty_log__bindgen_ty_1),
3660 "::",
3661 stringify!(dirty_bitmap)
3662 )
3663 );
3664 assert_eq!(
3665 unsafe {
3666 &(*(::std::ptr::null::<kvm_dirty_log__bindgen_ty_1>())).padding2 as *const _ as usize
3667 },
3668 0usize,
3669 concat!(
3670 "Offset of field: ",
3671 stringify!(kvm_dirty_log__bindgen_ty_1),
3672 "::",
3673 stringify!(padding2)
3674 )
3675 );
3676 }
3677 impl Default for kvm_dirty_log__bindgen_ty_1 {
default() -> Self3678 fn default() -> Self {
3679 unsafe { ::std::mem::zeroed() }
3680 }
3681 }
3682 #[test]
bindgen_test_layout_kvm_dirty_log()3683 fn bindgen_test_layout_kvm_dirty_log() {
3684 assert_eq!(
3685 ::std::mem::size_of::<kvm_dirty_log>(),
3686 16usize,
3687 concat!("Size of: ", stringify!(kvm_dirty_log))
3688 );
3689 assert_eq!(
3690 ::std::mem::align_of::<kvm_dirty_log>(),
3691 8usize,
3692 concat!("Alignment of ", stringify!(kvm_dirty_log))
3693 );
3694 assert_eq!(
3695 unsafe { &(*(::std::ptr::null::<kvm_dirty_log>())).slot as *const _ as usize },
3696 0usize,
3697 concat!(
3698 "Offset of field: ",
3699 stringify!(kvm_dirty_log),
3700 "::",
3701 stringify!(slot)
3702 )
3703 );
3704 assert_eq!(
3705 unsafe { &(*(::std::ptr::null::<kvm_dirty_log>())).padding1 as *const _ as usize },
3706 4usize,
3707 concat!(
3708 "Offset of field: ",
3709 stringify!(kvm_dirty_log),
3710 "::",
3711 stringify!(padding1)
3712 )
3713 );
3714 }
3715 impl Default for kvm_dirty_log {
default() -> Self3716 fn default() -> Self {
3717 unsafe { ::std::mem::zeroed() }
3718 }
3719 }
3720 #[repr(C)]
3721 #[derive(Debug, Default)]
3722 pub struct kvm_signal_mask {
3723 pub len: __u32,
3724 pub sigset: __IncompleteArrayField<__u8>,
3725 }
3726 #[test]
bindgen_test_layout_kvm_signal_mask()3727 fn bindgen_test_layout_kvm_signal_mask() {
3728 assert_eq!(
3729 ::std::mem::size_of::<kvm_signal_mask>(),
3730 4usize,
3731 concat!("Size of: ", stringify!(kvm_signal_mask))
3732 );
3733 assert_eq!(
3734 ::std::mem::align_of::<kvm_signal_mask>(),
3735 4usize,
3736 concat!("Alignment of ", stringify!(kvm_signal_mask))
3737 );
3738 assert_eq!(
3739 unsafe { &(*(::std::ptr::null::<kvm_signal_mask>())).len as *const _ as usize },
3740 0usize,
3741 concat!(
3742 "Offset of field: ",
3743 stringify!(kvm_signal_mask),
3744 "::",
3745 stringify!(len)
3746 )
3747 );
3748 assert_eq!(
3749 unsafe { &(*(::std::ptr::null::<kvm_signal_mask>())).sigset as *const _ as usize },
3750 4usize,
3751 concat!(
3752 "Offset of field: ",
3753 stringify!(kvm_signal_mask),
3754 "::",
3755 stringify!(sigset)
3756 )
3757 );
3758 }
3759 #[repr(C)]
3760 #[derive(Debug, Default, Copy, Clone)]
3761 pub struct kvm_tpr_access_ctl {
3762 pub enabled: __u32,
3763 pub flags: __u32,
3764 pub reserved: [__u32; 8usize],
3765 }
3766 #[test]
bindgen_test_layout_kvm_tpr_access_ctl()3767 fn bindgen_test_layout_kvm_tpr_access_ctl() {
3768 assert_eq!(
3769 ::std::mem::size_of::<kvm_tpr_access_ctl>(),
3770 40usize,
3771 concat!("Size of: ", stringify!(kvm_tpr_access_ctl))
3772 );
3773 assert_eq!(
3774 ::std::mem::align_of::<kvm_tpr_access_ctl>(),
3775 4usize,
3776 concat!("Alignment of ", stringify!(kvm_tpr_access_ctl))
3777 );
3778 assert_eq!(
3779 unsafe { &(*(::std::ptr::null::<kvm_tpr_access_ctl>())).enabled as *const _ as usize },
3780 0usize,
3781 concat!(
3782 "Offset of field: ",
3783 stringify!(kvm_tpr_access_ctl),
3784 "::",
3785 stringify!(enabled)
3786 )
3787 );
3788 assert_eq!(
3789 unsafe { &(*(::std::ptr::null::<kvm_tpr_access_ctl>())).flags as *const _ as usize },
3790 4usize,
3791 concat!(
3792 "Offset of field: ",
3793 stringify!(kvm_tpr_access_ctl),
3794 "::",
3795 stringify!(flags)
3796 )
3797 );
3798 assert_eq!(
3799 unsafe { &(*(::std::ptr::null::<kvm_tpr_access_ctl>())).reserved as *const _ as usize },
3800 8usize,
3801 concat!(
3802 "Offset of field: ",
3803 stringify!(kvm_tpr_access_ctl),
3804 "::",
3805 stringify!(reserved)
3806 )
3807 );
3808 }
3809 #[repr(C)]
3810 #[derive(Debug, Default, Copy, Clone)]
3811 pub struct kvm_vapic_addr {
3812 pub vapic_addr: __u64,
3813 }
3814 #[test]
bindgen_test_layout_kvm_vapic_addr()3815 fn bindgen_test_layout_kvm_vapic_addr() {
3816 assert_eq!(
3817 ::std::mem::size_of::<kvm_vapic_addr>(),
3818 8usize,
3819 concat!("Size of: ", stringify!(kvm_vapic_addr))
3820 );
3821 assert_eq!(
3822 ::std::mem::align_of::<kvm_vapic_addr>(),
3823 8usize,
3824 concat!("Alignment of ", stringify!(kvm_vapic_addr))
3825 );
3826 assert_eq!(
3827 unsafe { &(*(::std::ptr::null::<kvm_vapic_addr>())).vapic_addr as *const _ as usize },
3828 0usize,
3829 concat!(
3830 "Offset of field: ",
3831 stringify!(kvm_vapic_addr),
3832 "::",
3833 stringify!(vapic_addr)
3834 )
3835 );
3836 }
3837 #[repr(C)]
3838 #[derive(Debug, Default, Copy, Clone)]
3839 pub struct kvm_mp_state {
3840 pub mp_state: __u32,
3841 }
3842 #[test]
bindgen_test_layout_kvm_mp_state()3843 fn bindgen_test_layout_kvm_mp_state() {
3844 assert_eq!(
3845 ::std::mem::size_of::<kvm_mp_state>(),
3846 4usize,
3847 concat!("Size of: ", stringify!(kvm_mp_state))
3848 );
3849 assert_eq!(
3850 ::std::mem::align_of::<kvm_mp_state>(),
3851 4usize,
3852 concat!("Alignment of ", stringify!(kvm_mp_state))
3853 );
3854 assert_eq!(
3855 unsafe { &(*(::std::ptr::null::<kvm_mp_state>())).mp_state as *const _ as usize },
3856 0usize,
3857 concat!(
3858 "Offset of field: ",
3859 stringify!(kvm_mp_state),
3860 "::",
3861 stringify!(mp_state)
3862 )
3863 );
3864 }
3865 #[repr(C)]
3866 #[derive(Debug, Default, Copy, Clone)]
3867 pub struct kvm_s390_psw {
3868 pub mask: __u64,
3869 pub addr: __u64,
3870 }
3871 #[test]
bindgen_test_layout_kvm_s390_psw()3872 fn bindgen_test_layout_kvm_s390_psw() {
3873 assert_eq!(
3874 ::std::mem::size_of::<kvm_s390_psw>(),
3875 16usize,
3876 concat!("Size of: ", stringify!(kvm_s390_psw))
3877 );
3878 assert_eq!(
3879 ::std::mem::align_of::<kvm_s390_psw>(),
3880 8usize,
3881 concat!("Alignment of ", stringify!(kvm_s390_psw))
3882 );
3883 assert_eq!(
3884 unsafe { &(*(::std::ptr::null::<kvm_s390_psw>())).mask as *const _ as usize },
3885 0usize,
3886 concat!(
3887 "Offset of field: ",
3888 stringify!(kvm_s390_psw),
3889 "::",
3890 stringify!(mask)
3891 )
3892 );
3893 assert_eq!(
3894 unsafe { &(*(::std::ptr::null::<kvm_s390_psw>())).addr as *const _ as usize },
3895 8usize,
3896 concat!(
3897 "Offset of field: ",
3898 stringify!(kvm_s390_psw),
3899 "::",
3900 stringify!(addr)
3901 )
3902 );
3903 }
3904 #[repr(C)]
3905 #[derive(Debug, Default, Copy, Clone)]
3906 pub struct kvm_s390_interrupt {
3907 pub type_: __u32,
3908 pub parm: __u32,
3909 pub parm64: __u64,
3910 }
3911 #[test]
bindgen_test_layout_kvm_s390_interrupt()3912 fn bindgen_test_layout_kvm_s390_interrupt() {
3913 assert_eq!(
3914 ::std::mem::size_of::<kvm_s390_interrupt>(),
3915 16usize,
3916 concat!("Size of: ", stringify!(kvm_s390_interrupt))
3917 );
3918 assert_eq!(
3919 ::std::mem::align_of::<kvm_s390_interrupt>(),
3920 8usize,
3921 concat!("Alignment of ", stringify!(kvm_s390_interrupt))
3922 );
3923 assert_eq!(
3924 unsafe { &(*(::std::ptr::null::<kvm_s390_interrupt>())).type_ as *const _ as usize },
3925 0usize,
3926 concat!(
3927 "Offset of field: ",
3928 stringify!(kvm_s390_interrupt),
3929 "::",
3930 stringify!(type_)
3931 )
3932 );
3933 assert_eq!(
3934 unsafe { &(*(::std::ptr::null::<kvm_s390_interrupt>())).parm as *const _ as usize },
3935 4usize,
3936 concat!(
3937 "Offset of field: ",
3938 stringify!(kvm_s390_interrupt),
3939 "::",
3940 stringify!(parm)
3941 )
3942 );
3943 assert_eq!(
3944 unsafe { &(*(::std::ptr::null::<kvm_s390_interrupt>())).parm64 as *const _ as usize },
3945 8usize,
3946 concat!(
3947 "Offset of field: ",
3948 stringify!(kvm_s390_interrupt),
3949 "::",
3950 stringify!(parm64)
3951 )
3952 );
3953 }
3954 #[repr(C)]
3955 #[derive(Debug, Default, Copy, Clone)]
3956 pub struct kvm_s390_io_info {
3957 pub subchannel_id: __u16,
3958 pub subchannel_nr: __u16,
3959 pub io_int_parm: __u32,
3960 pub io_int_word: __u32,
3961 }
3962 #[test]
bindgen_test_layout_kvm_s390_io_info()3963 fn bindgen_test_layout_kvm_s390_io_info() {
3964 assert_eq!(
3965 ::std::mem::size_of::<kvm_s390_io_info>(),
3966 12usize,
3967 concat!("Size of: ", stringify!(kvm_s390_io_info))
3968 );
3969 assert_eq!(
3970 ::std::mem::align_of::<kvm_s390_io_info>(),
3971 4usize,
3972 concat!("Alignment of ", stringify!(kvm_s390_io_info))
3973 );
3974 assert_eq!(
3975 unsafe { &(*(::std::ptr::null::<kvm_s390_io_info>())).subchannel_id as *const _ as usize },
3976 0usize,
3977 concat!(
3978 "Offset of field: ",
3979 stringify!(kvm_s390_io_info),
3980 "::",
3981 stringify!(subchannel_id)
3982 )
3983 );
3984 assert_eq!(
3985 unsafe { &(*(::std::ptr::null::<kvm_s390_io_info>())).subchannel_nr as *const _ as usize },
3986 2usize,
3987 concat!(
3988 "Offset of field: ",
3989 stringify!(kvm_s390_io_info),
3990 "::",
3991 stringify!(subchannel_nr)
3992 )
3993 );
3994 assert_eq!(
3995 unsafe { &(*(::std::ptr::null::<kvm_s390_io_info>())).io_int_parm as *const _ as usize },
3996 4usize,
3997 concat!(
3998 "Offset of field: ",
3999 stringify!(kvm_s390_io_info),
4000 "::",
4001 stringify!(io_int_parm)
4002 )
4003 );
4004 assert_eq!(
4005 unsafe { &(*(::std::ptr::null::<kvm_s390_io_info>())).io_int_word as *const _ as usize },
4006 8usize,
4007 concat!(
4008 "Offset of field: ",
4009 stringify!(kvm_s390_io_info),
4010 "::",
4011 stringify!(io_int_word)
4012 )
4013 );
4014 }
4015 #[repr(C)]
4016 #[derive(Debug, Default, Copy, Clone)]
4017 pub struct kvm_s390_ext_info {
4018 pub ext_params: __u32,
4019 pub pad: __u32,
4020 pub ext_params2: __u64,
4021 }
4022 #[test]
bindgen_test_layout_kvm_s390_ext_info()4023 fn bindgen_test_layout_kvm_s390_ext_info() {
4024 assert_eq!(
4025 ::std::mem::size_of::<kvm_s390_ext_info>(),
4026 16usize,
4027 concat!("Size of: ", stringify!(kvm_s390_ext_info))
4028 );
4029 assert_eq!(
4030 ::std::mem::align_of::<kvm_s390_ext_info>(),
4031 8usize,
4032 concat!("Alignment of ", stringify!(kvm_s390_ext_info))
4033 );
4034 assert_eq!(
4035 unsafe { &(*(::std::ptr::null::<kvm_s390_ext_info>())).ext_params as *const _ as usize },
4036 0usize,
4037 concat!(
4038 "Offset of field: ",
4039 stringify!(kvm_s390_ext_info),
4040 "::",
4041 stringify!(ext_params)
4042 )
4043 );
4044 assert_eq!(
4045 unsafe { &(*(::std::ptr::null::<kvm_s390_ext_info>())).pad as *const _ as usize },
4046 4usize,
4047 concat!(
4048 "Offset of field: ",
4049 stringify!(kvm_s390_ext_info),
4050 "::",
4051 stringify!(pad)
4052 )
4053 );
4054 assert_eq!(
4055 unsafe { &(*(::std::ptr::null::<kvm_s390_ext_info>())).ext_params2 as *const _ as usize },
4056 8usize,
4057 concat!(
4058 "Offset of field: ",
4059 stringify!(kvm_s390_ext_info),
4060 "::",
4061 stringify!(ext_params2)
4062 )
4063 );
4064 }
4065 #[repr(C)]
4066 #[derive(Debug, Default, Copy, Clone)]
4067 pub struct kvm_s390_pgm_info {
4068 pub trans_exc_code: __u64,
4069 pub mon_code: __u64,
4070 pub per_address: __u64,
4071 pub data_exc_code: __u32,
4072 pub code: __u16,
4073 pub mon_class_nr: __u16,
4074 pub per_code: __u8,
4075 pub per_atmid: __u8,
4076 pub exc_access_id: __u8,
4077 pub per_access_id: __u8,
4078 pub op_access_id: __u8,
4079 pub pad: [__u8; 3usize],
4080 }
4081 #[test]
bindgen_test_layout_kvm_s390_pgm_info()4082 fn bindgen_test_layout_kvm_s390_pgm_info() {
4083 assert_eq!(
4084 ::std::mem::size_of::<kvm_s390_pgm_info>(),
4085 40usize,
4086 concat!("Size of: ", stringify!(kvm_s390_pgm_info))
4087 );
4088 assert_eq!(
4089 ::std::mem::align_of::<kvm_s390_pgm_info>(),
4090 8usize,
4091 concat!("Alignment of ", stringify!(kvm_s390_pgm_info))
4092 );
4093 assert_eq!(
4094 unsafe {
4095 &(*(::std::ptr::null::<kvm_s390_pgm_info>())).trans_exc_code as *const _ as usize
4096 },
4097 0usize,
4098 concat!(
4099 "Offset of field: ",
4100 stringify!(kvm_s390_pgm_info),
4101 "::",
4102 stringify!(trans_exc_code)
4103 )
4104 );
4105 assert_eq!(
4106 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).mon_code as *const _ as usize },
4107 8usize,
4108 concat!(
4109 "Offset of field: ",
4110 stringify!(kvm_s390_pgm_info),
4111 "::",
4112 stringify!(mon_code)
4113 )
4114 );
4115 assert_eq!(
4116 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).per_address as *const _ as usize },
4117 16usize,
4118 concat!(
4119 "Offset of field: ",
4120 stringify!(kvm_s390_pgm_info),
4121 "::",
4122 stringify!(per_address)
4123 )
4124 );
4125 assert_eq!(
4126 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).data_exc_code as *const _ as usize },
4127 24usize,
4128 concat!(
4129 "Offset of field: ",
4130 stringify!(kvm_s390_pgm_info),
4131 "::",
4132 stringify!(data_exc_code)
4133 )
4134 );
4135 assert_eq!(
4136 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).code as *const _ as usize },
4137 28usize,
4138 concat!(
4139 "Offset of field: ",
4140 stringify!(kvm_s390_pgm_info),
4141 "::",
4142 stringify!(code)
4143 )
4144 );
4145 assert_eq!(
4146 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).mon_class_nr as *const _ as usize },
4147 30usize,
4148 concat!(
4149 "Offset of field: ",
4150 stringify!(kvm_s390_pgm_info),
4151 "::",
4152 stringify!(mon_class_nr)
4153 )
4154 );
4155 assert_eq!(
4156 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).per_code as *const _ as usize },
4157 32usize,
4158 concat!(
4159 "Offset of field: ",
4160 stringify!(kvm_s390_pgm_info),
4161 "::",
4162 stringify!(per_code)
4163 )
4164 );
4165 assert_eq!(
4166 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).per_atmid as *const _ as usize },
4167 33usize,
4168 concat!(
4169 "Offset of field: ",
4170 stringify!(kvm_s390_pgm_info),
4171 "::",
4172 stringify!(per_atmid)
4173 )
4174 );
4175 assert_eq!(
4176 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).exc_access_id as *const _ as usize },
4177 34usize,
4178 concat!(
4179 "Offset of field: ",
4180 stringify!(kvm_s390_pgm_info),
4181 "::",
4182 stringify!(exc_access_id)
4183 )
4184 );
4185 assert_eq!(
4186 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).per_access_id as *const _ as usize },
4187 35usize,
4188 concat!(
4189 "Offset of field: ",
4190 stringify!(kvm_s390_pgm_info),
4191 "::",
4192 stringify!(per_access_id)
4193 )
4194 );
4195 assert_eq!(
4196 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).op_access_id as *const _ as usize },
4197 36usize,
4198 concat!(
4199 "Offset of field: ",
4200 stringify!(kvm_s390_pgm_info),
4201 "::",
4202 stringify!(op_access_id)
4203 )
4204 );
4205 assert_eq!(
4206 unsafe { &(*(::std::ptr::null::<kvm_s390_pgm_info>())).pad as *const _ as usize },
4207 37usize,
4208 concat!(
4209 "Offset of field: ",
4210 stringify!(kvm_s390_pgm_info),
4211 "::",
4212 stringify!(pad)
4213 )
4214 );
4215 }
4216 #[repr(C)]
4217 #[derive(Debug, Default, Copy, Clone)]
4218 pub struct kvm_s390_prefix_info {
4219 pub address: __u32,
4220 }
4221 #[test]
bindgen_test_layout_kvm_s390_prefix_info()4222 fn bindgen_test_layout_kvm_s390_prefix_info() {
4223 assert_eq!(
4224 ::std::mem::size_of::<kvm_s390_prefix_info>(),
4225 4usize,
4226 concat!("Size of: ", stringify!(kvm_s390_prefix_info))
4227 );
4228 assert_eq!(
4229 ::std::mem::align_of::<kvm_s390_prefix_info>(),
4230 4usize,
4231 concat!("Alignment of ", stringify!(kvm_s390_prefix_info))
4232 );
4233 assert_eq!(
4234 unsafe { &(*(::std::ptr::null::<kvm_s390_prefix_info>())).address as *const _ as usize },
4235 0usize,
4236 concat!(
4237 "Offset of field: ",
4238 stringify!(kvm_s390_prefix_info),
4239 "::",
4240 stringify!(address)
4241 )
4242 );
4243 }
4244 #[repr(C)]
4245 #[derive(Debug, Default, Copy, Clone)]
4246 pub struct kvm_s390_extcall_info {
4247 pub code: __u16,
4248 }
4249 #[test]
bindgen_test_layout_kvm_s390_extcall_info()4250 fn bindgen_test_layout_kvm_s390_extcall_info() {
4251 assert_eq!(
4252 ::std::mem::size_of::<kvm_s390_extcall_info>(),
4253 2usize,
4254 concat!("Size of: ", stringify!(kvm_s390_extcall_info))
4255 );
4256 assert_eq!(
4257 ::std::mem::align_of::<kvm_s390_extcall_info>(),
4258 2usize,
4259 concat!("Alignment of ", stringify!(kvm_s390_extcall_info))
4260 );
4261 assert_eq!(
4262 unsafe { &(*(::std::ptr::null::<kvm_s390_extcall_info>())).code as *const _ as usize },
4263 0usize,
4264 concat!(
4265 "Offset of field: ",
4266 stringify!(kvm_s390_extcall_info),
4267 "::",
4268 stringify!(code)
4269 )
4270 );
4271 }
4272 #[repr(C)]
4273 #[derive(Debug, Default, Copy, Clone)]
4274 pub struct kvm_s390_emerg_info {
4275 pub code: __u16,
4276 }
4277 #[test]
bindgen_test_layout_kvm_s390_emerg_info()4278 fn bindgen_test_layout_kvm_s390_emerg_info() {
4279 assert_eq!(
4280 ::std::mem::size_of::<kvm_s390_emerg_info>(),
4281 2usize,
4282 concat!("Size of: ", stringify!(kvm_s390_emerg_info))
4283 );
4284 assert_eq!(
4285 ::std::mem::align_of::<kvm_s390_emerg_info>(),
4286 2usize,
4287 concat!("Alignment of ", stringify!(kvm_s390_emerg_info))
4288 );
4289 assert_eq!(
4290 unsafe { &(*(::std::ptr::null::<kvm_s390_emerg_info>())).code as *const _ as usize },
4291 0usize,
4292 concat!(
4293 "Offset of field: ",
4294 stringify!(kvm_s390_emerg_info),
4295 "::",
4296 stringify!(code)
4297 )
4298 );
4299 }
4300 #[repr(C)]
4301 #[derive(Debug, Default, Copy, Clone)]
4302 pub struct kvm_s390_stop_info {
4303 pub flags: __u32,
4304 }
4305 #[test]
bindgen_test_layout_kvm_s390_stop_info()4306 fn bindgen_test_layout_kvm_s390_stop_info() {
4307 assert_eq!(
4308 ::std::mem::size_of::<kvm_s390_stop_info>(),
4309 4usize,
4310 concat!("Size of: ", stringify!(kvm_s390_stop_info))
4311 );
4312 assert_eq!(
4313 ::std::mem::align_of::<kvm_s390_stop_info>(),
4314 4usize,
4315 concat!("Alignment of ", stringify!(kvm_s390_stop_info))
4316 );
4317 assert_eq!(
4318 unsafe { &(*(::std::ptr::null::<kvm_s390_stop_info>())).flags as *const _ as usize },
4319 0usize,
4320 concat!(
4321 "Offset of field: ",
4322 stringify!(kvm_s390_stop_info),
4323 "::",
4324 stringify!(flags)
4325 )
4326 );
4327 }
4328 #[repr(C)]
4329 #[derive(Debug, Default, Copy, Clone)]
4330 pub struct kvm_s390_mchk_info {
4331 pub cr14: __u64,
4332 pub mcic: __u64,
4333 pub failing_storage_address: __u64,
4334 pub ext_damage_code: __u32,
4335 pub pad: __u32,
4336 pub fixed_logout: [__u8; 16usize],
4337 }
4338 #[test]
bindgen_test_layout_kvm_s390_mchk_info()4339 fn bindgen_test_layout_kvm_s390_mchk_info() {
4340 assert_eq!(
4341 ::std::mem::size_of::<kvm_s390_mchk_info>(),
4342 48usize,
4343 concat!("Size of: ", stringify!(kvm_s390_mchk_info))
4344 );
4345 assert_eq!(
4346 ::std::mem::align_of::<kvm_s390_mchk_info>(),
4347 8usize,
4348 concat!("Alignment of ", stringify!(kvm_s390_mchk_info))
4349 );
4350 assert_eq!(
4351 unsafe { &(*(::std::ptr::null::<kvm_s390_mchk_info>())).cr14 as *const _ as usize },
4352 0usize,
4353 concat!(
4354 "Offset of field: ",
4355 stringify!(kvm_s390_mchk_info),
4356 "::",
4357 stringify!(cr14)
4358 )
4359 );
4360 assert_eq!(
4361 unsafe { &(*(::std::ptr::null::<kvm_s390_mchk_info>())).mcic as *const _ as usize },
4362 8usize,
4363 concat!(
4364 "Offset of field: ",
4365 stringify!(kvm_s390_mchk_info),
4366 "::",
4367 stringify!(mcic)
4368 )
4369 );
4370 assert_eq!(
4371 unsafe {
4372 &(*(::std::ptr::null::<kvm_s390_mchk_info>())).failing_storage_address as *const _
4373 as usize
4374 },
4375 16usize,
4376 concat!(
4377 "Offset of field: ",
4378 stringify!(kvm_s390_mchk_info),
4379 "::",
4380 stringify!(failing_storage_address)
4381 )
4382 );
4383 assert_eq!(
4384 unsafe {
4385 &(*(::std::ptr::null::<kvm_s390_mchk_info>())).ext_damage_code as *const _ as usize
4386 },
4387 24usize,
4388 concat!(
4389 "Offset of field: ",
4390 stringify!(kvm_s390_mchk_info),
4391 "::",
4392 stringify!(ext_damage_code)
4393 )
4394 );
4395 assert_eq!(
4396 unsafe { &(*(::std::ptr::null::<kvm_s390_mchk_info>())).pad as *const _ as usize },
4397 28usize,
4398 concat!(
4399 "Offset of field: ",
4400 stringify!(kvm_s390_mchk_info),
4401 "::",
4402 stringify!(pad)
4403 )
4404 );
4405 assert_eq!(
4406 unsafe { &(*(::std::ptr::null::<kvm_s390_mchk_info>())).fixed_logout as *const _ as usize },
4407 32usize,
4408 concat!(
4409 "Offset of field: ",
4410 stringify!(kvm_s390_mchk_info),
4411 "::",
4412 stringify!(fixed_logout)
4413 )
4414 );
4415 }
4416 #[repr(C)]
4417 #[derive(Copy, Clone)]
4418 pub struct kvm_s390_irq {
4419 pub type_: __u64,
4420 pub u: kvm_s390_irq__bindgen_ty_1,
4421 }
4422
4423 #[repr(C)]
4424 #[derive(Copy, Clone)]
4425 pub union kvm_s390_irq__bindgen_ty_1 {
4426 pub io: kvm_s390_io_info,
4427 pub ext: kvm_s390_ext_info,
4428 pub pgm: kvm_s390_pgm_info,
4429 pub emerg: kvm_s390_emerg_info,
4430 pub extcall: kvm_s390_extcall_info,
4431 pub prefix: kvm_s390_prefix_info,
4432 pub stop: kvm_s390_stop_info,
4433 pub mchk: kvm_s390_mchk_info,
4434 pub reserved: [::std::os::raw::c_char; 64usize],
4435 _bindgen_union_align: [u64; 8usize],
4436 }
4437 #[test]
bindgen_test_layout_kvm_s390_irq__bindgen_ty_1()4438 fn bindgen_test_layout_kvm_s390_irq__bindgen_ty_1() {
4439 assert_eq!(
4440 ::std::mem::size_of::<kvm_s390_irq__bindgen_ty_1>(),
4441 64usize,
4442 concat!("Size of: ", stringify!(kvm_s390_irq__bindgen_ty_1))
4443 );
4444 assert_eq!(
4445 ::std::mem::align_of::<kvm_s390_irq__bindgen_ty_1>(),
4446 8usize,
4447 concat!("Alignment of ", stringify!(kvm_s390_irq__bindgen_ty_1))
4448 );
4449 assert_eq!(
4450 unsafe { &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).io as *const _ as usize },
4451 0usize,
4452 concat!(
4453 "Offset of field: ",
4454 stringify!(kvm_s390_irq__bindgen_ty_1),
4455 "::",
4456 stringify!(io)
4457 )
4458 );
4459 assert_eq!(
4460 unsafe { &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).ext as *const _ as usize },
4461 0usize,
4462 concat!(
4463 "Offset of field: ",
4464 stringify!(kvm_s390_irq__bindgen_ty_1),
4465 "::",
4466 stringify!(ext)
4467 )
4468 );
4469 assert_eq!(
4470 unsafe { &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).pgm as *const _ as usize },
4471 0usize,
4472 concat!(
4473 "Offset of field: ",
4474 stringify!(kvm_s390_irq__bindgen_ty_1),
4475 "::",
4476 stringify!(pgm)
4477 )
4478 );
4479 assert_eq!(
4480 unsafe {
4481 &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).emerg as *const _ as usize
4482 },
4483 0usize,
4484 concat!(
4485 "Offset of field: ",
4486 stringify!(kvm_s390_irq__bindgen_ty_1),
4487 "::",
4488 stringify!(emerg)
4489 )
4490 );
4491 assert_eq!(
4492 unsafe {
4493 &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).extcall as *const _ as usize
4494 },
4495 0usize,
4496 concat!(
4497 "Offset of field: ",
4498 stringify!(kvm_s390_irq__bindgen_ty_1),
4499 "::",
4500 stringify!(extcall)
4501 )
4502 );
4503 assert_eq!(
4504 unsafe {
4505 &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).prefix as *const _ as usize
4506 },
4507 0usize,
4508 concat!(
4509 "Offset of field: ",
4510 stringify!(kvm_s390_irq__bindgen_ty_1),
4511 "::",
4512 stringify!(prefix)
4513 )
4514 );
4515 assert_eq!(
4516 unsafe { &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).stop as *const _ as usize },
4517 0usize,
4518 concat!(
4519 "Offset of field: ",
4520 stringify!(kvm_s390_irq__bindgen_ty_1),
4521 "::",
4522 stringify!(stop)
4523 )
4524 );
4525 assert_eq!(
4526 unsafe { &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).mchk as *const _ as usize },
4527 0usize,
4528 concat!(
4529 "Offset of field: ",
4530 stringify!(kvm_s390_irq__bindgen_ty_1),
4531 "::",
4532 stringify!(mchk)
4533 )
4534 );
4535 assert_eq!(
4536 unsafe {
4537 &(*(::std::ptr::null::<kvm_s390_irq__bindgen_ty_1>())).reserved as *const _ as usize
4538 },
4539 0usize,
4540 concat!(
4541 "Offset of field: ",
4542 stringify!(kvm_s390_irq__bindgen_ty_1),
4543 "::",
4544 stringify!(reserved)
4545 )
4546 );
4547 }
4548 impl Default for kvm_s390_irq__bindgen_ty_1 {
default() -> Self4549 fn default() -> Self {
4550 unsafe { ::std::mem::zeroed() }
4551 }
4552 }
4553 #[test]
bindgen_test_layout_kvm_s390_irq()4554 fn bindgen_test_layout_kvm_s390_irq() {
4555 assert_eq!(
4556 ::std::mem::size_of::<kvm_s390_irq>(),
4557 72usize,
4558 concat!("Size of: ", stringify!(kvm_s390_irq))
4559 );
4560 assert_eq!(
4561 ::std::mem::align_of::<kvm_s390_irq>(),
4562 8usize,
4563 concat!("Alignment of ", stringify!(kvm_s390_irq))
4564 );
4565 assert_eq!(
4566 unsafe { &(*(::std::ptr::null::<kvm_s390_irq>())).type_ as *const _ as usize },
4567 0usize,
4568 concat!(
4569 "Offset of field: ",
4570 stringify!(kvm_s390_irq),
4571 "::",
4572 stringify!(type_)
4573 )
4574 );
4575 assert_eq!(
4576 unsafe { &(*(::std::ptr::null::<kvm_s390_irq>())).u as *const _ as usize },
4577 8usize,
4578 concat!(
4579 "Offset of field: ",
4580 stringify!(kvm_s390_irq),
4581 "::",
4582 stringify!(u)
4583 )
4584 );
4585 }
4586 impl Default for kvm_s390_irq {
default() -> Self4587 fn default() -> Self {
4588 unsafe { ::std::mem::zeroed() }
4589 }
4590 }
4591 #[repr(C)]
4592 #[derive(Debug, Default, Copy, Clone)]
4593 pub struct kvm_s390_irq_state {
4594 pub buf: __u64,
4595 pub flags: __u32,
4596 pub len: __u32,
4597 pub reserved: [__u32; 4usize],
4598 }
4599 #[test]
bindgen_test_layout_kvm_s390_irq_state()4600 fn bindgen_test_layout_kvm_s390_irq_state() {
4601 assert_eq!(
4602 ::std::mem::size_of::<kvm_s390_irq_state>(),
4603 32usize,
4604 concat!("Size of: ", stringify!(kvm_s390_irq_state))
4605 );
4606 assert_eq!(
4607 ::std::mem::align_of::<kvm_s390_irq_state>(),
4608 8usize,
4609 concat!("Alignment of ", stringify!(kvm_s390_irq_state))
4610 );
4611 assert_eq!(
4612 unsafe { &(*(::std::ptr::null::<kvm_s390_irq_state>())).buf as *const _ as usize },
4613 0usize,
4614 concat!(
4615 "Offset of field: ",
4616 stringify!(kvm_s390_irq_state),
4617 "::",
4618 stringify!(buf)
4619 )
4620 );
4621 assert_eq!(
4622 unsafe { &(*(::std::ptr::null::<kvm_s390_irq_state>())).flags as *const _ as usize },
4623 8usize,
4624 concat!(
4625 "Offset of field: ",
4626 stringify!(kvm_s390_irq_state),
4627 "::",
4628 stringify!(flags)
4629 )
4630 );
4631 assert_eq!(
4632 unsafe { &(*(::std::ptr::null::<kvm_s390_irq_state>())).len as *const _ as usize },
4633 12usize,
4634 concat!(
4635 "Offset of field: ",
4636 stringify!(kvm_s390_irq_state),
4637 "::",
4638 stringify!(len)
4639 )
4640 );
4641 assert_eq!(
4642 unsafe { &(*(::std::ptr::null::<kvm_s390_irq_state>())).reserved as *const _ as usize },
4643 16usize,
4644 concat!(
4645 "Offset of field: ",
4646 stringify!(kvm_s390_irq_state),
4647 "::",
4648 stringify!(reserved)
4649 )
4650 );
4651 }
4652 #[repr(C)]
4653 #[derive(Debug, Default, Copy, Clone)]
4654 pub struct kvm_guest_debug {
4655 pub control: __u32,
4656 pub pad: __u32,
4657 pub arch: kvm_guest_debug_arch,
4658 }
4659 #[test]
bindgen_test_layout_kvm_guest_debug()4660 fn bindgen_test_layout_kvm_guest_debug() {
4661 assert_eq!(
4662 ::std::mem::size_of::<kvm_guest_debug>(),
4663 520usize,
4664 concat!("Size of: ", stringify!(kvm_guest_debug))
4665 );
4666 assert_eq!(
4667 ::std::mem::align_of::<kvm_guest_debug>(),
4668 8usize,
4669 concat!("Alignment of ", stringify!(kvm_guest_debug))
4670 );
4671 assert_eq!(
4672 unsafe { &(*(::std::ptr::null::<kvm_guest_debug>())).control as *const _ as usize },
4673 0usize,
4674 concat!(
4675 "Offset of field: ",
4676 stringify!(kvm_guest_debug),
4677 "::",
4678 stringify!(control)
4679 )
4680 );
4681 assert_eq!(
4682 unsafe { &(*(::std::ptr::null::<kvm_guest_debug>())).pad as *const _ as usize },
4683 4usize,
4684 concat!(
4685 "Offset of field: ",
4686 stringify!(kvm_guest_debug),
4687 "::",
4688 stringify!(pad)
4689 )
4690 );
4691 assert_eq!(
4692 unsafe { &(*(::std::ptr::null::<kvm_guest_debug>())).arch as *const _ as usize },
4693 8usize,
4694 concat!(
4695 "Offset of field: ",
4696 stringify!(kvm_guest_debug),
4697 "::",
4698 stringify!(arch)
4699 )
4700 );
4701 }
4702 pub const kvm_ioeventfd_flag_nr_datamatch: _bindgen_ty_1 = 0;
4703 pub const kvm_ioeventfd_flag_nr_pio: _bindgen_ty_1 = 1;
4704 pub const kvm_ioeventfd_flag_nr_deassign: _bindgen_ty_1 = 2;
4705 pub const kvm_ioeventfd_flag_nr_virtio_ccw_notify: _bindgen_ty_1 = 3;
4706 pub const kvm_ioeventfd_flag_nr_fast_mmio: _bindgen_ty_1 = 4;
4707 pub const kvm_ioeventfd_flag_nr_max: _bindgen_ty_1 = 5;
4708 pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
4709 #[repr(C)]
4710 #[derive(Copy, Clone)]
4711 pub struct kvm_ioeventfd {
4712 pub datamatch: __u64,
4713 pub addr: __u64,
4714 pub len: __u32,
4715 pub fd: __s32,
4716 pub flags: __u32,
4717 pub pad: [__u8; 36usize],
4718 }
4719 #[test]
bindgen_test_layout_kvm_ioeventfd()4720 fn bindgen_test_layout_kvm_ioeventfd() {
4721 assert_eq!(
4722 ::std::mem::size_of::<kvm_ioeventfd>(),
4723 64usize,
4724 concat!("Size of: ", stringify!(kvm_ioeventfd))
4725 );
4726 assert_eq!(
4727 ::std::mem::align_of::<kvm_ioeventfd>(),
4728 8usize,
4729 concat!("Alignment of ", stringify!(kvm_ioeventfd))
4730 );
4731 assert_eq!(
4732 unsafe { &(*(::std::ptr::null::<kvm_ioeventfd>())).datamatch as *const _ as usize },
4733 0usize,
4734 concat!(
4735 "Offset of field: ",
4736 stringify!(kvm_ioeventfd),
4737 "::",
4738 stringify!(datamatch)
4739 )
4740 );
4741 assert_eq!(
4742 unsafe { &(*(::std::ptr::null::<kvm_ioeventfd>())).addr as *const _ as usize },
4743 8usize,
4744 concat!(
4745 "Offset of field: ",
4746 stringify!(kvm_ioeventfd),
4747 "::",
4748 stringify!(addr)
4749 )
4750 );
4751 assert_eq!(
4752 unsafe { &(*(::std::ptr::null::<kvm_ioeventfd>())).len as *const _ as usize },
4753 16usize,
4754 concat!(
4755 "Offset of field: ",
4756 stringify!(kvm_ioeventfd),
4757 "::",
4758 stringify!(len)
4759 )
4760 );
4761 assert_eq!(
4762 unsafe { &(*(::std::ptr::null::<kvm_ioeventfd>())).fd as *const _ as usize },
4763 20usize,
4764 concat!(
4765 "Offset of field: ",
4766 stringify!(kvm_ioeventfd),
4767 "::",
4768 stringify!(fd)
4769 )
4770 );
4771 assert_eq!(
4772 unsafe { &(*(::std::ptr::null::<kvm_ioeventfd>())).flags as *const _ as usize },
4773 24usize,
4774 concat!(
4775 "Offset of field: ",
4776 stringify!(kvm_ioeventfd),
4777 "::",
4778 stringify!(flags)
4779 )
4780 );
4781 assert_eq!(
4782 unsafe { &(*(::std::ptr::null::<kvm_ioeventfd>())).pad as *const _ as usize },
4783 28usize,
4784 concat!(
4785 "Offset of field: ",
4786 stringify!(kvm_ioeventfd),
4787 "::",
4788 stringify!(pad)
4789 )
4790 );
4791 }
4792 impl Default for kvm_ioeventfd {
default() -> Self4793 fn default() -> Self {
4794 unsafe { ::std::mem::zeroed() }
4795 }
4796 }
4797 #[repr(C)]
4798 #[derive(Copy, Clone)]
4799 pub struct kvm_enable_cap {
4800 pub cap: __u32,
4801 pub flags: __u32,
4802 pub args: [__u64; 4usize],
4803 pub pad: [__u8; 64usize],
4804 }
4805 #[test]
bindgen_test_layout_kvm_enable_cap()4806 fn bindgen_test_layout_kvm_enable_cap() {
4807 assert_eq!(
4808 ::std::mem::size_of::<kvm_enable_cap>(),
4809 104usize,
4810 concat!("Size of: ", stringify!(kvm_enable_cap))
4811 );
4812 assert_eq!(
4813 ::std::mem::align_of::<kvm_enable_cap>(),
4814 8usize,
4815 concat!("Alignment of ", stringify!(kvm_enable_cap))
4816 );
4817 assert_eq!(
4818 unsafe { &(*(::std::ptr::null::<kvm_enable_cap>())).cap as *const _ as usize },
4819 0usize,
4820 concat!(
4821 "Offset of field: ",
4822 stringify!(kvm_enable_cap),
4823 "::",
4824 stringify!(cap)
4825 )
4826 );
4827 assert_eq!(
4828 unsafe { &(*(::std::ptr::null::<kvm_enable_cap>())).flags as *const _ as usize },
4829 4usize,
4830 concat!(
4831 "Offset of field: ",
4832 stringify!(kvm_enable_cap),
4833 "::",
4834 stringify!(flags)
4835 )
4836 );
4837 assert_eq!(
4838 unsafe { &(*(::std::ptr::null::<kvm_enable_cap>())).args as *const _ as usize },
4839 8usize,
4840 concat!(
4841 "Offset of field: ",
4842 stringify!(kvm_enable_cap),
4843 "::",
4844 stringify!(args)
4845 )
4846 );
4847 assert_eq!(
4848 unsafe { &(*(::std::ptr::null::<kvm_enable_cap>())).pad as *const _ as usize },
4849 40usize,
4850 concat!(
4851 "Offset of field: ",
4852 stringify!(kvm_enable_cap),
4853 "::",
4854 stringify!(pad)
4855 )
4856 );
4857 }
4858 impl Default for kvm_enable_cap {
default() -> Self4859 fn default() -> Self {
4860 unsafe { ::std::mem::zeroed() }
4861 }
4862 }
4863 #[repr(C)]
4864 #[derive(Copy, Clone)]
4865 pub struct kvm_ppc_pvinfo {
4866 pub flags: __u32,
4867 pub hcall: [__u32; 4usize],
4868 pub pad: [__u8; 108usize],
4869 }
4870 #[test]
bindgen_test_layout_kvm_ppc_pvinfo()4871 fn bindgen_test_layout_kvm_ppc_pvinfo() {
4872 assert_eq!(
4873 ::std::mem::size_of::<kvm_ppc_pvinfo>(),
4874 128usize,
4875 concat!("Size of: ", stringify!(kvm_ppc_pvinfo))
4876 );
4877 assert_eq!(
4878 ::std::mem::align_of::<kvm_ppc_pvinfo>(),
4879 4usize,
4880 concat!("Alignment of ", stringify!(kvm_ppc_pvinfo))
4881 );
4882 assert_eq!(
4883 unsafe { &(*(::std::ptr::null::<kvm_ppc_pvinfo>())).flags as *const _ as usize },
4884 0usize,
4885 concat!(
4886 "Offset of field: ",
4887 stringify!(kvm_ppc_pvinfo),
4888 "::",
4889 stringify!(flags)
4890 )
4891 );
4892 assert_eq!(
4893 unsafe { &(*(::std::ptr::null::<kvm_ppc_pvinfo>())).hcall as *const _ as usize },
4894 4usize,
4895 concat!(
4896 "Offset of field: ",
4897 stringify!(kvm_ppc_pvinfo),
4898 "::",
4899 stringify!(hcall)
4900 )
4901 );
4902 assert_eq!(
4903 unsafe { &(*(::std::ptr::null::<kvm_ppc_pvinfo>())).pad as *const _ as usize },
4904 20usize,
4905 concat!(
4906 "Offset of field: ",
4907 stringify!(kvm_ppc_pvinfo),
4908 "::",
4909 stringify!(pad)
4910 )
4911 );
4912 }
4913 impl Default for kvm_ppc_pvinfo {
default() -> Self4914 fn default() -> Self {
4915 unsafe { ::std::mem::zeroed() }
4916 }
4917 }
4918 #[repr(C)]
4919 #[derive(Debug, Default, Copy, Clone)]
4920 pub struct kvm_ppc_one_page_size {
4921 pub page_shift: __u32,
4922 pub pte_enc: __u32,
4923 }
4924 #[test]
bindgen_test_layout_kvm_ppc_one_page_size()4925 fn bindgen_test_layout_kvm_ppc_one_page_size() {
4926 assert_eq!(
4927 ::std::mem::size_of::<kvm_ppc_one_page_size>(),
4928 8usize,
4929 concat!("Size of: ", stringify!(kvm_ppc_one_page_size))
4930 );
4931 assert_eq!(
4932 ::std::mem::align_of::<kvm_ppc_one_page_size>(),
4933 4usize,
4934 concat!("Alignment of ", stringify!(kvm_ppc_one_page_size))
4935 );
4936 assert_eq!(
4937 unsafe {
4938 &(*(::std::ptr::null::<kvm_ppc_one_page_size>())).page_shift as *const _ as usize
4939 },
4940 0usize,
4941 concat!(
4942 "Offset of field: ",
4943 stringify!(kvm_ppc_one_page_size),
4944 "::",
4945 stringify!(page_shift)
4946 )
4947 );
4948 assert_eq!(
4949 unsafe { &(*(::std::ptr::null::<kvm_ppc_one_page_size>())).pte_enc as *const _ as usize },
4950 4usize,
4951 concat!(
4952 "Offset of field: ",
4953 stringify!(kvm_ppc_one_page_size),
4954 "::",
4955 stringify!(pte_enc)
4956 )
4957 );
4958 }
4959 #[repr(C)]
4960 #[derive(Debug, Default, Copy, Clone)]
4961 pub struct kvm_ppc_one_seg_page_size {
4962 pub page_shift: __u32,
4963 pub slb_enc: __u32,
4964 pub enc: [kvm_ppc_one_page_size; 8usize],
4965 }
4966 #[test]
bindgen_test_layout_kvm_ppc_one_seg_page_size()4967 fn bindgen_test_layout_kvm_ppc_one_seg_page_size() {
4968 assert_eq!(
4969 ::std::mem::size_of::<kvm_ppc_one_seg_page_size>(),
4970 72usize,
4971 concat!("Size of: ", stringify!(kvm_ppc_one_seg_page_size))
4972 );
4973 assert_eq!(
4974 ::std::mem::align_of::<kvm_ppc_one_seg_page_size>(),
4975 4usize,
4976 concat!("Alignment of ", stringify!(kvm_ppc_one_seg_page_size))
4977 );
4978 assert_eq!(
4979 unsafe {
4980 &(*(::std::ptr::null::<kvm_ppc_one_seg_page_size>())).page_shift as *const _ as usize
4981 },
4982 0usize,
4983 concat!(
4984 "Offset of field: ",
4985 stringify!(kvm_ppc_one_seg_page_size),
4986 "::",
4987 stringify!(page_shift)
4988 )
4989 );
4990 assert_eq!(
4991 unsafe {
4992 &(*(::std::ptr::null::<kvm_ppc_one_seg_page_size>())).slb_enc as *const _ as usize
4993 },
4994 4usize,
4995 concat!(
4996 "Offset of field: ",
4997 stringify!(kvm_ppc_one_seg_page_size),
4998 "::",
4999 stringify!(slb_enc)
5000 )
5001 );
5002 assert_eq!(
5003 unsafe { &(*(::std::ptr::null::<kvm_ppc_one_seg_page_size>())).enc as *const _ as usize },
5004 8usize,
5005 concat!(
5006 "Offset of field: ",
5007 stringify!(kvm_ppc_one_seg_page_size),
5008 "::",
5009 stringify!(enc)
5010 )
5011 );
5012 }
5013 #[repr(C)]
5014 #[derive(Debug, Default, Copy, Clone)]
5015 pub struct kvm_ppc_smmu_info {
5016 pub flags: __u64,
5017 pub slb_size: __u32,
5018 pub pad: __u32,
5019 pub sps: [kvm_ppc_one_seg_page_size; 8usize],
5020 }
5021 #[test]
bindgen_test_layout_kvm_ppc_smmu_info()5022 fn bindgen_test_layout_kvm_ppc_smmu_info() {
5023 assert_eq!(
5024 ::std::mem::size_of::<kvm_ppc_smmu_info>(),
5025 592usize,
5026 concat!("Size of: ", stringify!(kvm_ppc_smmu_info))
5027 );
5028 assert_eq!(
5029 ::std::mem::align_of::<kvm_ppc_smmu_info>(),
5030 8usize,
5031 concat!("Alignment of ", stringify!(kvm_ppc_smmu_info))
5032 );
5033 assert_eq!(
5034 unsafe { &(*(::std::ptr::null::<kvm_ppc_smmu_info>())).flags as *const _ as usize },
5035 0usize,
5036 concat!(
5037 "Offset of field: ",
5038 stringify!(kvm_ppc_smmu_info),
5039 "::",
5040 stringify!(flags)
5041 )
5042 );
5043 assert_eq!(
5044 unsafe { &(*(::std::ptr::null::<kvm_ppc_smmu_info>())).slb_size as *const _ as usize },
5045 8usize,
5046 concat!(
5047 "Offset of field: ",
5048 stringify!(kvm_ppc_smmu_info),
5049 "::",
5050 stringify!(slb_size)
5051 )
5052 );
5053 assert_eq!(
5054 unsafe { &(*(::std::ptr::null::<kvm_ppc_smmu_info>())).pad as *const _ as usize },
5055 12usize,
5056 concat!(
5057 "Offset of field: ",
5058 stringify!(kvm_ppc_smmu_info),
5059 "::",
5060 stringify!(pad)
5061 )
5062 );
5063 assert_eq!(
5064 unsafe { &(*(::std::ptr::null::<kvm_ppc_smmu_info>())).sps as *const _ as usize },
5065 16usize,
5066 concat!(
5067 "Offset of field: ",
5068 stringify!(kvm_ppc_smmu_info),
5069 "::",
5070 stringify!(sps)
5071 )
5072 );
5073 }
5074 #[repr(C)]
5075 #[derive(Debug, Default, Copy, Clone)]
5076 pub struct kvm_irq_routing_irqchip {
5077 pub irqchip: __u32,
5078 pub pin: __u32,
5079 }
5080 #[test]
bindgen_test_layout_kvm_irq_routing_irqchip()5081 fn bindgen_test_layout_kvm_irq_routing_irqchip() {
5082 assert_eq!(
5083 ::std::mem::size_of::<kvm_irq_routing_irqchip>(),
5084 8usize,
5085 concat!("Size of: ", stringify!(kvm_irq_routing_irqchip))
5086 );
5087 assert_eq!(
5088 ::std::mem::align_of::<kvm_irq_routing_irqchip>(),
5089 4usize,
5090 concat!("Alignment of ", stringify!(kvm_irq_routing_irqchip))
5091 );
5092 assert_eq!(
5093 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_irqchip>())).irqchip as *const _ as usize },
5094 0usize,
5095 concat!(
5096 "Offset of field: ",
5097 stringify!(kvm_irq_routing_irqchip),
5098 "::",
5099 stringify!(irqchip)
5100 )
5101 );
5102 assert_eq!(
5103 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_irqchip>())).pin as *const _ as usize },
5104 4usize,
5105 concat!(
5106 "Offset of field: ",
5107 stringify!(kvm_irq_routing_irqchip),
5108 "::",
5109 stringify!(pin)
5110 )
5111 );
5112 }
5113 #[repr(C)]
5114 #[derive(Debug, Default, Copy, Clone)]
5115 pub struct kvm_irq_routing_msi {
5116 pub address_lo: __u32,
5117 pub address_hi: __u32,
5118 pub data: __u32,
5119 pub pad: __u32,
5120 }
5121 #[test]
bindgen_test_layout_kvm_irq_routing_msi()5122 fn bindgen_test_layout_kvm_irq_routing_msi() {
5123 assert_eq!(
5124 ::std::mem::size_of::<kvm_irq_routing_msi>(),
5125 16usize,
5126 concat!("Size of: ", stringify!(kvm_irq_routing_msi))
5127 );
5128 assert_eq!(
5129 ::std::mem::align_of::<kvm_irq_routing_msi>(),
5130 4usize,
5131 concat!("Alignment of ", stringify!(kvm_irq_routing_msi))
5132 );
5133 assert_eq!(
5134 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_msi>())).address_lo as *const _ as usize },
5135 0usize,
5136 concat!(
5137 "Offset of field: ",
5138 stringify!(kvm_irq_routing_msi),
5139 "::",
5140 stringify!(address_lo)
5141 )
5142 );
5143 assert_eq!(
5144 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_msi>())).address_hi as *const _ as usize },
5145 4usize,
5146 concat!(
5147 "Offset of field: ",
5148 stringify!(kvm_irq_routing_msi),
5149 "::",
5150 stringify!(address_hi)
5151 )
5152 );
5153 assert_eq!(
5154 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_msi>())).data as *const _ as usize },
5155 8usize,
5156 concat!(
5157 "Offset of field: ",
5158 stringify!(kvm_irq_routing_msi),
5159 "::",
5160 stringify!(data)
5161 )
5162 );
5163 assert_eq!(
5164 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_msi>())).pad as *const _ as usize },
5165 12usize,
5166 concat!(
5167 "Offset of field: ",
5168 stringify!(kvm_irq_routing_msi),
5169 "::",
5170 stringify!(pad)
5171 )
5172 );
5173 }
5174 #[repr(C)]
5175 #[derive(Debug, Default, Copy, Clone)]
5176 pub struct kvm_irq_routing_s390_adapter {
5177 pub ind_addr: __u64,
5178 pub summary_addr: __u64,
5179 pub ind_offset: __u64,
5180 pub summary_offset: __u32,
5181 pub adapter_id: __u32,
5182 }
5183 #[test]
bindgen_test_layout_kvm_irq_routing_s390_adapter()5184 fn bindgen_test_layout_kvm_irq_routing_s390_adapter() {
5185 assert_eq!(
5186 ::std::mem::size_of::<kvm_irq_routing_s390_adapter>(),
5187 32usize,
5188 concat!("Size of: ", stringify!(kvm_irq_routing_s390_adapter))
5189 );
5190 assert_eq!(
5191 ::std::mem::align_of::<kvm_irq_routing_s390_adapter>(),
5192 8usize,
5193 concat!("Alignment of ", stringify!(kvm_irq_routing_s390_adapter))
5194 );
5195 assert_eq!(
5196 unsafe {
5197 &(*(::std::ptr::null::<kvm_irq_routing_s390_adapter>())).ind_addr as *const _ as usize
5198 },
5199 0usize,
5200 concat!(
5201 "Offset of field: ",
5202 stringify!(kvm_irq_routing_s390_adapter),
5203 "::",
5204 stringify!(ind_addr)
5205 )
5206 );
5207 assert_eq!(
5208 unsafe {
5209 &(*(::std::ptr::null::<kvm_irq_routing_s390_adapter>())).summary_addr as *const _
5210 as usize
5211 },
5212 8usize,
5213 concat!(
5214 "Offset of field: ",
5215 stringify!(kvm_irq_routing_s390_adapter),
5216 "::",
5217 stringify!(summary_addr)
5218 )
5219 );
5220 assert_eq!(
5221 unsafe {
5222 &(*(::std::ptr::null::<kvm_irq_routing_s390_adapter>())).ind_offset as *const _ as usize
5223 },
5224 16usize,
5225 concat!(
5226 "Offset of field: ",
5227 stringify!(kvm_irq_routing_s390_adapter),
5228 "::",
5229 stringify!(ind_offset)
5230 )
5231 );
5232 assert_eq!(
5233 unsafe {
5234 &(*(::std::ptr::null::<kvm_irq_routing_s390_adapter>())).summary_offset as *const _
5235 as usize
5236 },
5237 24usize,
5238 concat!(
5239 "Offset of field: ",
5240 stringify!(kvm_irq_routing_s390_adapter),
5241 "::",
5242 stringify!(summary_offset)
5243 )
5244 );
5245 assert_eq!(
5246 unsafe {
5247 &(*(::std::ptr::null::<kvm_irq_routing_s390_adapter>())).adapter_id as *const _ as usize
5248 },
5249 28usize,
5250 concat!(
5251 "Offset of field: ",
5252 stringify!(kvm_irq_routing_s390_adapter),
5253 "::",
5254 stringify!(adapter_id)
5255 )
5256 );
5257 }
5258 #[repr(C)]
5259 #[derive(Copy, Clone)]
5260 pub struct kvm_irq_routing_entry {
5261 pub gsi: __u32,
5262 pub type_: __u32,
5263 pub flags: __u32,
5264 pub pad: __u32,
5265 pub u: kvm_irq_routing_entry__bindgen_ty_1,
5266 }
5267 #[repr(C)]
5268 #[derive(Copy, Clone)]
5269 pub union kvm_irq_routing_entry__bindgen_ty_1 {
5270 pub irqchip: kvm_irq_routing_irqchip,
5271 pub msi: kvm_irq_routing_msi,
5272 pub adapter: kvm_irq_routing_s390_adapter,
5273 pub pad: [__u32; 8usize],
5274 _bindgen_union_align: [u64; 4usize],
5275 }
5276 #[test]
bindgen_test_layout_kvm_irq_routing_entry__bindgen_ty_1()5277 fn bindgen_test_layout_kvm_irq_routing_entry__bindgen_ty_1() {
5278 assert_eq!(
5279 ::std::mem::size_of::<kvm_irq_routing_entry__bindgen_ty_1>(),
5280 32usize,
5281 concat!("Size of: ", stringify!(kvm_irq_routing_entry__bindgen_ty_1))
5282 );
5283 assert_eq!(
5284 ::std::mem::align_of::<kvm_irq_routing_entry__bindgen_ty_1>(),
5285 8usize,
5286 concat!(
5287 "Alignment of ",
5288 stringify!(kvm_irq_routing_entry__bindgen_ty_1)
5289 )
5290 );
5291 assert_eq!(
5292 unsafe {
5293 &(*(::std::ptr::null::<kvm_irq_routing_entry__bindgen_ty_1>())).irqchip as *const _
5294 as usize
5295 },
5296 0usize,
5297 concat!(
5298 "Offset of field: ",
5299 stringify!(kvm_irq_routing_entry__bindgen_ty_1),
5300 "::",
5301 stringify!(irqchip)
5302 )
5303 );
5304 assert_eq!(
5305 unsafe {
5306 &(*(::std::ptr::null::<kvm_irq_routing_entry__bindgen_ty_1>())).msi as *const _ as usize
5307 },
5308 0usize,
5309 concat!(
5310 "Offset of field: ",
5311 stringify!(kvm_irq_routing_entry__bindgen_ty_1),
5312 "::",
5313 stringify!(msi)
5314 )
5315 );
5316 assert_eq!(
5317 unsafe {
5318 &(*(::std::ptr::null::<kvm_irq_routing_entry__bindgen_ty_1>())).adapter as *const _
5319 as usize
5320 },
5321 0usize,
5322 concat!(
5323 "Offset of field: ",
5324 stringify!(kvm_irq_routing_entry__bindgen_ty_1),
5325 "::",
5326 stringify!(adapter)
5327 )
5328 );
5329 assert_eq!(
5330 unsafe {
5331 &(*(::std::ptr::null::<kvm_irq_routing_entry__bindgen_ty_1>())).pad as *const _ as usize
5332 },
5333 0usize,
5334 concat!(
5335 "Offset of field: ",
5336 stringify!(kvm_irq_routing_entry__bindgen_ty_1),
5337 "::",
5338 stringify!(pad)
5339 )
5340 );
5341 }
5342 impl Default for kvm_irq_routing_entry__bindgen_ty_1 {
default() -> Self5343 fn default() -> Self {
5344 unsafe { ::std::mem::zeroed() }
5345 }
5346 }
5347 #[test]
bindgen_test_layout_kvm_irq_routing_entry()5348 fn bindgen_test_layout_kvm_irq_routing_entry() {
5349 assert_eq!(
5350 ::std::mem::size_of::<kvm_irq_routing_entry>(),
5351 48usize,
5352 concat!("Size of: ", stringify!(kvm_irq_routing_entry))
5353 );
5354 assert_eq!(
5355 ::std::mem::align_of::<kvm_irq_routing_entry>(),
5356 8usize,
5357 concat!("Alignment of ", stringify!(kvm_irq_routing_entry))
5358 );
5359 assert_eq!(
5360 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_entry>())).gsi as *const _ as usize },
5361 0usize,
5362 concat!(
5363 "Offset of field: ",
5364 stringify!(kvm_irq_routing_entry),
5365 "::",
5366 stringify!(gsi)
5367 )
5368 );
5369 assert_eq!(
5370 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_entry>())).type_ as *const _ as usize },
5371 4usize,
5372 concat!(
5373 "Offset of field: ",
5374 stringify!(kvm_irq_routing_entry),
5375 "::",
5376 stringify!(type_)
5377 )
5378 );
5379 assert_eq!(
5380 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_entry>())).flags as *const _ as usize },
5381 8usize,
5382 concat!(
5383 "Offset of field: ",
5384 stringify!(kvm_irq_routing_entry),
5385 "::",
5386 stringify!(flags)
5387 )
5388 );
5389 assert_eq!(
5390 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_entry>())).pad as *const _ as usize },
5391 12usize,
5392 concat!(
5393 "Offset of field: ",
5394 stringify!(kvm_irq_routing_entry),
5395 "::",
5396 stringify!(pad)
5397 )
5398 );
5399 assert_eq!(
5400 unsafe { &(*(::std::ptr::null::<kvm_irq_routing_entry>())).u as *const _ as usize },
5401 16usize,
5402 concat!(
5403 "Offset of field: ",
5404 stringify!(kvm_irq_routing_entry),
5405 "::",
5406 stringify!(u)
5407 )
5408 );
5409 }
5410 impl Default for kvm_irq_routing_entry {
default() -> Self5411 fn default() -> Self {
5412 unsafe { ::std::mem::zeroed() }
5413 }
5414 }
5415 #[repr(C)]
5416 pub struct kvm_irq_routing {
5417 pub nr: __u32,
5418 pub flags: __u32,
5419 pub entries: __IncompleteArrayField<kvm_irq_routing_entry>,
5420 // Manually added to work around rust bindgen issue 684
5421 __force_alignment: [u64; 0],
5422 }
5423 #[test]
bindgen_test_layout_kvm_irq_routing()5424 fn bindgen_test_layout_kvm_irq_routing() {
5425 assert_eq!(
5426 ::std::mem::size_of::<kvm_irq_routing>(),
5427 8usize,
5428 concat!("Size of: ", stringify!(kvm_irq_routing))
5429 );
5430 assert_eq!(
5431 ::std::mem::align_of::<kvm_irq_routing>(),
5432 8usize,
5433 concat!("Alignment of ", stringify!(kvm_irq_routing))
5434 );
5435 assert_eq!(
5436 unsafe { &(*(::std::ptr::null::<kvm_irq_routing>())).nr as *const _ as usize },
5437 0usize,
5438 concat!(
5439 "Offset of field: ",
5440 stringify!(kvm_irq_routing),
5441 "::",
5442 stringify!(nr)
5443 )
5444 );
5445 assert_eq!(
5446 unsafe { &(*(::std::ptr::null::<kvm_irq_routing>())).flags as *const _ as usize },
5447 4usize,
5448 concat!(
5449 "Offset of field: ",
5450 stringify!(kvm_irq_routing),
5451 "::",
5452 stringify!(flags)
5453 )
5454 );
5455 assert_eq!(
5456 unsafe { &(*(::std::ptr::null::<kvm_irq_routing>())).entries as *const _ as usize },
5457 8usize,
5458 concat!(
5459 "Offset of field: ",
5460 stringify!(kvm_irq_routing),
5461 "::",
5462 stringify!(entries)
5463 )
5464 );
5465 }
5466 impl Default for kvm_irq_routing {
default() -> Self5467 fn default() -> Self {
5468 unsafe { ::std::mem::zeroed() }
5469 }
5470 }
5471 #[repr(C)]
5472 #[derive(Debug, Default, Copy, Clone)]
5473 pub struct kvm_irqfd {
5474 pub fd: __u32,
5475 pub gsi: __u32,
5476 pub flags: __u32,
5477 pub resamplefd: __u32,
5478 pub pad: [__u8; 16usize],
5479 }
5480 #[test]
bindgen_test_layout_kvm_irqfd()5481 fn bindgen_test_layout_kvm_irqfd() {
5482 assert_eq!(
5483 ::std::mem::size_of::<kvm_irqfd>(),
5484 32usize,
5485 concat!("Size of: ", stringify!(kvm_irqfd))
5486 );
5487 assert_eq!(
5488 ::std::mem::align_of::<kvm_irqfd>(),
5489 4usize,
5490 concat!("Alignment of ", stringify!(kvm_irqfd))
5491 );
5492 assert_eq!(
5493 unsafe { &(*(::std::ptr::null::<kvm_irqfd>())).fd as *const _ as usize },
5494 0usize,
5495 concat!(
5496 "Offset of field: ",
5497 stringify!(kvm_irqfd),
5498 "::",
5499 stringify!(fd)
5500 )
5501 );
5502 assert_eq!(
5503 unsafe { &(*(::std::ptr::null::<kvm_irqfd>())).gsi as *const _ as usize },
5504 4usize,
5505 concat!(
5506 "Offset of field: ",
5507 stringify!(kvm_irqfd),
5508 "::",
5509 stringify!(gsi)
5510 )
5511 );
5512 assert_eq!(
5513 unsafe { &(*(::std::ptr::null::<kvm_irqfd>())).flags as *const _ as usize },
5514 8usize,
5515 concat!(
5516 "Offset of field: ",
5517 stringify!(kvm_irqfd),
5518 "::",
5519 stringify!(flags)
5520 )
5521 );
5522 assert_eq!(
5523 unsafe { &(*(::std::ptr::null::<kvm_irqfd>())).resamplefd as *const _ as usize },
5524 12usize,
5525 concat!(
5526 "Offset of field: ",
5527 stringify!(kvm_irqfd),
5528 "::",
5529 stringify!(resamplefd)
5530 )
5531 );
5532 assert_eq!(
5533 unsafe { &(*(::std::ptr::null::<kvm_irqfd>())).pad as *const _ as usize },
5534 16usize,
5535 concat!(
5536 "Offset of field: ",
5537 stringify!(kvm_irqfd),
5538 "::",
5539 stringify!(pad)
5540 )
5541 );
5542 }
5543 #[repr(C)]
5544 #[derive(Debug, Default, Copy, Clone)]
5545 pub struct kvm_clock_data {
5546 pub clock: __u64,
5547 pub flags: __u32,
5548 pub pad: [__u32; 9usize],
5549 }
5550 #[test]
bindgen_test_layout_kvm_clock_data()5551 fn bindgen_test_layout_kvm_clock_data() {
5552 assert_eq!(
5553 ::std::mem::size_of::<kvm_clock_data>(),
5554 48usize,
5555 concat!("Size of: ", stringify!(kvm_clock_data))
5556 );
5557 assert_eq!(
5558 ::std::mem::align_of::<kvm_clock_data>(),
5559 8usize,
5560 concat!("Alignment of ", stringify!(kvm_clock_data))
5561 );
5562 assert_eq!(
5563 unsafe { &(*(::std::ptr::null::<kvm_clock_data>())).clock as *const _ as usize },
5564 0usize,
5565 concat!(
5566 "Offset of field: ",
5567 stringify!(kvm_clock_data),
5568 "::",
5569 stringify!(clock)
5570 )
5571 );
5572 assert_eq!(
5573 unsafe { &(*(::std::ptr::null::<kvm_clock_data>())).flags as *const _ as usize },
5574 8usize,
5575 concat!(
5576 "Offset of field: ",
5577 stringify!(kvm_clock_data),
5578 "::",
5579 stringify!(flags)
5580 )
5581 );
5582 assert_eq!(
5583 unsafe { &(*(::std::ptr::null::<kvm_clock_data>())).pad as *const _ as usize },
5584 12usize,
5585 concat!(
5586 "Offset of field: ",
5587 stringify!(kvm_clock_data),
5588 "::",
5589 stringify!(pad)
5590 )
5591 );
5592 }
5593 #[repr(C)]
5594 #[derive(Debug, Default, Copy, Clone)]
5595 pub struct kvm_config_tlb {
5596 pub params: __u64,
5597 pub array: __u64,
5598 pub mmu_type: __u32,
5599 pub array_len: __u32,
5600 }
5601 #[test]
bindgen_test_layout_kvm_config_tlb()5602 fn bindgen_test_layout_kvm_config_tlb() {
5603 assert_eq!(
5604 ::std::mem::size_of::<kvm_config_tlb>(),
5605 24usize,
5606 concat!("Size of: ", stringify!(kvm_config_tlb))
5607 );
5608 assert_eq!(
5609 ::std::mem::align_of::<kvm_config_tlb>(),
5610 8usize,
5611 concat!("Alignment of ", stringify!(kvm_config_tlb))
5612 );
5613 assert_eq!(
5614 unsafe { &(*(::std::ptr::null::<kvm_config_tlb>())).params as *const _ as usize },
5615 0usize,
5616 concat!(
5617 "Offset of field: ",
5618 stringify!(kvm_config_tlb),
5619 "::",
5620 stringify!(params)
5621 )
5622 );
5623 assert_eq!(
5624 unsafe { &(*(::std::ptr::null::<kvm_config_tlb>())).array as *const _ as usize },
5625 8usize,
5626 concat!(
5627 "Offset of field: ",
5628 stringify!(kvm_config_tlb),
5629 "::",
5630 stringify!(array)
5631 )
5632 );
5633 assert_eq!(
5634 unsafe { &(*(::std::ptr::null::<kvm_config_tlb>())).mmu_type as *const _ as usize },
5635 16usize,
5636 concat!(
5637 "Offset of field: ",
5638 stringify!(kvm_config_tlb),
5639 "::",
5640 stringify!(mmu_type)
5641 )
5642 );
5643 assert_eq!(
5644 unsafe { &(*(::std::ptr::null::<kvm_config_tlb>())).array_len as *const _ as usize },
5645 20usize,
5646 concat!(
5647 "Offset of field: ",
5648 stringify!(kvm_config_tlb),
5649 "::",
5650 stringify!(array_len)
5651 )
5652 );
5653 }
5654 #[repr(C)]
5655 #[derive(Debug, Default, Copy, Clone)]
5656 pub struct kvm_dirty_tlb {
5657 pub bitmap: __u64,
5658 pub num_dirty: __u32,
5659 }
5660 #[test]
bindgen_test_layout_kvm_dirty_tlb()5661 fn bindgen_test_layout_kvm_dirty_tlb() {
5662 assert_eq!(
5663 ::std::mem::size_of::<kvm_dirty_tlb>(),
5664 16usize,
5665 concat!("Size of: ", stringify!(kvm_dirty_tlb))
5666 );
5667 assert_eq!(
5668 ::std::mem::align_of::<kvm_dirty_tlb>(),
5669 8usize,
5670 concat!("Alignment of ", stringify!(kvm_dirty_tlb))
5671 );
5672 assert_eq!(
5673 unsafe { &(*(::std::ptr::null::<kvm_dirty_tlb>())).bitmap as *const _ as usize },
5674 0usize,
5675 concat!(
5676 "Offset of field: ",
5677 stringify!(kvm_dirty_tlb),
5678 "::",
5679 stringify!(bitmap)
5680 )
5681 );
5682 assert_eq!(
5683 unsafe { &(*(::std::ptr::null::<kvm_dirty_tlb>())).num_dirty as *const _ as usize },
5684 8usize,
5685 concat!(
5686 "Offset of field: ",
5687 stringify!(kvm_dirty_tlb),
5688 "::",
5689 stringify!(num_dirty)
5690 )
5691 );
5692 }
5693 #[repr(C)]
5694 #[derive(Debug, Default)]
5695 pub struct kvm_reg_list {
5696 pub n: __u64,
5697 pub reg: __IncompleteArrayField<__u64>,
5698 }
5699 #[test]
bindgen_test_layout_kvm_reg_list()5700 fn bindgen_test_layout_kvm_reg_list() {
5701 assert_eq!(
5702 ::std::mem::size_of::<kvm_reg_list>(),
5703 8usize,
5704 concat!("Size of: ", stringify!(kvm_reg_list))
5705 );
5706 assert_eq!(
5707 ::std::mem::align_of::<kvm_reg_list>(),
5708 8usize,
5709 concat!("Alignment of ", stringify!(kvm_reg_list))
5710 );
5711 assert_eq!(
5712 unsafe { &(*(::std::ptr::null::<kvm_reg_list>())).n as *const _ as usize },
5713 0usize,
5714 concat!(
5715 "Offset of field: ",
5716 stringify!(kvm_reg_list),
5717 "::",
5718 stringify!(n)
5719 )
5720 );
5721 assert_eq!(
5722 unsafe { &(*(::std::ptr::null::<kvm_reg_list>())).reg as *const _ as usize },
5723 8usize,
5724 concat!(
5725 "Offset of field: ",
5726 stringify!(kvm_reg_list),
5727 "::",
5728 stringify!(reg)
5729 )
5730 );
5731 }
5732 #[repr(C)]
5733 #[derive(Debug, Default, Copy, Clone)]
5734 pub struct kvm_one_reg {
5735 pub id: __u64,
5736 pub addr: __u64,
5737 }
5738 #[test]
bindgen_test_layout_kvm_one_reg()5739 fn bindgen_test_layout_kvm_one_reg() {
5740 assert_eq!(
5741 ::std::mem::size_of::<kvm_one_reg>(),
5742 16usize,
5743 concat!("Size of: ", stringify!(kvm_one_reg))
5744 );
5745 assert_eq!(
5746 ::std::mem::align_of::<kvm_one_reg>(),
5747 8usize,
5748 concat!("Alignment of ", stringify!(kvm_one_reg))
5749 );
5750 assert_eq!(
5751 unsafe { &(*(::std::ptr::null::<kvm_one_reg>())).id as *const _ as usize },
5752 0usize,
5753 concat!(
5754 "Offset of field: ",
5755 stringify!(kvm_one_reg),
5756 "::",
5757 stringify!(id)
5758 )
5759 );
5760 assert_eq!(
5761 unsafe { &(*(::std::ptr::null::<kvm_one_reg>())).addr as *const _ as usize },
5762 8usize,
5763 concat!(
5764 "Offset of field: ",
5765 stringify!(kvm_one_reg),
5766 "::",
5767 stringify!(addr)
5768 )
5769 );
5770 }
5771 #[repr(C)]
5772 #[derive(Debug, Default, Copy, Clone)]
5773 pub struct kvm_msi {
5774 pub address_lo: __u32,
5775 pub address_hi: __u32,
5776 pub data: __u32,
5777 pub flags: __u32,
5778 pub pad: [__u8; 16usize],
5779 }
5780 #[test]
bindgen_test_layout_kvm_msi()5781 fn bindgen_test_layout_kvm_msi() {
5782 assert_eq!(
5783 ::std::mem::size_of::<kvm_msi>(),
5784 32usize,
5785 concat!("Size of: ", stringify!(kvm_msi))
5786 );
5787 assert_eq!(
5788 ::std::mem::align_of::<kvm_msi>(),
5789 4usize,
5790 concat!("Alignment of ", stringify!(kvm_msi))
5791 );
5792 assert_eq!(
5793 unsafe { &(*(::std::ptr::null::<kvm_msi>())).address_lo as *const _ as usize },
5794 0usize,
5795 concat!(
5796 "Offset of field: ",
5797 stringify!(kvm_msi),
5798 "::",
5799 stringify!(address_lo)
5800 )
5801 );
5802 assert_eq!(
5803 unsafe { &(*(::std::ptr::null::<kvm_msi>())).address_hi as *const _ as usize },
5804 4usize,
5805 concat!(
5806 "Offset of field: ",
5807 stringify!(kvm_msi),
5808 "::",
5809 stringify!(address_hi)
5810 )
5811 );
5812 assert_eq!(
5813 unsafe { &(*(::std::ptr::null::<kvm_msi>())).data as *const _ as usize },
5814 8usize,
5815 concat!(
5816 "Offset of field: ",
5817 stringify!(kvm_msi),
5818 "::",
5819 stringify!(data)
5820 )
5821 );
5822 assert_eq!(
5823 unsafe { &(*(::std::ptr::null::<kvm_msi>())).flags as *const _ as usize },
5824 12usize,
5825 concat!(
5826 "Offset of field: ",
5827 stringify!(kvm_msi),
5828 "::",
5829 stringify!(flags)
5830 )
5831 );
5832 assert_eq!(
5833 unsafe { &(*(::std::ptr::null::<kvm_msi>())).pad as *const _ as usize },
5834 16usize,
5835 concat!(
5836 "Offset of field: ",
5837 stringify!(kvm_msi),
5838 "::",
5839 stringify!(pad)
5840 )
5841 );
5842 }
5843 #[repr(C)]
5844 #[derive(Debug, Default, Copy, Clone)]
5845 pub struct kvm_arm_device_addr {
5846 pub id: __u64,
5847 pub addr: __u64,
5848 }
5849 #[test]
bindgen_test_layout_kvm_arm_device_addr()5850 fn bindgen_test_layout_kvm_arm_device_addr() {
5851 assert_eq!(
5852 ::std::mem::size_of::<kvm_arm_device_addr>(),
5853 16usize,
5854 concat!("Size of: ", stringify!(kvm_arm_device_addr))
5855 );
5856 assert_eq!(
5857 ::std::mem::align_of::<kvm_arm_device_addr>(),
5858 8usize,
5859 concat!("Alignment of ", stringify!(kvm_arm_device_addr))
5860 );
5861 assert_eq!(
5862 unsafe { &(*(::std::ptr::null::<kvm_arm_device_addr>())).id as *const _ as usize },
5863 0usize,
5864 concat!(
5865 "Offset of field: ",
5866 stringify!(kvm_arm_device_addr),
5867 "::",
5868 stringify!(id)
5869 )
5870 );
5871 assert_eq!(
5872 unsafe { &(*(::std::ptr::null::<kvm_arm_device_addr>())).addr as *const _ as usize },
5873 8usize,
5874 concat!(
5875 "Offset of field: ",
5876 stringify!(kvm_arm_device_addr),
5877 "::",
5878 stringify!(addr)
5879 )
5880 );
5881 }
5882 #[repr(C)]
5883 #[derive(Debug, Default, Copy, Clone)]
5884 pub struct kvm_create_device {
5885 pub type_: __u32,
5886 pub fd: __u32,
5887 pub flags: __u32,
5888 }
5889 #[test]
bindgen_test_layout_kvm_create_device()5890 fn bindgen_test_layout_kvm_create_device() {
5891 assert_eq!(
5892 ::std::mem::size_of::<kvm_create_device>(),
5893 12usize,
5894 concat!("Size of: ", stringify!(kvm_create_device))
5895 );
5896 assert_eq!(
5897 ::std::mem::align_of::<kvm_create_device>(),
5898 4usize,
5899 concat!("Alignment of ", stringify!(kvm_create_device))
5900 );
5901 assert_eq!(
5902 unsafe { &(*(::std::ptr::null::<kvm_create_device>())).type_ as *const _ as usize },
5903 0usize,
5904 concat!(
5905 "Offset of field: ",
5906 stringify!(kvm_create_device),
5907 "::",
5908 stringify!(type_)
5909 )
5910 );
5911 assert_eq!(
5912 unsafe { &(*(::std::ptr::null::<kvm_create_device>())).fd as *const _ as usize },
5913 4usize,
5914 concat!(
5915 "Offset of field: ",
5916 stringify!(kvm_create_device),
5917 "::",
5918 stringify!(fd)
5919 )
5920 );
5921 assert_eq!(
5922 unsafe { &(*(::std::ptr::null::<kvm_create_device>())).flags as *const _ as usize },
5923 8usize,
5924 concat!(
5925 "Offset of field: ",
5926 stringify!(kvm_create_device),
5927 "::",
5928 stringify!(flags)
5929 )
5930 );
5931 }
5932 #[repr(C)]
5933 #[derive(Debug, Default, Copy, Clone)]
5934 pub struct kvm_device_attr {
5935 pub flags: __u32,
5936 pub group: __u32,
5937 pub attr: __u64,
5938 pub addr: __u64,
5939 }
5940 #[test]
bindgen_test_layout_kvm_device_attr()5941 fn bindgen_test_layout_kvm_device_attr() {
5942 assert_eq!(
5943 ::std::mem::size_of::<kvm_device_attr>(),
5944 24usize,
5945 concat!("Size of: ", stringify!(kvm_device_attr))
5946 );
5947 assert_eq!(
5948 ::std::mem::align_of::<kvm_device_attr>(),
5949 8usize,
5950 concat!("Alignment of ", stringify!(kvm_device_attr))
5951 );
5952 assert_eq!(
5953 unsafe { &(*(::std::ptr::null::<kvm_device_attr>())).flags as *const _ as usize },
5954 0usize,
5955 concat!(
5956 "Offset of field: ",
5957 stringify!(kvm_device_attr),
5958 "::",
5959 stringify!(flags)
5960 )
5961 );
5962 assert_eq!(
5963 unsafe { &(*(::std::ptr::null::<kvm_device_attr>())).group as *const _ as usize },
5964 4usize,
5965 concat!(
5966 "Offset of field: ",
5967 stringify!(kvm_device_attr),
5968 "::",
5969 stringify!(group)
5970 )
5971 );
5972 assert_eq!(
5973 unsafe { &(*(::std::ptr::null::<kvm_device_attr>())).attr as *const _ as usize },
5974 8usize,
5975 concat!(
5976 "Offset of field: ",
5977 stringify!(kvm_device_attr),
5978 "::",
5979 stringify!(attr)
5980 )
5981 );
5982 assert_eq!(
5983 unsafe { &(*(::std::ptr::null::<kvm_device_attr>())).addr as *const _ as usize },
5984 16usize,
5985 concat!(
5986 "Offset of field: ",
5987 stringify!(kvm_device_attr),
5988 "::",
5989 stringify!(addr)
5990 )
5991 );
5992 }
5993 pub const kvm_device_type_KVM_DEV_TYPE_FSL_MPIC_20: kvm_device_type = 1;
5994 pub const kvm_device_type_KVM_DEV_TYPE_FSL_MPIC_42: kvm_device_type = 2;
5995 pub const kvm_device_type_KVM_DEV_TYPE_XICS: kvm_device_type = 3;
5996 pub const kvm_device_type_KVM_DEV_TYPE_VFIO: kvm_device_type = 4;
5997 pub const kvm_device_type_KVM_DEV_TYPE_ARM_VGIC_V2: kvm_device_type = 5;
5998 pub const kvm_device_type_KVM_DEV_TYPE_FLIC: kvm_device_type = 6;
5999 pub const kvm_device_type_KVM_DEV_TYPE_ARM_VGIC_V3: kvm_device_type = 7;
6000 pub const kvm_device_type_KVM_DEV_TYPE_MAX: kvm_device_type = 8;
6001 pub type kvm_device_type = ::std::os::raw::c_uint;
6002 #[repr(C)]
6003 #[derive(Debug, Default, Copy, Clone)]
6004 pub struct kvm_s390_ucas_mapping {
6005 pub user_addr: __u64,
6006 pub vcpu_addr: __u64,
6007 pub length: __u64,
6008 }
6009 #[test]
bindgen_test_layout_kvm_s390_ucas_mapping()6010 fn bindgen_test_layout_kvm_s390_ucas_mapping() {
6011 assert_eq!(
6012 ::std::mem::size_of::<kvm_s390_ucas_mapping>(),
6013 24usize,
6014 concat!("Size of: ", stringify!(kvm_s390_ucas_mapping))
6015 );
6016 assert_eq!(
6017 ::std::mem::align_of::<kvm_s390_ucas_mapping>(),
6018 8usize,
6019 concat!("Alignment of ", stringify!(kvm_s390_ucas_mapping))
6020 );
6021 assert_eq!(
6022 unsafe { &(*(::std::ptr::null::<kvm_s390_ucas_mapping>())).user_addr as *const _ as usize },
6023 0usize,
6024 concat!(
6025 "Offset of field: ",
6026 stringify!(kvm_s390_ucas_mapping),
6027 "::",
6028 stringify!(user_addr)
6029 )
6030 );
6031 assert_eq!(
6032 unsafe { &(*(::std::ptr::null::<kvm_s390_ucas_mapping>())).vcpu_addr as *const _ as usize },
6033 8usize,
6034 concat!(
6035 "Offset of field: ",
6036 stringify!(kvm_s390_ucas_mapping),
6037 "::",
6038 stringify!(vcpu_addr)
6039 )
6040 );
6041 assert_eq!(
6042 unsafe { &(*(::std::ptr::null::<kvm_s390_ucas_mapping>())).length as *const _ as usize },
6043 16usize,
6044 concat!(
6045 "Offset of field: ",
6046 stringify!(kvm_s390_ucas_mapping),
6047 "::",
6048 stringify!(length)
6049 )
6050 );
6051 }
6052 #[repr(C)]
6053 #[derive(Copy, Clone)]
6054 pub struct kvm_assigned_pci_dev {
6055 pub assigned_dev_id: __u32,
6056 pub busnr: __u32,
6057 pub devfn: __u32,
6058 pub flags: __u32,
6059 pub segnr: __u32,
6060 pub __bindgen_anon_1: kvm_assigned_pci_dev__bindgen_ty_1,
6061 }
6062 #[repr(C)]
6063 #[derive(Copy, Clone)]
6064 pub union kvm_assigned_pci_dev__bindgen_ty_1 {
6065 pub reserved: [__u32; 11usize],
6066 _bindgen_union_align: [u32; 11usize],
6067 }
6068 #[test]
bindgen_test_layout_kvm_assigned_pci_dev__bindgen_ty_1()6069 fn bindgen_test_layout_kvm_assigned_pci_dev__bindgen_ty_1() {
6070 assert_eq!(
6071 ::std::mem::size_of::<kvm_assigned_pci_dev__bindgen_ty_1>(),
6072 44usize,
6073 concat!("Size of: ", stringify!(kvm_assigned_pci_dev__bindgen_ty_1))
6074 );
6075 assert_eq!(
6076 ::std::mem::align_of::<kvm_assigned_pci_dev__bindgen_ty_1>(),
6077 4usize,
6078 concat!(
6079 "Alignment of ",
6080 stringify!(kvm_assigned_pci_dev__bindgen_ty_1)
6081 )
6082 );
6083 assert_eq!(
6084 unsafe {
6085 &(*(::std::ptr::null::<kvm_assigned_pci_dev__bindgen_ty_1>())).reserved as *const _
6086 as usize
6087 },
6088 0usize,
6089 concat!(
6090 "Offset of field: ",
6091 stringify!(kvm_assigned_pci_dev__bindgen_ty_1),
6092 "::",
6093 stringify!(reserved)
6094 )
6095 );
6096 }
6097 impl Default for kvm_assigned_pci_dev__bindgen_ty_1 {
default() -> Self6098 fn default() -> Self {
6099 unsafe { ::std::mem::zeroed() }
6100 }
6101 }
6102 #[test]
bindgen_test_layout_kvm_assigned_pci_dev()6103 fn bindgen_test_layout_kvm_assigned_pci_dev() {
6104 assert_eq!(
6105 ::std::mem::size_of::<kvm_assigned_pci_dev>(),
6106 64usize,
6107 concat!("Size of: ", stringify!(kvm_assigned_pci_dev))
6108 );
6109 assert_eq!(
6110 ::std::mem::align_of::<kvm_assigned_pci_dev>(),
6111 4usize,
6112 concat!("Alignment of ", stringify!(kvm_assigned_pci_dev))
6113 );
6114 assert_eq!(
6115 unsafe {
6116 &(*(::std::ptr::null::<kvm_assigned_pci_dev>())).assigned_dev_id as *const _ as usize
6117 },
6118 0usize,
6119 concat!(
6120 "Offset of field: ",
6121 stringify!(kvm_assigned_pci_dev),
6122 "::",
6123 stringify!(assigned_dev_id)
6124 )
6125 );
6126 assert_eq!(
6127 unsafe { &(*(::std::ptr::null::<kvm_assigned_pci_dev>())).busnr as *const _ as usize },
6128 4usize,
6129 concat!(
6130 "Offset of field: ",
6131 stringify!(kvm_assigned_pci_dev),
6132 "::",
6133 stringify!(busnr)
6134 )
6135 );
6136 assert_eq!(
6137 unsafe { &(*(::std::ptr::null::<kvm_assigned_pci_dev>())).devfn as *const _ as usize },
6138 8usize,
6139 concat!(
6140 "Offset of field: ",
6141 stringify!(kvm_assigned_pci_dev),
6142 "::",
6143 stringify!(devfn)
6144 )
6145 );
6146 assert_eq!(
6147 unsafe { &(*(::std::ptr::null::<kvm_assigned_pci_dev>())).flags as *const _ as usize },
6148 12usize,
6149 concat!(
6150 "Offset of field: ",
6151 stringify!(kvm_assigned_pci_dev),
6152 "::",
6153 stringify!(flags)
6154 )
6155 );
6156 assert_eq!(
6157 unsafe { &(*(::std::ptr::null::<kvm_assigned_pci_dev>())).segnr as *const _ as usize },
6158 16usize,
6159 concat!(
6160 "Offset of field: ",
6161 stringify!(kvm_assigned_pci_dev),
6162 "::",
6163 stringify!(segnr)
6164 )
6165 );
6166 }
6167 impl Default for kvm_assigned_pci_dev {
default() -> Self6168 fn default() -> Self {
6169 unsafe { ::std::mem::zeroed() }
6170 }
6171 }
6172 #[repr(C)]
6173 #[derive(Copy, Clone)]
6174 pub struct kvm_assigned_irq {
6175 pub assigned_dev_id: __u32,
6176 pub host_irq: __u32,
6177 pub guest_irq: __u32,
6178 pub flags: __u32,
6179 pub __bindgen_anon_1: kvm_assigned_irq__bindgen_ty_1,
6180 }
6181 #[repr(C)]
6182 #[derive(Copy, Clone)]
6183 pub union kvm_assigned_irq__bindgen_ty_1 {
6184 pub reserved: [__u32; 12usize],
6185 _bindgen_union_align: [u32; 12usize],
6186 }
6187 #[test]
bindgen_test_layout_kvm_assigned_irq__bindgen_ty_1()6188 fn bindgen_test_layout_kvm_assigned_irq__bindgen_ty_1() {
6189 assert_eq!(
6190 ::std::mem::size_of::<kvm_assigned_irq__bindgen_ty_1>(),
6191 48usize,
6192 concat!("Size of: ", stringify!(kvm_assigned_irq__bindgen_ty_1))
6193 );
6194 assert_eq!(
6195 ::std::mem::align_of::<kvm_assigned_irq__bindgen_ty_1>(),
6196 4usize,
6197 concat!("Alignment of ", stringify!(kvm_assigned_irq__bindgen_ty_1))
6198 );
6199 assert_eq!(
6200 unsafe {
6201 &(*(::std::ptr::null::<kvm_assigned_irq__bindgen_ty_1>())).reserved as *const _ as usize
6202 },
6203 0usize,
6204 concat!(
6205 "Offset of field: ",
6206 stringify!(kvm_assigned_irq__bindgen_ty_1),
6207 "::",
6208 stringify!(reserved)
6209 )
6210 );
6211 }
6212 impl Default for kvm_assigned_irq__bindgen_ty_1 {
default() -> Self6213 fn default() -> Self {
6214 unsafe { ::std::mem::zeroed() }
6215 }
6216 }
6217 #[test]
bindgen_test_layout_kvm_assigned_irq()6218 fn bindgen_test_layout_kvm_assigned_irq() {
6219 assert_eq!(
6220 ::std::mem::size_of::<kvm_assigned_irq>(),
6221 64usize,
6222 concat!("Size of: ", stringify!(kvm_assigned_irq))
6223 );
6224 assert_eq!(
6225 ::std::mem::align_of::<kvm_assigned_irq>(),
6226 4usize,
6227 concat!("Alignment of ", stringify!(kvm_assigned_irq))
6228 );
6229 assert_eq!(
6230 unsafe {
6231 &(*(::std::ptr::null::<kvm_assigned_irq>())).assigned_dev_id as *const _ as usize
6232 },
6233 0usize,
6234 concat!(
6235 "Offset of field: ",
6236 stringify!(kvm_assigned_irq),
6237 "::",
6238 stringify!(assigned_dev_id)
6239 )
6240 );
6241 assert_eq!(
6242 unsafe { &(*(::std::ptr::null::<kvm_assigned_irq>())).host_irq as *const _ as usize },
6243 4usize,
6244 concat!(
6245 "Offset of field: ",
6246 stringify!(kvm_assigned_irq),
6247 "::",
6248 stringify!(host_irq)
6249 )
6250 );
6251 assert_eq!(
6252 unsafe { &(*(::std::ptr::null::<kvm_assigned_irq>())).guest_irq as *const _ as usize },
6253 8usize,
6254 concat!(
6255 "Offset of field: ",
6256 stringify!(kvm_assigned_irq),
6257 "::",
6258 stringify!(guest_irq)
6259 )
6260 );
6261 assert_eq!(
6262 unsafe { &(*(::std::ptr::null::<kvm_assigned_irq>())).flags as *const _ as usize },
6263 12usize,
6264 concat!(
6265 "Offset of field: ",
6266 stringify!(kvm_assigned_irq),
6267 "::",
6268 stringify!(flags)
6269 )
6270 );
6271 }
6272 impl Default for kvm_assigned_irq {
default() -> Self6273 fn default() -> Self {
6274 unsafe { ::std::mem::zeroed() }
6275 }
6276 }
6277 #[repr(C)]
6278 #[derive(Debug, Default, Copy, Clone)]
6279 pub struct kvm_assigned_msix_nr {
6280 pub assigned_dev_id: __u32,
6281 pub entry_nr: __u16,
6282 pub padding: __u16,
6283 }
6284 #[test]
bindgen_test_layout_kvm_assigned_msix_nr()6285 fn bindgen_test_layout_kvm_assigned_msix_nr() {
6286 assert_eq!(
6287 ::std::mem::size_of::<kvm_assigned_msix_nr>(),
6288 8usize,
6289 concat!("Size of: ", stringify!(kvm_assigned_msix_nr))
6290 );
6291 assert_eq!(
6292 ::std::mem::align_of::<kvm_assigned_msix_nr>(),
6293 4usize,
6294 concat!("Alignment of ", stringify!(kvm_assigned_msix_nr))
6295 );
6296 assert_eq!(
6297 unsafe {
6298 &(*(::std::ptr::null::<kvm_assigned_msix_nr>())).assigned_dev_id as *const _ as usize
6299 },
6300 0usize,
6301 concat!(
6302 "Offset of field: ",
6303 stringify!(kvm_assigned_msix_nr),
6304 "::",
6305 stringify!(assigned_dev_id)
6306 )
6307 );
6308 assert_eq!(
6309 unsafe { &(*(::std::ptr::null::<kvm_assigned_msix_nr>())).entry_nr as *const _ as usize },
6310 4usize,
6311 concat!(
6312 "Offset of field: ",
6313 stringify!(kvm_assigned_msix_nr),
6314 "::",
6315 stringify!(entry_nr)
6316 )
6317 );
6318 assert_eq!(
6319 unsafe { &(*(::std::ptr::null::<kvm_assigned_msix_nr>())).padding as *const _ as usize },
6320 6usize,
6321 concat!(
6322 "Offset of field: ",
6323 stringify!(kvm_assigned_msix_nr),
6324 "::",
6325 stringify!(padding)
6326 )
6327 );
6328 }
6329 #[repr(C)]
6330 #[derive(Debug, Default, Copy, Clone)]
6331 pub struct kvm_assigned_msix_entry {
6332 pub assigned_dev_id: __u32,
6333 pub gsi: __u32,
6334 pub entry: __u16,
6335 pub padding: [__u16; 3usize],
6336 }
6337 #[test]
bindgen_test_layout_kvm_assigned_msix_entry()6338 fn bindgen_test_layout_kvm_assigned_msix_entry() {
6339 assert_eq!(
6340 ::std::mem::size_of::<kvm_assigned_msix_entry>(),
6341 16usize,
6342 concat!("Size of: ", stringify!(kvm_assigned_msix_entry))
6343 );
6344 assert_eq!(
6345 ::std::mem::align_of::<kvm_assigned_msix_entry>(),
6346 4usize,
6347 concat!("Alignment of ", stringify!(kvm_assigned_msix_entry))
6348 );
6349 assert_eq!(
6350 unsafe {
6351 &(*(::std::ptr::null::<kvm_assigned_msix_entry>())).assigned_dev_id as *const _ as usize
6352 },
6353 0usize,
6354 concat!(
6355 "Offset of field: ",
6356 stringify!(kvm_assigned_msix_entry),
6357 "::",
6358 stringify!(assigned_dev_id)
6359 )
6360 );
6361 assert_eq!(
6362 unsafe { &(*(::std::ptr::null::<kvm_assigned_msix_entry>())).gsi as *const _ as usize },
6363 4usize,
6364 concat!(
6365 "Offset of field: ",
6366 stringify!(kvm_assigned_msix_entry),
6367 "::",
6368 stringify!(gsi)
6369 )
6370 );
6371 assert_eq!(
6372 unsafe { &(*(::std::ptr::null::<kvm_assigned_msix_entry>())).entry as *const _ as usize },
6373 8usize,
6374 concat!(
6375 "Offset of field: ",
6376 stringify!(kvm_assigned_msix_entry),
6377 "::",
6378 stringify!(entry)
6379 )
6380 );
6381 assert_eq!(
6382 unsafe { &(*(::std::ptr::null::<kvm_assigned_msix_entry>())).padding as *const _ as usize },
6383 10usize,
6384 concat!(
6385 "Offset of field: ",
6386 stringify!(kvm_assigned_msix_entry),
6387 "::",
6388 stringify!(padding)
6389 )
6390 );
6391 }
6392 pub type __uint128_t = [u64; 2];
6393