Skip to content

Commit b5531c7

Browse files
committed
openvmm: use key-value vfio arguments
1 parent 4c52aef commit b5531c7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • lisa/sut_orchestrator/openvmm

lisa/sut_orchestrator/openvmm/node.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,16 @@ def _get_node_network(
411411

412412
def _get_device_passthrough_args(self, node_context: NodeContext) -> List[str]:
413413
args: List[str] = []
414+
port_index = 0
414415
for passthrough_context in node_context.passthrough_devices:
415416
for device in passthrough_context.device_list:
416-
args.extend(["--vfio", _get_pci_address_str(device)])
417+
args.extend(
418+
[
419+
"--vfio",
420+
f"host={_get_pci_address_str(device)},port=rp{port_index}",
421+
]
422+
)
423+
port_index += 1
417424
return args
418425

419426
def _get_device_pool_config_key(self, runbook: OpenVmmGuestNodeSchema) -> str:

0 commit comments

Comments
 (0)