Boqun Feng 8f43710543 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 <boqun.feng@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200916034817.30282-12-boqun.feng@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
2020-09-28 08:57:28 +00:00
..
2020-08-07 18:48:15 -07:00
2020-08-06 16:50:07 -07:00
2019-11-07 06:43:18 -07:00
2020-03-11 23:07:59 -04:00
2020-08-06 16:50:07 -07:00
2020-06-15 23:28:04 -04:00
2020-08-06 16:50:07 -07:00
2020-08-14 16:01:59 -07:00
2020-08-14 16:01:59 -07:00
2020-08-06 16:50:07 -07:00
2020-08-06 16:50:07 -07:00
2020-08-06 16:50:07 -07:00
2020-08-06 16:50:07 -07:00
2020-08-06 16:50:07 -07:00
2020-08-06 16:50:07 -07:00
2020-08-07 18:48:15 -07:00
2020-08-06 16:50:07 -07:00
2019-03-02 11:39:54 -08:00
2019-11-12 22:21:35 -05:00
2020-02-24 14:54:25 -05:00
2020-03-11 23:07:59 -04:00
2020-04-14 21:32:39 -04:00
2019-01-08 21:58:35 -05:00
2019-07-11 15:14:01 -07:00
2020-07-28 22:34:52 -04:00
2020-07-24 22:09:55 -04:00
2020-08-06 16:50:07 -07:00
2018-11-06 21:31:28 -05:00
2020-07-24 22:09:55 -04:00
2019-07-11 15:14:01 -07:00
2019-07-11 15:17:41 -07:00
2020-07-24 22:09:55 -04:00
2020-08-06 16:50:07 -07:00
2020-06-19 23:06:43 -04:00
2019-07-11 15:14:01 -07:00
2020-08-06 16:50:07 -07:00
2020-06-19 23:06:43 -04:00
2020-08-14 16:01:59 -07:00
2020-08-04 20:56:56 -04:00
2020-08-04 20:56:56 -04:00
2019-07-11 15:14:01 -07:00
2020-06-13 13:17:49 -07:00
2020-02-24 15:01:57 -05:00
2020-08-11 14:34:17 -07:00
2019-07-11 15:14:01 -07:00