Commit c75a562
committed
fix(doc): correct the comment on kvm_xsave2.len
The length of the FAM is not in bytes, but rather in terms of how many
__u32 elements are contained in the flexible array member. So clarify
the note that the return value of KVM_CHECK_EXTENSION not only needs to
subtract sizeof::<kvm_xsave>(), it also needs to divide by 4.
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>1 parent 30d4dfd commit c75a562
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
0 commit comments