mbox series

[v3,0/2] target/i386: add support for LAM

Message ID 20230721080800.2329-1-binbin.wu@linux.intel.com (mailing list archive)
Headers show
Series target/i386: add support for LAM | expand

Message

Binbin Wu July 21, 2023, 8:07 a.m. UTC
Linear-address masking (LAM) [1], modifies the checking that is applied to
*64-bit* linear addresses, allowing software to use of the untranslated address
bits for metadata and masks the metadata bits before using them as linear 
addresses to access memory.

When the feature is virtualized and exposed to guest, it can be used for 
efficient
address sanitizers (ASAN) implementation and for optimizations in JITs and 
virtual
machines.

[1] Intel ISE https://cdrdv2.intel.com/v1/dl/getContent/671368
    Chapter Linear Address Masking (LAM)

---
Changelog
v3:
- Some change in commit message.
- Add handling of LAM control bits. (Xiaoyao)

v2:
- https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg07842.html


Binbin Wu (1):
  target/i386: add control bits support for LAM

Robert Hoo (1):
  target/i386: add support for LAM in CPUID enumeration

 target/i386/cpu.c | 2 +-
 target/i386/cpu.h | 9 ++++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)