Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions kvm-bindings/src/x86_64/fam_wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,10 @@ pub type MsrList = FamStructWrapper<kvm_msr_list>;
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::<kvm_xsave>()).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::<kvm_xsave>()).div_ceil(sizeof::<__u32>()`.
pub len: usize,
pub xsave: kvm_xsave,
}
Expand Down