| /misc/config_tools/static_allocators/ |
| A D | board_capability.py | 15 def create_max_ir_entries(scenario_etree, allocation_etree): argument 22 … acrn_config_utilities.append_node("/acrn-config/hv/MAX_IR_ENTRIES", ir_entries, allocation_etree) 24 def fn(board_etree, scenario_etree, allocation_etree): argument 29 …ties.append_node("/acrn-config/platform/MAX_PCI_BUS_NUM", hex(calc_pci_bus_nums), allocation_etree) 35 …nd_node("/acrn-config/platform/MAX_PCI_BUS_NUM", hex(int(user_def_pci_bus_nums)), allocation_etree) 36 create_max_ir_entries(scenario_etree, allocation_etree)
|
| A D | gpa.py | 345 def create_device_node(allocation_etree, vm_id, devdict): argument 362 def create_vuart_node(allocation_etree, vm_id, devdict): argument 376 def create_native_pci_hole_node(allocation_etree, low_mem, high_mem): argument 422 def allocate_pci_bar(board_etree, scenario_etree, allocation_etree): argument 463 def allocate_io_port(board_etree, scenario_etree, allocation_etree): argument 517 def allocate_log_area(board_etree, scenario_etree, allocation_etree): argument 536 create_device_node(allocation_etree, vm_id, devdict_io_port) 579 def fn(board_etree, scenario_etree, allocation_etree): argument 581 allocate_log_area(board_etree, scenario_etree, allocation_etree) 582 allocate_pci_bar(board_etree, scenario_etree, allocation_etree) [all …]
|
| A D | cpu_freq.py | 88 def alloc_limits(board_etree, scenario_etree, allocation_etree): argument 119 …cpu_node = acrn_config_utilities.append_node(f"//hv/cpufreq/CPU", None, allocation_etree, id = cpu… 162 for alloc_cpu in allocation_etree.xpath("//cpufreq/CPU"): 171 …lvl = int(get_node(f"//cpufreq/CPU[@id={dep_cpu_id}]//limit_highest_lvl/text()", allocation_etree)) 172 …_lvl = int(get_node(f"//cpufreq/CPU[@id={dep_cpu_id}]//limit_lowest_lvl/text()", allocation_etree)) 177 … = int(get_node(f"//cpufreq/CPU[@id={dep_cpu_id}]//limit_highest_pstate/text()", allocation_etree)) 178 …e = int(get_node(f"//cpufreq/CPU[@id={dep_cpu_id}]//limit_lowest_pstate/text()", allocation_etree)) 189 def fn(board_etree, scenario_etree, allocation_etree): argument 190 acrn_config_utilities.append_node("/acrn-config/hv/cpufreq", None, allocation_etree) 191 alloc_limits(board_etree, scenario_etree, allocation_etree)
|
| A D | clos.py | 33 def alloc_clos_index(board_etree, scenario_etree, allocation_etree, mask_list): argument 45 create_clos_node(allocation_etree, get_node("./@id", vm_node), index_list) 47 def create_mask_list_node(board_etree, scenario_etree, allocation_etree, rdt_policy_list): argument 48 allocation_hv_node = get_node(f"//hv", allocation_etree) 50 … allocation_hv_node = acrn_config_utilities.append_node(f"/acrn-config/hv", None, allocation_etree) 81 def fn(board_etree, scenario_etree, allocation_etree): argument 83 create_mask_list_node(board_etree, scenario_etree, allocation_etree, policy_list) 84 alloc_clos_index(board_etree, scenario_etree, allocation_etree, policy_list)
|
| A D | s5_vuart.py | 17 def create_s5_vuart_connection(allocation_etree, service_vm_name, service_vm_port, user_vm_name, us… argument 18 vuart_connections_node = get_node(f"/acrn-config/hv/vuart_connections", allocation_etree) 20 …de = acrn_config_utilities.append_node("/acrn-config/hv/vuart_connections", None, allocation_etree) 74 def alloc_vuart_connection_info(board_etree, scenario_etree, allocation_etree): argument 89 …create_s5_vuart_connection(allocation_etree, service_vm_name, service_vm_port, user_vm_name, user_… 91 def fn(board_etree, scenario_etree, allocation_etree): argument 92 alloc_vuart_connection_info(board_etree, scenario_etree, allocation_etree)
|
| A D | memory_allocator.py | 19 def import_memory_info(cls, board_etree, allocation_etree): argument 21 hv_size = int(get_node("/acrn-config/hv/MEMORY/HV_RAM_SIZE/text()", allocation_etree), 16) 137 def write_hpa_info(allocation_etree, mem_info_list, vm_node_index_list): argument 141 vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree) 163 def alloc_vm_memory(board_etree, scenario_etree, allocation_etree): argument 164 ram_range_info = RamRange().import_memory_info(board_etree, allocation_etree) 166 write_hpa_info(allocation_etree, mem_info_list, vm_node_index_list) 168 def allocate_hugepages(board_etree, scenario_etree, allocation_etree): argument 195 def fn(board_etree, scenario_etree, allocation_etree): argument 196 alloc_vm_memory(board_etree, scenario_etree, allocation_etree) [all …]
|
| A D | bdf.py | 108 def create_device_node(allocation_etree, vm_id, devdict): argument 112 vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree) 114 … vm_node = acrn_config_utilities.append_node("/acrn-config/vm", None, allocation_etree, id = vm_id) 125 def create_igd_sbdf(board_etree, allocation_etree): argument 133 … acrn_config_utilities.append_node("/acrn-config/hv/MISC_CFG/IGD_SBDF", '0xFFFF', allocation_etree) 138 …-config/hv/MISC_CFG/IGD_SBDF", f"{(int(bus, 16) << 8) | (dev << 3) | func:#06x}", allocation_etree) 140 def fn(board_etree, scenario_etree, allocation_etree): argument 141 create_igd_sbdf(board_etree, allocation_etree) 161 create_device_node(allocation_etree, vm_id, devdict)
|
| A D | cpu_affinity.py | 26 def fn(board_etree, scenario_etree, allocation_etree): argument 31 … allocation_service_vm_node = get_node(f"/acrn-config/vm[@id='{vm_id}']", allocation_etree) 33 …_vm_node = acrn_config_utilities.append_node("/acrn-config/vm", None, allocation_etree, id = vm_id)
|
| A D | guest_flags.py | 33 def fn(board_etree, scenario_etree, allocation_etree): argument 36 allocation_vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree) 38 …_vm_node = acrn_config_utilities.append_node("/acrn-config/vm", None, allocation_etree, id = vm_id)
|
| A D | hv_ram.py | 17 def fn(board_etree, scenario_etree, allocation_etree): argument 39 …_utilities.append_node("/acrn-config/hv/MEMORY/HV_RAM_START", hex(hv_start_addr), allocation_etree) 40 …fig_utilities.append_node("/acrn-config/hv/MEMORY/HV_RAM_SIZE", hex(hv_ram_size), allocation_etree)
|
| A D | intx.py | 62 def alloc_vuart_connection_irqs(board_etree, scenario_etree, allocation_etree): argument 99 …create_vuart_irq_node(allocation_etree, get_node("./@id", vm_node), load_order, str(vuart_id), leg… 104 …create_vuart_irq_node(allocation_etree, get_node("./@id", vm_node), load_order, str(vuart_id), leg… 118 create_vuart_irq_node(allocation_etree, service_vm_id, "SERVICE_VM", str(vuart_id), "0") 143 def alloc_device_irqs(board_etree, scenario_etree, allocation_etree): argument 233 vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree) 235 …vm_node = acrn_config_utilities.append_node("/acrn-config/vm", None, allocation_etree, id = str(vm… 254 def fn(board_etree, scenario_etree, allocation_etree): argument 255 alloc_vuart_connection_irqs(board_etree, scenario_etree, allocation_etree) 256 alloc_device_irqs(board_etree, scenario_etree, allocation_etree)
|
| A D | main.py | 28 allocation_etree = lxml.etree.ElementTree(element=fromstring("<acrn-config></acrn-config>")) 32 module.fn(board_etree, scenario_etree, allocation_etree) 33 allocation_etree.write(args.output, pretty_print=True)
|
| A D | pio.py | 12 def fn(board_etree, scenario_etree, allocation_etree): argument
|
| /misc/config_tools/service_vm_config/ |
| A D | serial_config.py | 21 def find_non_standard_uart(vm, scenario_etree, allocation_etree): argument 26 connection_list1 = allocation_etree.xpath(f"//vuart_connection[endpoint/vm_name = '{vmname}']") 45 allocation_etree = parse(args.allocation) 50 vuart_list = find_non_standard_uart(vm, scenario_etree, allocation_etree)
|
| /misc/config_tools/acpi_gen/ |
| A D | bin_gen.py | 50 def asl_to_aml(dest_vm_acpi_path, dest_vm_acpi_bin_path, scenario_etree, allocation_etree, iasl_pat… argument 81 allocation_vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree) 108 def tpm2_acpi_gen(acpi_bin, board_etree, scenario_etree, allocation_etree): argument 130 …a.log_area_minimum_length = int(get_node("//log_area_minimum_length/text()", allocation_etree), 16) 131 …ata.log_area_start_address = int(get_node("//log_area_start_address/text()", allocation_etree), 16) 139 …vm_acpi_path, dest_vm_acpi_bin_path, acpi_bin_name, board_etree, scenario_etree, allocation_etree): argument 186 tpm2_acpi_gen(acpi_bin, board_etree, scenario_etree, allocation_etree) 269 allocation_etree = parse(os.path.join(hypervisor_out, 'configs', 'allocation.xml')) 285 …sl_to_aml(dest_vm_acpi_path, dest_vm_acpi_bin_path, scenario_etree, allocation_etree, args.iasl_pa… 287 …_vm_acpi_path, dest_vm_acpi_bin_path, config+'.bin', board_etree, scenario_etree, allocation_etree)
|
| A D | asl_gen.py | 642 def gen_dsdt(board_etree, scenario_etree, allocation_etree, vm_id, dest_path): argument 675 …oc_node = get_node(f"/acrn-config/vm[@id='{vm_id}']/device[@name='PTDEV_{bdf}']", allocation_etree) 771 def gen_rtct(board_etree, scenario_etree, allocation_etree, vm_id, dest_path): argument 868 allocation_etree = parse(os.path.join(os.path.dirname(board), "configs", "allocation.xml")) 928 …gen_rtct(board_etree, scenario_etree, allocation_etree, vm_id, os.path.join(dest_vm_acpi_path, "rt… 949 …gen_dsdt(board_etree, scenario_etree, allocation_etree, vm_id, os.path.join(dest_vm_acpi_path, "ds…
|
| /misc/config_tools/board_config/ |
| A D | board_c.py | 223 allocation_etree = parse(allocation_dir) 225 clos_list = allocation_etree.xpath(f"//clos_mask[@id = 'l3']/clos/text()") 227 clos_list = allocation_etree.xpath(f"//clos_mask[@id = '{cache_id}']/clos/text()") 289 allocation_etree = parse(acrn_config_utilities.SCENARIO_INFO_FILE) 461 allocation_etree = parse(allocation_dir) 467 limit_node = get_node(f"//cpufreq/CPU[@id='{cpu_id}']/limits", allocation_etree)
|