mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
config-tool: append passthrough gpu bdf in hexadecimal format
Fix the format of passthrough gpu bdf of post-launched VM. Tracked-On: #7084 Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
parent
cd4e7786e6
commit
c4381b6d1c
@ -213,10 +213,7 @@ def gpu_pt_arg_set(dm, sel, vmid, config):
|
|||||||
gpu_bdf = sel.bdf["gpu"][vmid]
|
gpu_bdf = sel.bdf["gpu"][vmid]
|
||||||
|
|
||||||
if gpu_bdf:
|
if gpu_bdf:
|
||||||
bus = int(gpu_bdf[0:2], 16)
|
print(' -s 2,passthru,{}/{}/{} \\'.format(gpu_bdf[0:2], gpu_bdf[3:5], gpu_bdf[6:7]), file=config)
|
||||||
dev = int(gpu_bdf[3:5], 16)
|
|
||||||
fun = int(gpu_bdf[6:7], 16)
|
|
||||||
print(' -s 2,passthru,{}/{}/{} \\'.format(bus, dev, fun), file=config)
|
|
||||||
|
|
||||||
|
|
||||||
def log_level_set(user_vm_type, config):
|
def log_level_set(user_vm_type, config):
|
||||||
|
Loading…
Reference in New Issue
Block a user