xen/amd: Support for guest MSR_VIRT_SPEC_CTRL support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 41 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | x86/spec-ctrl: Drop the bti= command line optiondocs/ xen/ | +0 | 1 reply | |
| 2/9 | x86/cpuid: Drop the synthetic X86_FEATURE_XEN_IBPBxen/ | +0 | 1 reply | |
| 3/9 | x86/cpuid: Extend the cpuid= command line option to support all named featuresxen/ xen/ | +86 | 2 replies | |
| 4/9 | x86/amd: Introduce CPUID/MSR definitions for per-vcpu SSBD supporttools/ tools/ xen/ +2 more | +23 | 5 replies | |
| 5/9 | x86/amd: Probe for legacy SSBD interfaces on bootxen/ xen/ xen/ +1 more | +68 | 7 replies | |
| 6/9 | x86/amd: Allocate resources to cope with LS_CFG being per-core on Fam17hxen/ | +91 | 7 replies | |
| 7/9 | x86/amd: Support context switching legacy SSBD interfacexen/ xen/ xen/ | +75 | 4 replies | |
| 8/9 | x86/amd: Virtualise MSR_VIRT_SPEC_CTRL for guestsdocs/ xen/ xen/ +4 more | +42 | 6 replies | |
| 9/9 | x86/amd: Offer MSR_VIRT_SPEC_CTRL to guestsxen/ xen/ | +11 | 1 reply |
Reviews trailers per patch
5 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Brian Woods | Jan Beulich |
|---|---|---|
| 1/9 | A-b | |
| 2/9 | R-b | |
| 3/9 | ||
| 4/9 | Reviewd-by | |
| 5/9 | Reviewd-by | |
| 6/9 | R-b | |
| 7/9 | R-b | |
| 8/9 | R-b | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] xen/amd: Support for guest MSR_VIRT_SPEC_CTRL support
This is a lingering TODO item from XSA-263. It adds support AMD's MSR_VIRT_SPEC_CTRL interface, and changes Xen's "boot time global" SSBD setting into a per-vcpu setting.
This can be found on:
git://xenbits.xen.org/people/andrewcoop/xen.git xen-virt-spec-ctrl-v1
The start of the series is some cleanup. It then teaches Xen to recognise the available interfaces (including MSR_VIRT_SPEC_CTRL from a hypervisor), then how to safely context switch the per-core LS_CFG on Fam17h, an finally to expose support to guests.
I've got some further MSR work coming because we have to fix the default-leakiness of MSRs in this range, because a guest becomes unsafe to migrate as soon as it reads any of the pipeline control MSRs.
Andrew Cooper (9):
x86/spec-ctrl: Drop the bti= command line option
x86/cpuid: Drop the synthetic X86_FEATURE_XEN_IBPB
x86/cpuid: Extend the cpuid= command line option to support all named features x86/amd: Introduce CPUID/MSR definitions for per-vcpu SSBD support x86/amd: Probe for legacy SSBD interfaces on boot
x86/amd: Allocate resources to cope with LS_CFG being per-core on Fam17h x86/amd: Support context switching legacy SSBD interface
x86/amd: Virtualise MSR_VIRT_SPEC_CTRL for guests
x86/amd: Offer MSR_VIRT_SPEC_CTRL to guests
docs/misc/xen-command-line.markdown | 47 ++---- tools/libxl/libxl_cpuid.c | 5 + tools/misc/xen-cpuid.c | 4 + xen/arch/x86/cpu/amd.c | 239 +++++++++++++++++++++++++--- xen/arch/x86/cpuid.c | 101 +++++++++--- xen/arch/x86/domain.c | 2 + xen/arch/x86/domctl.c | 1 + xen/arch/x86/hvm/hvm.c | 1 + xen/arch/x86/msr.c | 17 ++ xen/arch/x86/smpboot.c | 3 + xen/arch/x86/spec_ctrl.c | 67 +------- xen/include/asm-x86/cpufeature.h | 6 + xen/include/asm-x86/cpufeatures.h | 2 +- xen/include/asm-x86/msr-index.h | 3 + xen/include/asm-x86/msr.h | 9 ++ xen/include/asm-x86/processor.h | 2 + xen/include/public/arch-x86/cpufeatureset.h | 5 + xen/tools/gen-cpuid.py | 22 ++- 18 files changed, 393 insertions(+), 143 deletions(-)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel