Skip to content

Commit

Permalink
tdx-compliance: enhancement
Browse files Browse the repository at this point in the history
    1. Code improvement for BM/tdx-compliance/tests-trigger-cpuid.sh.

    Signed-off-by: Haoliang Zhu <[email protected]>
  • Loading branch information
haoliang-Zhu committed Aug 2, 2024
1 parent 19f2bda commit 9a493df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BM/tdx-compliance/tests-trigger-cpuid.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
##!/bin/bash
# Some examples on how to trigger the cpuid and capture #VE.
# Register the kretprobe.
echo kretprobe > /sys/kernel/debug/tdx/tdx-tests
Expand All @@ -6,4 +7,4 @@ echo kretprobe > /sys/kernel/debug/tdx/tdx-tests
echo trigger_cpuid 0x1f 0x0 0x0 0x0 > /sys/kernel/debug/tdx/tdx-tests

# Unregister the kretprobe.
echo unregister > /sys/kernel/debug/tdx/tdx-tests
echo unregister > /sys/kernel/debug/tdx/tdx-tests

0 comments on commit 9a493df

Please sign in to comment.