mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
acrn-config: avoid conflict slot for launch config
The slot in launch config would be conflicted when the same bdf is selected from webUI. This patch do the below condition to avoid such case: 1. Add the bdf check for pass-through devices. 2. Use the bus:dev:func as passthru device option in launch config. v1-v2: 1. If BUS of PCI device for passthru is not 0, then alloc a virtual slot for it. Tracked-On: #4312 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -145,6 +145,7 @@ class PthruSelected():
|
||||
|
||||
# check connections between several pass-through devices
|
||||
launch_cfg_lib.pt_devs_check_audio(self.bdf['audio'], self.bdf['audio_codec'])
|
||||
launch_cfg_lib.bdf_duplicate_check(self.bdf)
|
||||
|
||||
|
||||
class VirtioDeviceSelect():
|
||||
|
Reference in New Issue
Block a user