Skip to content

Commit

Permalink
add KVM test for lam and lass.
Browse files Browse the repository at this point in the history
  • Loading branch information
gxl8483336 authored and xhao22 committed Oct 12, 2024
1 parent 70fc9e6 commit 0506d29
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
4 changes: 2 additions & 2 deletions BM/lass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ LASS achieves this by preventing memory loads/stores to user space memory in sup
```
make
# To run a specific case
./lam -t <testcase_id>
(for example, cpuid) ./lass m
./lass <Case ID>
(for example, add maps) ./lass m
```
Test results (PASS or FAIL) will be printed out.

Expand Down
24 changes: 16 additions & 8 deletions BM/lass/tests
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# This file collects the LASS cases
lass m # Test get vsyscall address maps.[negative]
lass d # Test execute vsyscall addr 0xffffffffff600000.[negative]
lass g # Test call vsyscall
lass t # Test call vsyscall api gettimeofday
lass r # Test read vsyscall 0xffffffffff600000.[negative]
lass i # Test read random kernel space.[negative]
lass v # Test process_vm_readv read address 0xffffffffff600000.[negative]
lass e # Test vsyscall emulation.
# Test get vsyscall address maps.[negative]
lass m
# Test execute vsyscall addr 0xffffffffff600000.[negative]
lass d
# Test call vsyscall
lass g
# Test call vsyscall api gettimeofday
lass t
# Test read vsyscall 0xffffffffff600000.[negative]
lass r
# Test read random kernel space.[negative]
lass i
# Test process_vm_readv read address 0xffffffffff600000.[negative]
lass v
# Test vsyscall emulation.
lass e
4 changes: 4 additions & 0 deletions KVM/qemu/feature_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
variants:
- cmpccxadd:
feature_dir_names = "cmpccxadd"
- lam:
feature_dir_names = "lam"
- lass:
feature_dir_names = "lass"
- umip:
feature_dir_names = "umip"
variants:
Expand Down

0 comments on commit 0506d29

Please sign in to comment.