Skip to content

Commit

Permalink
fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Nov 19, 2024
1 parent 132b2c6 commit e4f739e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/vm-util.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def parse_device(yml, *, bus_id=None, device_id=None):

if devtype == 'pci-bridge':
qemu_pci_bridges += 1
args += ['-device', f'pci-bridge,id={yml['name']},chassis_nr={qemu_pci_bridges}']
args += ['-device', f'pci-bridge,id={yml["name"]},chassis_nr={qemu_pci_bridges}']

for i, device in enumerate(yml.get('devices', [])):
args += parse_device(device, bus_id=yml['name'], device_id=i)
elif devtype == 'pci-multifunction-device':
multifunction_property_set = False

for i, func in enumerate(yml.get('functions', [])):
properties = f'vfio-pci,host={func['host']}'
properties = f'vfio-pci,host={func["host"]}'
if bus_id:
properties += f',bus={bus_id}'
if i == 0:
Expand All @@ -115,7 +115,7 @@ def parse_device(yml, *, bus_id=None, device_id=None):
properties += f',addr={device_id:02x}.{i}'
args += ['-device', properties]
elif devtype == 'pci-device':
args += ['-device', f'vfio-pci,host={yml['host']},id={yml['name']}']
args += ['-device', f'vfio-pci,host={yml["host"]},id={yml["name"]}']
else:
print(f"error: unsupported device-spec device kind {devtype}")
sys.exit(1)
Expand Down Expand Up @@ -179,7 +179,7 @@ def do_qemu(args):
qemu_args += ["-serial", "stdio"]
elif args.arch == "riscv64":
# Use the virt machine and -kernel, similar to aarch64.
qemu_args += ["-machine", "virt"]
qemu_args += ["-machine", "virt,acpi=off"]
qemu_args += ["-kernel", "system-root/usr/managarm/bin/eir-virt"]
qemu_args += ["-serial", "stdio"]
else:
Expand Down

0 comments on commit e4f739e

Please sign in to comment.