Skip to content

Commit 4996a4c

Browse files
committed
fam_wrappers: Remove code snippet of kvm_save2.len
Code snippet for len field of kvm_xsave2 is outdate for a long while, which also fails to compile. Change the code snippet to pseudo code. Signed-off-by: Ruoqing He <[email protected]>
1 parent 48d93d6 commit 4996a4c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kvm-bindings/src/x86_64/fam_wrappers.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,8 @@ pub struct kvm_xsave2 {
134134
///
135135
/// Note that `KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2)` returns the size of the entire
136136
/// `kvm_xsave` structure, e.g. the sum of header and FAM. Thus, this `len` field
137-
/// is equal to
138-
/// ```norun
139-
/// (KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2) - sizeof::<kvm_xsave>()).div_ceil(sizeof::<__u32>())
140-
/// ```
137+
/// is equal to `KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2)`, which should also be equal
138+
/// to `sizeof::<kvm_xsave>()).div_ceil(sizeof::<__u32>())`.
141139
pub len: usize,
142140
pub xsave: kvm_xsave,
143141
}

0 commit comments

Comments
 (0)