diff options
| author | Boqun Feng <[email protected]> | 2020-09-16 03:48:17 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2020-09-28 08:57:28 +0000 |
| commit | 8f43710543ef305904c18072d14ace43c74b7743 (patch) | |
| tree | b330655f5e7a1a53065aa65c459c18b3509c8886 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | Driver: hv: util: Use VMBUS_RING_SIZE() for ringbuffer sizes (diff) | |
| download | kernel-8f43710543ef305904c18072d14ace43c74b7743.tar.gz kernel-8f43710543ef305904c18072d14ace43c74b7743.zip | |
scsi: storvsc: Support PAGE_SIZE larger than 4K
Hyper-V always use 4k page size (HV_HYP_PAGE_SIZE), so when
communicating with Hyper-V, a guest should always use HV_HYP_PAGE_SIZE
as the unit for page related data. For storvsc, the data is
vmbus_packet_mpb_array. And since in scsi_cmnd, sglist of pages (in unit
of PAGE_SIZE) is used, we need convert pages in the sglist of scsi_cmnd
into Hyper-V pages in vmbus_packet_mpb_array.
This patch does the conversion by dividing pages in sglist into Hyper-V
pages, offset and indexes in vmbus_packet_mpb_array are recalculated
accordingly.
Signed-off-by: Boqun Feng <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
