-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Xuelian Guo <[email protected]>
- Loading branch information
1 parent
9b9c541
commit 803d102
Showing
5 changed files
with
1,381 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# Copyright (c) 2024 Intel Corporation. | ||
|
||
CC = gcc | ||
CFLAGS = -D_GNU_SOURCE -lpthread -m64 -O2 | ||
TARGET = lam | ||
|
||
$(TARGET): lam.c | ||
$(CC) $(CFLAGS) -o $@ $< | ||
|
||
clean: | ||
rm -f $(TARGET) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# LAM | ||
|
||
## Description | ||
Linear Address Masking (LAM) is a new feature in the latest Intel platform Sierra Forest. | ||
LAM modifies the checking that is applied to 64-bit linear addresses, allowing software | ||
to use of the untranslated address bits for metadata. | ||
This test suite provides basic functional check to ensure LAM works properly. | ||
|
||
## Usage | ||
``` | ||
make | ||
# To run a specific case | ||
./lam -t <testcase_id> | ||
(for example, cpuid) ./lam -t 0x80 | ||
``` | ||
Test results (PASS or FAIL) will be printed out. | ||
|
||
## Testcase ID | ||
| Case ID | Case Name | | ||
| ------ | ---------------------------- | | ||
| 0x1 | malloc | | ||
| 0x2 | max_bits | | ||
| 0x4 | mmap | | ||
| 0x8 | syscall | | ||
| 0x10 | io_uring | | ||
| 0x20 | inherit | | ||
| 0x40 | pasid | | ||
| 0x80 | cpuid | |
Oops, something went wrong.