Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 0922d76

Browse files
committed
TBS: patching new types
Signed-off-by: Babis Chalios <[email protected]>
1 parent e1ff3e7 commit 0922d76

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

src/arm64/bindings.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,14 +2400,14 @@ impl ::std::fmt::Debug for kvm_irq_level {
24002400
}
24012401
}
24022402
#[repr(C)]
2403-
#[derive(Copy, Clone)]
2403+
#[derive(Copy, Clone, Serialize, Deserialize)]
24042404
pub struct kvm_irqchip {
24052405
pub chip_id: __u32,
24062406
pub pad: __u32,
24072407
pub chip: kvm_irqchip__bindgen_ty_1,
24082408
}
24092409
#[repr(C)]
2410-
#[derive(Copy, Clone)]
2410+
#[derive(Copy, Clone, Serialize, Deserialize)]
24112411
pub union kvm_irqchip__bindgen_ty_1 {
24122412
pub dummy: [::std::os::raw::c_char; 512usize],
24132413
}
@@ -2631,7 +2631,7 @@ fn bindgen_test_layout_kvm_s390_skeys() {
26312631
}
26322632
#[doc = " kvm_s390_cmma_log - Used for CMMA migration.\n\n Used both for input and output.\n\n @start_gfn: Guest page number to start from.\n @count: Size of the result buffer.\n @flags: Control operation mode via KVM_S390_CMMA_* flags\n @remaining: Used with KVM_S390_GET_CMMA_BITS. Indicates how many dirty\n pages are still remaining.\n @mask: Used with KVM_S390_SET_CMMA_BITS. Bitmap of bits to actually set\n in the PGSTE.\n @values: Pointer to the values buffer.\n\n Used in KVM_S390_{G,S}ET_CMMA_BITS ioctls."]
26332633
#[repr(C)]
2634-
#[derive(Copy, Clone)]
2634+
#[derive(Copy, Clone, Serialize, Deserialize)]
26352635
pub struct kvm_s390_cmma_log {
26362636
pub start_gfn: __u64,
26372637
pub count: __u32,
@@ -2640,7 +2640,7 @@ pub struct kvm_s390_cmma_log {
26402640
pub values: __u64,
26412641
}
26422642
#[repr(C)]
2643-
#[derive(Copy, Clone)]
2643+
#[derive(Copy, Clone, Serialize, Deserialize)]
26442644
pub union kvm_s390_cmma_log__bindgen_ty_1 {
26452645
pub remaining: __u64,
26462646
pub mask: __u64,
@@ -2765,14 +2765,14 @@ impl ::std::fmt::Debug for kvm_s390_cmma_log {
27652765
}
27662766
}
27672767
#[repr(C)]
2768-
#[derive(Copy, Clone)]
2768+
#[derive(Copy, Clone, Serialize, Deserialize)]
27692769
pub struct kvm_hyperv_exit {
27702770
pub type_: __u32,
27712771
pub pad1: __u32,
27722772
pub u: kvm_hyperv_exit__bindgen_ty_1,
27732773
}
27742774
#[repr(C)]
2775-
#[derive(Copy, Clone)]
2775+
#[derive(Copy, Clone, Serialize, Deserialize)]
27762776
pub union kvm_hyperv_exit__bindgen_ty_1 {
27772777
pub synic: kvm_hyperv_exit__bindgen_ty_1__bindgen_ty_1,
27782778
pub hcall: kvm_hyperv_exit__bindgen_ty_1__bindgen_ty_2,
@@ -3145,13 +3145,13 @@ impl ::std::fmt::Debug for kvm_hyperv_exit {
31453145
}
31463146
}
31473147
#[repr(C)]
3148-
#[derive(Copy, Clone)]
3148+
#[derive(Copy, Clone, Serialize, Deserialize)]
31493149
pub struct kvm_xen_exit {
31503150
pub type_: __u32,
31513151
pub u: kvm_xen_exit__bindgen_ty_1,
31523152
}
31533153
#[repr(C)]
3154-
#[derive(Copy, Clone)]
3154+
#[derive(Copy, Clone, Serialize, Deserialize)]
31553155
pub union kvm_xen_exit__bindgen_ty_1 {
31563156
pub hcall: kvm_xen_exit__bindgen_ty_1__bindgen_ty_1,
31573157
}
@@ -3330,7 +3330,7 @@ impl ::std::fmt::Debug for kvm_xen_exit {
33303330
}
33313331
}
33323332
#[repr(C)]
3333-
#[derive(Copy, Clone)]
3333+
#[derive(Copy, Clone, Serialize, Deserialize)]
33343334
pub struct kvm_run {
33353335
pub request_interrupt_window: __u8,
33363336
pub immediate_exit: __u8,

src/x86_64/bindings.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3966,7 +3966,7 @@ fn bindgen_test_layout_kvm_debugregs() {
39663966
);
39673967
}
39683968
#[repr(C)]
3969-
#[derive(Debug, Copy, PartialEq, Serialize, Deserialize)]
3969+
#[derive(Debug, Serialize, Deserialize)]
39703970
pub struct kvm_xsave {
39713971
#[serde(with = "BigArray")]
39723972
pub region: [__u32; 1024usize],
@@ -4194,7 +4194,9 @@ fn bindgen_test_layout_kvm_sync_regs() {
41944194
#[repr(C)]
41954195
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
41964196
pub struct kvm_vmx_nested_state_data {
4197+
#[serde(with = "BigArray")]
41974198
pub vmcs12: [__u8; 4096usize],
4199+
#[serde(with = "BigArray")]
41984200
pub shadow_vmcs12: [__u8; 4096usize],
41994201
}
42004202
#[test]
@@ -4368,6 +4370,7 @@ fn bindgen_test_layout_kvm_vmx_nested_state_hdr() {
43684370
#[repr(C)]
43694371
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
43704372
pub struct kvm_svm_nested_state_data {
4373+
#[serde(with = "BigArray")]
43714374
pub vmcb12: [__u8; 4096usize],
43724375
}
43734376
#[test]
@@ -10173,6 +10176,7 @@ pub struct kvm_ioeventfd {
1017310176
pub len: __u32,
1017410177
pub fd: __s32,
1017510178
pub flags: __u32,
10179+
#[serde(with = "BigArray")]
1017610180
pub pad: [__u8; 36usize],
1017710181
}
1017810182
#[test]
@@ -10265,6 +10269,7 @@ pub struct kvm_enable_cap {
1026510269
pub cap: __u32,
1026610270
pub flags: __u32,
1026710271
pub args: [__u64; 4usize],
10272+
#[serde(with = "BigArray")]
1026810273
pub pad: [__u8; 64usize],
1026910274
}
1027010275
#[test]
@@ -10336,6 +10341,7 @@ impl Default for kvm_enable_cap {
1033610341
pub struct kvm_ppc_pvinfo {
1033710342
pub flags: __u32,
1033810343
pub hcall: [__u32; 4usize],
10344+
#[serde(with = "BigArray")]
1033910345
pub pad: [__u8; 108usize],
1034010346
}
1034110347
#[test]

0 commit comments

Comments
 (0)