mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
acrn-config: support passthroug GVT for WaaG by default
Modify launch config tool to support passthroug GVT for WaaG by default. Tracked-On: #4625 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com> Acked-by: Terry Zou <terry.zou@intel.com>
This commit is contained in:
@@ -54,6 +54,7 @@ PM_CHANNEL_DIC = {
|
||||
}
|
||||
|
||||
MOUNT_FLAG_DIC = {}
|
||||
GPU_BDF = "00:02.0"
|
||||
|
||||
|
||||
def usage(file_name):
|
||||
@@ -548,3 +549,13 @@ def bdf_duplicate_check(bdf_dic):
|
||||
return
|
||||
else:
|
||||
bdf_used.append(dev_bdf)
|
||||
|
||||
|
||||
def get_gpu_vpid():
|
||||
|
||||
vpid = ''
|
||||
vpid_lines = board_cfg_lib.get_info(common.BOARD_INFO_FILE, "<PCI_VID_PID>", "</PCI_VID_PID>")
|
||||
for vpid_line in vpid_lines:
|
||||
if GPU_BDF in vpid_line:
|
||||
vpid = vpid_line.split()[2]
|
||||
return vpid
|
||||
|
||||
Reference in New Issue
Block a user