You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kvm-ioctls/src/ioctls/vm.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -668,7 +668,7 @@ impl VmFd {
668
668
dst.flags = src.flags.bits();
669
669
dst.nmsrs = src.msr_count;
670
670
dst.base = src.base;
671
-
dst.bitmap = src.bitmap.as_ptr()as*mutu8;// TODO: is this cast ok? kvm_msr_filter_range.bitmap is __*mut__ u8. Ideally I don't want to require input parameters to be mutable unless it's necessary
671
+
dst.bitmap = src.bitmap.as_ptr()as*mutu8;// The ioctl doesn't modify the bitmap, so this cast is safe.
672
672
}
673
673
674
674
// SAFETY: We checked the length of all bitmaps above.
0 commit comments