Skip to content

Commit 9e72cd4

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 9e72cd4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

kvm-bindings/src/x86_64/fam_wrappers.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,10 @@ pub type MsrList = FamStructWrapper<kvm_msr_list>;
132132
pub struct kvm_xsave2 {
133133
/// The length, in units of sizeof::<__u32>(), of the FAM in [`kvm_xsave`].
134134
///
135-
/// Note that `KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2)` returns the size of the entire
136-
/// `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-
/// ```
135+
/// Note that `KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2)` returns the size of the
136+
/// entire `kvm_xsave` structure, e.g. the sum of header and FAM. Thus, this
137+
/// `len` field is equal to
138+
/// `(KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2) - sizeof::<kvm_xsave>()).div_ceil(sizeof::<__u32>()`.
141139
pub len: usize,
142140
pub xsave: kvm_xsave,
143141
}

0 commit comments

Comments
 (0)