From 9e72cd4fa6dd9e4777334ce4076f89c7c38c973b Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Thu, 30 Oct 2025 07:14:46 +0000 Subject: [PATCH] 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 --- kvm-bindings/src/x86_64/fam_wrappers.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kvm-bindings/src/x86_64/fam_wrappers.rs b/kvm-bindings/src/x86_64/fam_wrappers.rs index c2629b0f..f37b847a 100644 --- a/kvm-bindings/src/x86_64/fam_wrappers.rs +++ b/kvm-bindings/src/x86_64/fam_wrappers.rs @@ -132,12 +132,10 @@ pub type MsrList = FamStructWrapper; pub struct kvm_xsave2 { /// The length, in units of sizeof::<__u32>(), of the FAM in [`kvm_xsave`]. /// - /// Note that `KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2)` returns the size of the entire - /// `kvm_xsave` structure, e.g. the sum of header and FAM. Thus, this `len` field - /// is equal to - /// ```norun - /// (KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2) - sizeof::()).div_ceil(sizeof::<__u32>()) - /// ``` + /// Note that `KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2)` returns the size of the + /// entire `kvm_xsave` structure, e.g. the sum of header and FAM. Thus, this + /// `len` field is equal to + /// `(KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2) - sizeof::()).div_ceil(sizeof::<__u32>()`. pub len: usize, pub xsave: kvm_xsave, }