[PATCHv4 0/3] An updated version of the load_unaligned_zeropad() fix

Kirill A. Shutemov posted 3 patches 3 years, 10 months ago
arch/x86/coco/tdx/tdx.c | 187 +++++++++++++++++++++++++++++-----------
1 file changed, 136 insertions(+), 51 deletions(-)
[PATCHv4 0/3] An updated version of the load_unaligned_zeropad() fix
Posted by Kirill A. Shutemov 3 years, 10 months ago
An updated version of the load_unaligned_zeropad() fix.

v4:
 - Allow unaligned MMIO access, but fail split page accesses;
 - Explicit switch() in ve_instr_len() helper;
 - Update comments;
v3:
 - Rework load_unaligned_zeropad() fix: fail misaligned MMIO accesses
   instead of upfront exception fixups;
 - Add ve_instr_len() helper to wrap access to ve->instr_len;
 - Add Reviewed-by from Sathya;
v2:
 - Clarify RIP adjustments during #VE handling;
 - Fix early #VE handling;
 - Fix comment and commit message;

Kirill A. Shutemov (3):
  x86/tdx: Fix early #VE handling
  x86/tdx: Clarify RIP adjustments in #VE handler
  x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page

 arch/x86/coco/tdx/tdx.c | 187 +++++++++++++++++++++++++++++-----------
 1 file changed, 136 insertions(+), 51 deletions(-)

-- 
2.35.1