| /misc/config_tools/scenario_config/ |
| A D | upgrader.py | 87 key = (element.xpath("ancestor::vm/@id").pop(), element.xpath("@id").pop()) 249 use_type = console.xpath("./use_type")[0].text if console.xpath("./use_type") else None 250 …backend_type = console.xpath("./backend_type")[0].text if console.xpath("./backend_type") else None 251 … file_path = console.xpath("./file_path")[0].text if console.xpath("./file_path") else None 271 … monitor_id = display.xpath("./monitor_id")[0].text if display.xpath("./monitor_id") else None 346 …interface_name = network.xpath("./interface_name")[0].text if network.xpath("./interface_name") el… 356 id = input.xpath("./id")[0].text if input.xpath("./id") else None 368 def get_node(cls, element, xpath): argument 369 return next(iter(element.xpath(xpath, namespaces=cls.xpath_ns)), None) 399 old_data_node = old_hv_vm_node.xpath(xpath) [all …]
|
| A D | config_summary.py | 133 return self.scenario_etree.xpath("/acrn-config/vm") 165 vm_pcpu_id_node = vm_node.xpath("cpu_affinity/pcpu/pcpu_id") 180 pcpu_list = list(map(int, self.board_etree.xpath("processors//cpu_id/text()"))) 233 policy_node_list = cache_allocation_node.xpath("POLICY") 271 vc_endpoint_list = vuart_connection.xpath("endpoint") 319 for ivshmem_vm in ivshmem_region_node.xpath("IVSHMEM_VMS/IVSHMEM_VM"): 364 if len(vm_node.xpath("memory/hpa_region")) == 0 and len(vm_node.xpath("memory/size")) == 0: 367 if len(vm_node.xpath("memory/hpa_region")) == 0: 370 hpa_region_list = vm_node.xpath("memory/hpa_region") 375 l3_cache = self.board_etree.xpath(f"caches/cache [@level = '3']") [all …]
|
| A D | schema_slicer.py | 21 def get_node(cls, element, xpath): argument 22 return element.find(xpath, namespaces=cls.xpath_ns) 25 def get_nodes(cls, element, xpath): argument 26 return element.findall(xpath, namespaces=cls.xpath_ns)
|
| A D | scenario_transformer.py | 16 def get_node(cls, element, xpath): argument 17 return element.find(xpath, namespaces=cls.xpath_ns)
|
| /misc/config_tools/static_allocators/ |
| A D | cpu_freq.py | 27 cpus = board_etree.xpath("//processors//thread") 36 is_hybrid = (len(board_etree.xpath("//processors//capability[@id='hybrid']")) != 0) 49 l2cache_nodes = board_etree.xpath("//caches/cache[@level='2']") 51 processors = l2cache.xpath("./processors/processor/text()") 89 cpu_has_eist = (len(board_etree.xpath("//processors//capability[@id='est']")) != 0) 90 cpu_has_hwp = (len(board_etree.xpath("//processors//capability[@id='hwp_supported']")) != 0) 91 …cpu_has_turbo = (len(board_etree.xpath("//processors//capability[@id='turbo_boost_available']")) !… 92 rtvm_cpus = scenario_etree.xpath(f"//vm[vm_type = 'RTVM']//cpu_affinity//pcpu_id/text()") 93 cpus = board_etree.xpath("//processors//thread") 129 mntr = board_etree.xpath("//processors//attribute[@id='max_none_turbo_ratio']/text()") [all …]
|
| A D | intx.py | 66 vm_node_list = scenario_etree.xpath("//vm") 84 vuart_connections = scenario_etree.xpath("//vuart_connection") 86 endpoint_list = connection.xpath(".//endpoint") 107 user_vm_list = scenario_etree.xpath(f"//vm[load_order != 'SERVICE_VM']/name/text()") 110 service_vuart_list = scenario_etree.xpath(f"//endpoint[vm_name = '{service_vm_name}']") 124 for res in device_node.xpath("resource[@type='irq']"): 128 for res in device_node.xpath("resource[@type='interrupt_pin']"): 148 …device_nodes = set(board_etree.xpath("//device[count(resource[@type='irq' or @type='interrupt_pin'… 149 uart_nodes = set(board_etree.xpath("//device[@id='PNP0501']")) 155 for vm in scenario_etree.xpath("//vm"): [all …]
|
| A D | gpa.py | 120 console_vuart = scenario_etree.xpath(f"./console_vuart[base != 'INVALID_PCI_BASE']/@id") 134 legacy_vuart = vm_node.xpath(f".//legacy_vuart[base = 'CONFIG_COM_BASE']/@id") 154 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()") 178 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()") 208 bar_regions = pt_dev_node.xpath(".//resource[@type = 'memory' and @width]") 294 pt_devs = vm_node.xpath(f".//pci_devs/pci_dev/text()") 314 vm_nodes = scenario_etree.xpath(f"//vm[load_order = 'PRE_LAUNCHED_VM']") 426 vm_nodes = scenario_etree.xpath("//vm") 466 vm_nodes = scenario_etree.xpath("//vm") 503 for ssram in board_etree.xpath("//cache/capability[@id='Software SRAM']"): [all …]
|
| A D | guest_flags.py | 34 for vm_node in scenario_etree.xpath("//vm"): 40 if vm_node.xpath(policy.condition): 43 …if board_etree.xpath("//capability[@id = 'hwp_supported']") and get_node(".//own_pcpu/text()", vm_…
|
| A D | memory_allocator.py | 22 for memory_range in board_etree.xpath("/acrn-config/memory/range[not(@id) or @id = 'RAM']"): 35 hpa_node_list = vm_node_info.xpath("./memory/hpa_region/*") 68 vm_node_list = scenario_etree.xpath("/acrn-config/vm[load_order = 'PRE_LAUNCHED_VM']") 173 …- sum(int(i) for i in scenario_etree.xpath("//vm[load_order = 'PRE_LAUNCHED_VM']/memory/hpa_region… 174 - 5 - 300/1024 * len(scenario_etree.xpath("//virtio_devices/gpu"))) 176 post_launch_vms = scenario_etree.xpath("//vm[load_order = 'POST_LAUNCHED_VM']") 185 …post_vms_memory = sum(int(i) for i in scenario_etree.xpath("//vm[load_order = 'POST_LAUNCHED_VM']/…
|
| A D | bdf.py | 30 console_vuart = scenario_etree.xpath(f"./console_vuart[base != 'INVALID_PCI_BASE']/@id") 52 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()") 78 nodes = board_etree.xpath(f"//bus[@type = 'pci' and @address = '0x0']/device[@address]") 102 pt_devs = scenario_etree.xpath(f"//vm[load_order = 'PRE_LAUNCHED_VM']/pci_devs/pci_dev/text()") 142 vm_nodes = scenario_etree.xpath("//vm")
|
| A D | s5_vuart.py | 53 port_list = scenario_etree.xpath(f"//endpoint[vm_name = '{vm_name}']/io_port/text()") 75 user_vm_list = scenario_etree.xpath(f"//vm[load_order != 'SERVICE_VM']")
|
| A D | clos.py | 34 vm_node_list = scenario_etree.xpath("//vm") 37 vcpu_list = scenario_etree.xpath(f"//POLICY[VM = '{vm_name}']/VCPU/text()")
|
| A D | board_capability.py | 25 pci_bus_nums = board_etree.xpath("//bus[@type='pci']/@address")
|
| A D | cpu_affinity.py | 21 pre_all_cpus = etree.xpath("//vm[load_order = 'PRE_LAUNCHED_VM']/cpu_affinity//pcpu_id/text()")
|
| A D | hv_ram.py | 22 max_trusty_vm = len(scenario_etree.xpath(f"//vm[./secure_world_support/text() = 'y']"))
|
| /misc/config_tools/board_inspector/extractors/ |
| A D | helpers.py | 17 def get_node(etree, xpath): argument 18 result = etree.xpath(xpath)
|
| A D | 90-sorting.py | 43 bus_nodes = board_etree.xpath("//bus") 46 device_nodes = board_etree.xpath("//device")
|
| A D | 10-processors.py | 143 if not processors_node.xpath("//capability[@id = 'hwp_supported']"): 151 threads = processors_node.xpath("//thread") 162 threads = processors_node.xpath("//thread")
|
| /misc/config_tools/service_vm_config/ |
| A D | serial_config.py | 25 connection_list0 = scenario_etree.xpath(f"//vuart_connection[endpoint/vm_name = '{vmname}']") 26 connection_list1 = allocation_etree.xpath(f"//vuart_connection[endpoint/vm_name = '{vmname}']") 48 vm_list = scenario_etree.xpath("//vm[load_order = 'SERVICE_VM']")
|
| /misc/config_tools/board_config/ |
| A D | board_c.py | 129 enable = scenario_etree.xpath(f"//RDT_ENABLED/text()") 137 enable = scenario_etree.xpath(f"//CDP_ENABLED/text()") 164 …processor_list = board_etree.xpath(f"//cache[@level = '{cache_level}' and @id = '{cache_id}']/proc… 165 …capability_list = board_etree.xpath(f"//cache[@level = '{cache_level}' and @id = '{cache_id}']/cap… 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()") 292 cache_list = board_etree.xpath(f"//cache[capability/@id = 'CAT' or capability/@id = 'MBA']") 295 cache_list = board_etree.xpath(f"//cache[capability/@id = 'CAT' and @level = '2']") 306 cache_list = board_etree.xpath(f"//cache[capability/@id = 'CAT' and @level = '3']") 317 cache_list = board_etree.xpath(f"//cache[capability/@id = 'MBA']") [all …]
|
| /misc/config_tools/static_allocators/lib/ |
| A D | lib.py | 99 ivshmem_regions = etree.xpath("//IVSHMEM_REGION") 109 shm_vm_list = ivshmem_regions[idx].xpath(".//IVSHMEM_VM") 120 ivshmem_vms = etree.xpath("//IVSHMEM_VM")
|
| /misc/config_tools/library/ |
| A D | rdt.py | 139 vm_list = scenario_etree.xpath("//POLICY/VM") 170 …policy_list = scenario_etree.xpath(f"//POLICY[VM = '{policy_owner.vm_name}' and VCPU = '{policy_ow… 172 …data_list = scenario_etree.xpath(f"//POLICY[VM = '{policy_owner.vm_name}' and VCPU = '{policy_owne… 173 …code_list = scenario_etree.xpath(f"//POLICY[VM = '{policy_owner.vm_name}' and VCPU = '{policy_owne… 190 cache2_id_list = scenario_etree.xpath("//CACHE_ALLOCATION[CACHE_LEVEL = 2]/CACHE_ID/text()")
|
| A D | acrn_config_utilities.py | 196 def count_nodes(xpath, etree): argument 197 return int(etree.xpath(f"count({xpath})")) 199 def get_node(xpath, etree): argument 200 result = etree.xpath(f"{xpath}") 204 def update_text(xpath, value, etree, overwrite=False): argument 205 result = etree.xpath(f"{xpath}") 210 def append_node(xpath, value, etree, **attribute): argument 212 parts = xpath.split("/") 216 result = etree.xpath("/".join(parts[:-ancestor_level]))
|
| /misc/config_tools/launch_config/ |
| A D | launch_cfg_gen.py | 22 def eval_xpath(element, xpath, default_value=None): argument 23 return next(iter(element.xpath(xpath)), default_value) 26 def eval_xpath_all(element, xpath): argument 27 return element.xpath(xpath) 77 if class_code.startswith(k) and vm_scenario_etree.xpath(v[0]):
|
| /misc/config_tools/board_inspector/inspectorlib/ |
| A D | mmio.py | 9 resources = etree.xpath("//resources/mmio")
|