Skip to content

Enable CET support for guest

Yang Weijiang kvm qemu-devel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 0 repliesNew
  2. v76 patches 2 repliesSuperseded
  3. v66 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v54 patches2 repliesSuperseded

Changes in v8 from the cover letter

- Extended xsave_area_size() to accommodate compacted format size calculation.
- Added CPUID(0xD,1).EBX assigment per maintain's feedback.
- Changed XSS field check and added more comments to make things clearer.
- Other ajustment per maintainer's review feedback.
- Rebased to 6.0.0.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target/i386: Change XSAVE related feature-word namestarget/i386/cpu.c target/i386/cpu.h+14 -140 replies
2/6target/i386: Enable XSS feature CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+66 -110 replies
3/6target/i386: Enable XSAVES support for CET statestarget/i386/cpu.c target/i386/cpu.h+62 -10 replies
4/6target/i386: Add user-space MSR access interface for CETtarget/i386/cpu.h target/i386/kvm/kvm.c+90 -00 replies
5/6target/i386: Add CET state support for guest migrationtarget/i386/machine.c+161 -00 replies
6/6target/i386: Advise CET bits in CPU/MSR feature wordstarget/i386/cpu.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 0/6] Enable CET support for guest

Control-flow Enforcement Technology (CET) provides protection against Return/Jump-Oriented Programming (ROP/JOP). It includes two features:
Shadow Stack(SHSTK) and Indirect Branch Tracking(IBT).
This patch series is to enable CET related CPUID report, XSAVES/XRSTORS support and MSR access etc. for guest.

Change in v8:
- Extended xsave_area_size() to accommodate compacted format size calculation.
- Added CPUID(0xD,1).EBX assigment per maintain's feedback.
- Changed XSS field check and added more comments to make things clearer.
- Other ajustment per maintainer's review feedback.
- Rebased to 6.0.0.

v7 patch:
https://lore.kernel.org/kvm/[email protected]

CET KVM patches:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git/log/?h=intel

CET kernel patches:
https://lkml.kernel.org/r/[email protected]

Yang Weijiang (6):
target/i386: Change XSAVE related feature-word names target/i386: Enable XSS feature CPUID enumeration target/i386: Enable XSAVES support for CET states target/i386: Add user-space MSR access interface for CET target/i386: Add CET state support for guest migration target/i386: Advise CET bits in CPU/MSR feature words

 target/i386/cpu.c     | 138 +++++++++++++++++++++++++++++-------
 target/i386/cpu.h     |  52 +++++++++++++-
 target/i386/kvm/kvm.c |  72 +++++++++++++++++++
 target/i386/machine.c | 161 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 395 insertions(+), 28 deletions(-)
Signature · 1 line
2.26.2