@@ -1848,21 +1851,22 @@ static int storvsc_queuecommand(struct Scsi_HostHi Tianyu,
*host, struct scsi_cmnd *scmnd)
payload->range.len = length;
payload->range.offset = offset_in_hvpg;
+ sg_count = scsi_dma_map(scmnd);
+ if (sg_count < 0)
+ return SCSI_MLQUEUE_DEVICE_BUSY;
This patch (and this patch series) unconditionally adds code for dealing with DMA addresses for all VMs, including non-isolation VMs.
Does this add performance penalty for VMs that don't require isolation?