Skip to content

x86: Support PKS

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/prot-key: Enumeration for Protection Key Supervisortools/libs/light/libxl_cpuid.c tools/misc/xen-cpuid.c xen/arch/x86/include/asm/msr-index.h +2 more+6 -11 reply
2/6x86/prot-key: Split PKRU infrastructure out of asm/processor.hxen/arch/x86/include/asm/processor.h xen/arch/x86/include/asm/prot-key.h xen/arch/x86/mm/guest_walk.c +1 more+53 -413 replies
3/6x86/hvm: Context switch MSR_PKRSxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/include/asm/msr.h +1 more+68 -02 replies
4/6x86/hvm: Enable guest access to MSR_PKRSxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/msr.c+23 -01 reply
5/6x86/pagewalk: Support PKSxen/arch/x86/include/asm/guest_pt.h xen/arch/x86/include/asm/hvm/hvm.h xen/arch/x86/mm/guest_walk.c+13 -41 reply
6/6x86/hvm: Support PKSxen/arch/x86/cpuid.c xen/arch/x86/hvm/hvm.c xen/include/public/arch-x86/cpufeatureset.h+13 -22 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/6R-b
2/6R-b
3/6
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] x86: Support PKS

I found a spare half hour, and this turned out to go very smoothly.

It's tentatively RFC right now, because I'm still adding PKS support to the XTF comprehensive pagewalk test, but the series is definitely fit for review at this point.

Andrew Cooper (6):
x86/prot-key: Enumeration for Protection Key Supervisor x86/prot-key: Split PKRU infrastructure out of asm/processor.h x86/hvm: Context switch MSR_PKRS
x86/hvm: Enable guest access to MSR_PKRS x86/pagewalk: Support PKS
x86/hvm: Support PKS

 tools/libs/light/libxl_cpuid.c              |  1 +
 tools/misc/xen-cpuid.c                      |  2 +-
 xen/arch/x86/cpuid.c                        |  9 +++
 xen/arch/x86/hvm/hvm.c                      |  8 ++-
 xen/arch/x86/hvm/vmx/vmx.c                  | 14 +++++
 xen/arch/x86/include/asm/guest_pt.h         |  5 ++
 xen/arch/x86/include/asm/hvm/hvm.h          |  3 +
 xen/arch/x86/include/asm/msr-index.h        |  2 +
 xen/arch/x86/include/asm/msr.h              |  8 +++
 xen/arch/x86/include/asm/processor.h        | 38 ------------
 xen/arch/x86/include/asm/prot-key.h         | 93 +++++++++++++++++++++++++++++
 xen/arch/x86/include/asm/x86-defns.h        |  1 +
 xen/arch/x86/mm/guest_walk.c                | 16 +++--
 xen/arch/x86/msr.c                          | 17 ++++++
 xen/arch/x86/x86_emulate.c                  |  2 +
 xen/include/public/arch-x86/cpufeatureset.h |  1 +
 16 files changed, 174 insertions(+), 46 deletions(-)
 create mode 100644 xen/arch/x86/include/asm/prot-key.h
Signature · 1 line
2.11.0