HomeFreeBSD

hyperv/storvsc: Fix busdma constraints

Description

hyperv/storvsc: Fix busdma constraints

  • The BUS_DMA_KEEP_PG_OFFSET flag is needed, since storvsc_xferbuf_prepare() assumes that only the first segment may have a non-zero offset, and that all following segments are page-sized and -aligned.
  • storvsc_xferbuf_prepare() handles 64-bit bus addresses, so avoid unneeded bouncing on i386.

PR: 285681
Reported by: dim
Tested by: dim, whu
MFC after: 2 weeks

(cherry picked from commit a319ba694538a38429115aaaf1d4b3946ea3a8b5)

Details

Provenance
markjAuthored on Mon, Mar 31, 10:45 AM
Parents
rGaaa266adc32b: pf: Use a macro to get the hash row in pf_find_state_byid()
Branches
Unknown
Tags
Unknown