summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-22 22:58:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 12:06:52 +0100
commitca940601b889fde1f3ad37c13540383c3516bb96 (patch)
tree8b9a74778f5d3146f96015712ac7c3ce7c25a651 /scripts/runqemu
parenteb9264cf31c5b11831f9cdcaac8d533e2296290b (diff)
downloadpoky-ca940601b889fde1f3ad37c13540383c3516bb96.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
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):
1005 vm_drive = '' 1005 vm_drive = ''
1006 if self.fstype in self.vmtypes: 1006 if self.fstype in self.vmtypes:
1007 if self.fstype == 'iso': 1007 if self.fstype == 'iso':
1008 vm_drive = '-cdrom %s' % self.rootfs 1008 vm_drive = '-drive file=%s,if=virtio,media=cdrom' % self.rootfs
1009 elif self.get('QB_DRIVE_TYPE'): 1009 elif self.get('QB_DRIVE_TYPE'):
1010 drive_type = self.get('QB_DRIVE_TYPE') 1010 drive_type = self.get('QB_DRIVE_TYPE')
1011 if drive_type.startswith("/dev/sd"): 1011 if drive_type.startswith("/dev/sd"):