Page MenuHomeFreeBSD

hyperv storvsc: Don't abuse struct sglist to hold virtual addresses.
ClosedPublic

Authored by jhb on Sep 13 2021, 6:09 PM.
Tags
None
Referenced Files
F109440663: D31933.diff
Wed, Feb 5, 2:35 AM
Unknown Object (File)
Wed, Jan 29, 1:09 PM
Unknown Object (File)
Tue, Jan 28, 5:38 PM
Unknown Object (File)
Mon, Jan 27, 2:28 AM
Unknown Object (File)
Dec 3 2024, 6:59 AM
Unknown Object (File)
Sep 27 2024, 9:19 PM
Unknown Object (File)
Sep 24 2024, 9:56 PM
Unknown Object (File)
Sep 24 2024, 4:23 PM
Subscribers

Details

Summary

struct sglist is intended for holding S/G lists of physical address
ranges, not virtual address ranges. GCC 9.x issues several warnings
due to casts between pointers and integers of different sizes as a
result (vm_paddr_t is 64-bits on i386). Instead, add a local 'struct
hv_sglist' which uses an array of 'struct iovec' to hold the S/G list
of virtual address ranges.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41487
Build 38376: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 13 2021, 6:09 PM

This looks reasonable to me but I will defer to @whu for detailed review.

Please give me a few days to review. I am tied up with other issues right now. Thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Feb 1 2022, 1:13 AM
This revision was automatically updated to reflect the committed changes.