Skip to content

Commit 9bdacb2

Browse files
committed
driver/qemudriver: add support for Q35 machine
Signed-off-by: Emil Kronborg Andersen <emil.kronborg@protonmail.com>
1 parent dffc61d commit 9bdacb2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ New Features in 0.5.0
2626
- `DFUDriver` has been added to communicate with a `DFUDevice`, a device in DFU
2727
(Device Firmware Upgrade) mode.
2828
- ``labgrid-client dfu`` added to allow communcation with devices in DFU mode.
29+
- Support for QEMU Q35 machine added.
2930

3031
Bug fixes in 0.5.0
3132
~~~~~~~~~~~~~~~~~~

labgrid/driver/qemudriver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ def on_activate(self):
121121
self._cmd.append(
122122
f"if=sd,format={disk_format},file={disk_path},id=mmc0")
123123
boot_args.append("root=/dev/mmcblk0p1 rootfstype=ext4 rootwait")
124+
if self.machine == "q35":
125+
self._cmd.append("-drive")
126+
self._cmd.append(
127+
f"format={disk_format},file={disk_path}")
124128
elif self.machine == "pc":
125129
self._cmd.append("-drive")
126130
self._cmd.append(

0 commit comments

Comments
 (0)