acrn-config: refine slot assignment for launch config

When passthrough device for VM, if there is no fun0 of the slot was passed
in, PCI expansion card can not respond as a device, it must implement at
least function number 0.

Tracked-On: #4641
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
2020-04-27 09:26:14 +08:00
committed by wenlingz
parent eb47f8f5cb
commit d661d444c6
2 changed files with 29 additions and 2 deletions

View File

@@ -151,6 +151,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)
launch_cfg_lib.check_slot(self.slot)
class VirtioDeviceSelect():