=== modified file 'doc/changes.rst'
@@ -5,6 +5,7 @@
Version 0.5.11
==============
+* Add qemu_drive_interface configuration option for the LAVA QEMU client.
.. _version_0_5_10:
=== modified file 'lava_dispatcher/client/qemu.py'
@@ -99,12 +99,13 @@
self.proc.sendline('sync')
self.proc.expect([self.tester_str, pexpect.TIMEOUT], timeout=10)
self.proc.close()
- qemu_cmd = ('%s -M %s -drive if=sd,cache=writeback,file=%s '
+ qemu_cmd = ('%s -M %s -drive if=%s,cache=writeback,file=%s '
'-clock unix -device usb-kbd -device usb-mouse -usb '
'-device usb-net,netdev=mynet -netdev user,id=mynet '
'-nographic') % (
self.context.config.get('default_qemu_binary'),
self.device_option('qemu_machine_type'),
+ self.device_option('qemu_drive_interface'),
self._lava_image)
logging.info('launching qemu with command %r' % qemu_cmd)
self.proc = logging_spawn(
=== modified file 'lava_dispatcher/default-config/lava-dispatcher/device-defaults.conf'
@@ -96,6 +96,9 @@
# The value to pass to qemu-system-arm's -M option.
qemu_machine_type = %(device_type)s
+# QEMU drive interface.
+qemu_drive_interface = sd
+
# This is used for snowball soft reset fix, since the reboot command is hanging.
soft_boot_cmd =