Skip to content

Commit 9e4fd1f

Browse files
lishua1xwenlingz
authored andcommitted
config-tools: modify sample launch scripts
Remove the Power Management ('pm') parameters from the sample launch scripts. and update the comments, At most one VM is allowed to use "--pm_notify_channel uart" at a time, since only one socket connection to SOS life_mngr is allowed. Remove it by default and allow user to add on demand Tracked-On: #5736 Signed-off-by: li shuang <[email protected]>
1 parent b33c418 commit 9e4fd1f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

misc/config_tools/data/sample_launch_scripts/nuc/launch_hard_rt_vm.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Copyright (C) 2019 Intel Corporation.
33
# SPDX-License-Identifier: BSD-3-Clause
4-
# This is an example of launch script for KBL NUC7i7DNH, may need to revise for other platform.
4+
# This is an example, if use different HW,the script must be adapted to match the BDF on the actual HW platform
55

66
# pci devices for passthru
77
declare -A passthru_vpid
@@ -39,9 +39,6 @@ echo ${passthru_vpid["nvme"]} > /sys/bus/pci/drivers/pci-stub/new_id
3939
echo ${passthru_bdf["nvme"]} > /sys/bus/pci/devices/${passthru_bdf["nvme"]}/driver/unbind
4040
echo ${passthru_bdf["nvme"]} > /sys/bus/pci/drivers/pci-stub/bind
4141

42-
# for pm setting
43-
pm_channel="--pm_notify_channel uart "
44-
pm_by_vuart="--pm_by_vuart tty,/dev/ttyS1"
4542

4643

4744
/usr/bin/acrn-dm -A -m $mem_size -s 0:0,hostbridge \
@@ -51,7 +48,6 @@ pm_by_vuart="--pm_by_vuart tty,/dev/ttyS1"
5148
-U 495ae2e5-2603-4d64-af76-d4bc5a8ec0e5 \
5249
-s 2,passthru,02/0/0 \
5350
-s 3,virtio-console,@stdio:stdio_port \
54-
$pm_channel $pm_by_vuart \
5551
--ovmf /usr/share/acrn/bios/OVMF.fd \
5652
hard_rtvm
5753

misc/config_tools/data/sample_launch_scripts/nuc/launch_uos.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ fi
9494
#logger_setting, format: logger_name,level; like following
9595
logger_setting="--logger_setting console,level=4;kmsg,level=3;disk,level=5"
9696

97-
#for pm by vuart setting
98-
pm_channel="--pm_notify_channel uart "
99-
pm_by_vuart="--pm_by_vuart pty,/run/acrn/life_mngr_"$vm_name
100-
pm_vuart_node=" -s 1:0,lpc -l com2,/run/acrn/life_mngr_"$vm_name
10197

10298
#for memsize setting
10399
mem_size=2048M
@@ -110,7 +106,6 @@ acrn-dm -A -m $mem_size -s 0:0,hostbridge \
110106
-s 4,virtio-net,tap0 \
111107
-s 7,virtio-rnd \
112108
--ovmf /usr/share/acrn/bios/OVMF.fd \
113-
$pm_channel $pm_by_vuart $pm_vuart_node \
114109
$logger_setting \
115110
--mac_seed $mac_seed \
116111
$vm_name

0 commit comments

Comments
 (0)