From 8c850d9e3acb7b52bb98a31f13be28f861aaadfa Mon Sep 17 00:00:00 2001 From: Jia He Date: Mon, 23 Mar 2020 13:20:00 +0800 Subject: [PATCH] config: Add scsi_mod.scan=none for virtio-scsi As per [1], the default scan mode of scsi is sync. kata-agent already scans the SCSI buses [2], changing it to none can reduce the guest boot time. =Before this patch= [ 0.113828] [ T1] scsi host0: Virtio SCSI HBA [ 0.134006] [ T1] tun: Universal TUN/TAP device driver, 1.6 =After this patch= [ 0.105891] [ T1] scsi host0: Virtio SCSI HBA [ 0.107868] [ T1] tun: Universal TUN/TAP device driver, 1.6 It reduces about 17ms on arm64 for virtio-scsi. This patch changes the default kernel parameter: 1. If user specifies the scan mode, use that 2. If user doesn't specify it, and the block device is virtio-scsi, use "none" by default [1] https://lwn.net/Articles/201898/ [2] https://github.com/kata-containers/agent/blob/649d44117a/device.go#L322 Fixes: #2560 Signed-off-by: Jia He