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:
Wei Liu
2019-12-27 10:41:34 +08:00
committed by wenlingz
parent 0427de5ec4
commit 3098c4937b
2 changed files with 32 additions and 6 deletions

View File

@@ -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():