From c7f569da305a944f02964dab4d8597e0ba6334c8 Mon Sep 17 00:00:00 2001 From: fuzhongl Date: Tue, 13 Aug 2019 10:31:49 +0800 Subject: [PATCH] HV: switch launch LaaG with OVMF by default OVMF will open source for V1.2, so enable launch LaaG with OVMF. Tracked-On: #3506 Reviewed-by: Binbin Wu Signed-off-by: fuzhongl --- devicemodel/samples/nuc/launch_uos.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/devicemodel/samples/nuc/launch_uos.sh b/devicemodel/samples/nuc/launch_uos.sh index 066bbe39d..53e58b070 100755 --- a/devicemodel/samples/nuc/launch_uos.sh +++ b/devicemodel/samples/nuc/launch_uos.sh @@ -102,16 +102,22 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge \ -s 3,virtio-blk,/home/clear/uos/uos.img \ -s 4,virtio-net,tap0 \ -s 7,virtio-rnd \ + --ovmf ./OVMF.fd \ $logger_setting \ --mac_seed $mac_seed \ - -k /usr/lib/kernel/default-iot-lts2018 \ - -B "root=/dev/vda3 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \ - console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \ - consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \ - i915.enable_hangcheck=0 i915.nuclear_pageflip=1 i915.enable_guc_loading=0 \ - i915.enable_guc_submission=0 i915.enable_guc=0" $vm_name + $vm_name } +#add following cmdline to grub.cfg and update kernel +#when launching LaaG by OVMF +#rw rootwait maxcpus=1 nohpet console=tty0 console=hvc0 +#console=ttyS0 no_timer_check ignore_loglevel +#log_buf_len=16M consoleblank=0 +#tsc=reliable i915.avail_planes_per_pipe="64 448 8" +#i915.enable_hangcheck=0 i915.nuclear_pageflip=1 +#i915.enable_guc_loading=0 +#i915.enable_guc_submission=0 i915.enable_guc=0 + # offline SOS CPUs except BSP before launch UOS for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do online=`cat $i/online`