mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
misc: refine vuart connection
We have redesign the vuart and the UI for user, so the config tool should change the schema and xform for the new xml, then change the static_allocators to alloc irq and io_port for new connection. This patch add a new vuart connection type and change the xforms to adapter the new type. Tracked-On: #6690 Reviewed-by: Junjie Mao <junjie.mao@intel.com> Signed-off-by: Chenli Wei <chenli.wei@linux.intel.com>
This commit is contained in:
@@ -27,15 +27,10 @@ def find_unused_bdf(used_bdf):
|
||||
|
||||
def insert_vuart_to_dev_dict(scenario_etree, devdict, used):
|
||||
console_vuart = scenario_etree.xpath(f"./console_vuart[base != 'INVALID_PCI_BASE']/@id")
|
||||
communication_vuarts = scenario_etree.xpath(f".//communication_vuart[base != 'INVALID_PCI_BASE']/@id")
|
||||
for vuart_id in console_vuart:
|
||||
free_bdf = find_unused_bdf(used)
|
||||
devdict[f"{VUART}_{vuart_id}"] = free_bdf
|
||||
used.append(free_bdf)
|
||||
for vuart_id in communication_vuarts:
|
||||
free_bdf = find_unused_bdf(used)
|
||||
devdict[f"{VUART}_{vuart_id}"] = free_bdf
|
||||
used.append(free_bdf)
|
||||
|
||||
def insert_ivsheme_to_dev_dict(scenario_etree, devdict, vm_id, used):
|
||||
shmem_regions = lib.lib.get_ivshmem_regions_by_tree(scenario_etree)
|
||||
|
||||
Reference in New Issue
Block a user