misc: config_tool: fix passthrough device options in launch script
"enable_ptm" and "d3hot_reset" failed to pass to acrn-dm because of
shell syntax error (arguments are separated by space, not comma).
Remove "igd-vf" as it's no longer needed.
@@ -57,8 +57,8 @@ class LaunchScript:
class PassThruDeviceOptions:
passthru_device_options = {
- "0x0200": [".//PTM[text()='y']", ",enable_ptm"], # Ethernet controller, added if PTM is enabled for the VM
- "0x0c0330": [".//os_type[text()='Windows OS']", ",d3hot_reset"],
+ "0x0200": [".//PTM[text()='y']", "enable_ptm"], # Ethernet controller, added if PTM is enabled for the VM
+ "0x0c0330": [".//os_type[text()='Windows OS']", "d3hot_reset"],
}
def __init__(self, vm_scenario_etree):
@@ -338,13 +338,6 @@ def generate_for_one_vm(board_etree, hv_scenario_etree, vm_scenario_etree, vm_id
bus = int(m.group(1), 16)
dev = int(m.group(2), 16)
func = int(m.group(3), 16)
- device_node = eval_xpath(board_etree,
- f"//bus[@type='pci' and @address='{hex(bus)}']/device[@address='hex((dev << 16) | func)']")
- if device_node and \
- eval_xpath(device_node, "class/text()") == "0x030000" and \
- eval_xpath(device_node, "resource[@type='memory']") is None:
- script.add_passthru_device(bus, dev, func, options="igd-vf")
- else:
script.add_passthru_device(bus, dev, func)
###
