acrn-config: Add d3hot_reset sub-parameter for passthrough device
Add d3hot_reset sub-parameter if passthrough USB device for WaaG. Tracked-On: #4047 Signed-off-by: Wei Liu <weix.w.liu@intel.com>
This commit is contained in:
parent
5d6f43d3da
commit
3daf277c86
|
@ -416,8 +416,11 @@ def set_dm_pt(names, sel, vmid, config):
|
||||||
uos_type = names['uos_types'][vmid]
|
uos_type = names['uos_types'][vmid]
|
||||||
|
|
||||||
if sel.bdf['usb_xdci'][vmid] and sel.slot['usb_xdci'][vmid]:
|
if sel.bdf['usb_xdci'][vmid] and sel.slot['usb_xdci'][vmid]:
|
||||||
print(' -s {},passthru,{}/{}/{} \\'.format(sel.slot["usb_xdci"][vmid], sel.bdf["usb_xdci"][vmid][0:2],\
|
sub_attr = ''
|
||||||
sel.bdf["usb_xdci"][vmid][3:5], sel.bdf["usb_xdci"][vmid][6:7]), file=config)
|
if uos_type == "WINDOWS":
|
||||||
|
sub_attr = ',d3hot_reset'
|
||||||
|
print(' -s {},passthru,{}/{}/{}{} \\'.format(sel.slot["usb_xdci"][vmid], sel.bdf["usb_xdci"][vmid][0:2],\
|
||||||
|
sel.bdf["usb_xdci"][vmid][3:5], sel.bdf["usb_xdci"][vmid][6:7], sub_attr), file=config)
|
||||||
|
|
||||||
# pass through audio/audio_codec
|
# pass through audio/audio_codec
|
||||||
if sel.bdf['audio'][vmid]:
|
if sel.bdf['audio'][vmid]:
|
||||||
|
|
Loading…
Reference in New Issue