From ca940601b889fde1f3ad37c13540383c3516bb96 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 22 Aug 2017 22:58:02 +0100 Subject: runqemu: Use virtio to mount cdrom drives The IDE driver in the kernel is fragile and in 4.12 is causing backtraces. To unblock 4.12 kernel merging use the virtio CD driver instead to mount iso images which should be faster and more stable. (From OE-Core rev: f59e729f98ef9b506b0cfdc415567e03ec87f2a9) Signed-off-by: Richard Purdie --- scripts/runqemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/runqemu') diff --git a/scripts/runqemu b/scripts/runqemu index fd2717ec87..1131324ccc 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1005,7 +1005,7 @@ class BaseConfig(object): vm_drive = '' if self.fstype in self.vmtypes: if self.fstype == 'iso': - vm_drive = '-cdrom %s' % self.rootfs + vm_drive = '-drive file=%s,if=virtio,media=cdrom' % self.rootfs elif self.get('QB_DRIVE_TYPE'): drive_type = self.get('QB_DRIVE_TYPE') if drive_type.startswith("/dev/sd"): -- cgit v1.2.3-54-g00ecf