acrn-config: add virtio-input support for launch

config

Add support to parse and get 'virtio-input' item value from launch config
files, these values are editable by user.

Tracked-On: #4163
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-11-26 19:28:35 +08:00
committed by wenlingz
parent 9fc32043aa
commit bc9b6d1b0c
5 changed files with 54 additions and 20 deletions

View File

@@ -142,3 +142,13 @@ class PthruSelected():
launch_cfg_lib.pt_devs_check(self.bdf["audio_codec"], self.vpid["audio_codec"], "audio_codec")
launch_cfg_lib.pt_devs_check(self.bdf["wifi"], self.vpid["wifi"], "wifi")
launch_cfg_lib.pt_devs_check(self.bdf["bluetooth"], self.vpid["bluetooth"], "bluetooth")
class VirtioDeviceSelect():
dev = {}
def __init__(self, launch_info):
self.launch_info = launch_info
def get_virtio(self):
self.dev["input"] = launch_cfg_lib.get_leaf_tag_map(self.launch_info, "virtio_devices", "input")