mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +00:00
acrn-config: add 'cpu_sharing' support for launch config
Add support to parse and get 'cpu_sharing' item value from launch config files, these values are editable by user. Tracked-On: #3854 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -382,7 +382,8 @@ def launch_end(names, args, virt_io, vmid, config):
|
||||
print("", file=config)
|
||||
i += 1
|
||||
|
||||
off_line_cpus(args, vmid, uos_type, config)
|
||||
if args['cpu_sharing'][vmid] == "Disabled":
|
||||
off_line_cpus(args, vmid, uos_type, config)
|
||||
|
||||
uos_launch(names, args, virt_io, vmid, config)
|
||||
|
||||
|
Reference in New Issue
Block a user