mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-14 21:39:51 +00:00
acrn-config: fix missing passthru parameter for launch config
If the bus number is not 0, then malloc a virtual slot for the device, meanwhile, it should be added to PT_SLOT for the next query, otherwise the passthru parameter would be lost in the launch script. Tracked-On: #4494 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -578,12 +578,13 @@ def get_slot(bdf_list, dev):
|
||||
slot_fun = str(bus) + ":" + str(slot) + ":" + str(fun)
|
||||
if bus != 0:
|
||||
slot_fun = virtual_dev_slot(dev)
|
||||
PT_SLOT[dev] = slot_fun
|
||||
else:
|
||||
# add already used slot for pass-throught devices to avoid conflict with virtio devices
|
||||
PT_SLOT[dev] = slot
|
||||
|
||||
slot_list[p_id] = slot_fun
|
||||
|
||||
# add already used slot for pass-throught devices to avoid conflict with virtio devices
|
||||
PT_SLOT[dev] = slot
|
||||
|
||||
return slot_list
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user