Skip to content

Commit

Permalink
[tdx-guest] Test Enhance: bypass console impact on kexec test
Browse files Browse the repository at this point in the history
currently there are issues will fail kexec test flow in case of
console=hvc0 and console=ttyS0, bypass any of it by console=

[Test Components] tdx-guest
[Test Types] func
[Supported Devices] spr,emr,gnr,srf

Signed-off-by: Hongyu Ning <[email protected]>
  • Loading branch information
hongyuni committed Sep 5, 2024
1 parent f6a93a4 commit 389b6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BM/tdx-guest/tdx_kexec_test_entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ sleep 3
# prepare and trigger kexec in target TDX guest OS image
if [[ "$MEM_DRAIN" == "yes" ]]; then
./guest-test/guest.test_launcher.sh -v "$VCPU" -s 1 -m "$MEM" -d "$DEBUG" -t tdx -e tdx-guest -f tdx \
-x TD_KEXEC_MEM_DRAIN_"$VCPU"C_"$MEM"G_CYCLE_"$KEXEC_CNT" -c "accept_memory=lazy crashkernel=1G-4G:256M,4G-64G:384M,64G-:512M" -p off -o yes -k "$KEXEC_CNT" || \
-x TD_KEXEC_MEM_DRAIN_"$VCPU"C_"$MEM"G_CYCLE_"$KEXEC_CNT" -c "console= accept_memory=lazy" -p off -o yes -k "$KEXEC_CNT" || \
die "Failed on kexec test"
elif [[ "$MEM_DRAIN" == "no" ]]; then
./guest-test/guest.test_launcher.sh -v "$VCPU" -s 1 -m "$MEM" -d "$DEBUG" -t tdx -e tdx-guest -f tdx \
-x TD_KEXEC_NO_MEM_DRAIN_"$VCPU"C_"$MEM"G_CYCLE_"$KEXEC_CNT" -c "accept_memory=lazy" -p off -o no -k "$KEXEC_CNT" || \
-x TD_KEXEC_NO_MEM_DRAIN_"$VCPU"C_"$MEM"G_CYCLE_"$KEXEC_CNT" -c "console= accept_memory=lazy" -p off -o no -k "$KEXEC_CNT" || \
die "Failed on kexec test"
else
die "Invalid memory drained option"
Expand Down

0 comments on commit 389b6ba

Please sign in to comment.