Skip to content

Enable CET userspace support

Yang Weijiang kvm qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

1. Added supervisor CET states support.
2. Consolidated all CET states in a struct of vmstate.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/i386: Enable XSAVES support for CET statestarget/i386/cpu.c target/i386/cpu.h+59 -90 replies
2/4target/i386: Add CET MSRs access interfacetarget/i386/cpu.h target/i386/kvm/kvm.c+77 -00 replies
3/4target/i386: Add CET states to vmstatetarget/i386/machine.c+28 -00 replies
4/4target/i386: Advertise CET related flags in feature wordstarget/i386/cpu.c+5 -40 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] Enable CET userspace support

CET virtualization requires VMM userspace setup for CET feature bits enumeration, this series enables all related settings.

Guest CET user and kernel mode SHSTK/IBT are both supported.

Changes in v2:
1. Added supervisor CET states support.
2. Consolidated all CET states in a struct of vmstate.

v1 link:
https://lore.kernel.org/all/[email protected]/

Yang Weijiang (4):
target/i386: Enable XSAVES support for CET states target/i386: Add CET MSRs access interface target/i386: Add CET states to vmstate target/i386: Advertise CET related flags in feature words

 target/i386/cpu.c     | 54 +++++++++++++++++++++++++++++----------
 target/i386/cpu.h     | 41 ++++++++++++++++++++++++++++++
 target/i386/kvm/kvm.c | 59 +++++++++++++++++++++++++++++++++++++++++++
 target/i386/machine.c | 28 ++++++++++++++++++++
 4 files changed, 169 insertions(+), 13 deletions(-)

base-commit: a342ce9dfeed8088c426e5d51d4a7e47f3764b84

Signature · 1 line
2.27.0