x86: MSR_SPEC_CTRL support for SVM guests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 17 repliesIn review
- v18 patches 19 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | x86/cpuid: Advertise SSB_NO to guests by defaultxen/ | +1 | 4 replies | |
| 2/9 | x86/spec-ctrl: Drop use_spec_ctrl booleanxen/ | +8 | 0 replies | |
| 3/9 | x86/spec-ctrl: Introduce new has_spec_ctrl booleanxen/ | +11 | 0 replies | |
| 4/9 | x86/spec-ctrl: Don't use spec_ctrl_{enter,exit}_idle() for S3xen/ | +3 | 4 replies | |
| 5/9 | x86/spec-ctrl: Record the last write to MSR_SPEC_CTRLxen/ xen/ xen/ +3 more | +24 | 2 replies | |
| 6/9 | x86/spec-ctrl: Use common MSR_SPEC_CTRL logic for AMDxen/ xen/ xen/ +2 more | +30 | 1 reply | |
| 7/9 | x86/svm: VMEntry/Exit logic for MSR_SPEC_CTRLxen/ xen/ xen/ +1 more | +46 | 9 replies | |
| 8/9 | x86/msr: AMD MSR_SPEC_CTRL infrastructurexen/ xen/ | +14 | 0 replies | |
| 9/9 | x86/cpuid: Enable MSR_SPEC_CTRL in SVM guests by defaultxen/ xen/ xen/ +1 more | +33 | 2 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | R-b |
| 5/9 | R-b |
| 6/9 | R-b |
| 7/9 | R-b R-b |
| 8/9 | R-b |
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/9] x86: MSR_SPEC_CTRL support for SVM guests
Fixes/extensions to allow HVM guests to use AMD hardware MSR_SPEC_CTRL facilities.
No PV support yet - that will require some substantially more careful unpicking of the PV entry/exit asm.
Andrew Cooper (9):
x86/cpuid: Advertise SSB_NO to guests by default x86/spec-ctrl: Drop use_spec_ctrl boolean x86/spec-ctrl: Introduce new has_spec_ctrl boolean x86/spec-ctrl: Don't use spec_ctrl_{enter,exit}_idle() for S3 x86/spec-ctrl: Record the last write to MSR_SPEC_CTRL x86/spec-ctrl: Use common MSR_SPEC_CTRL logic for AMD x86/svm: VMEntry/Exit logic for MSR_SPEC_CTRL x86/msr: AMD MSR_SPEC_CTRL infrastructure x86/cpuid: Enable MSR_SPEC_CTRL in SVM guests by default
xen/arch/x86/acpi/power.c | 8 +++- xen/arch/x86/cpu/amd.c | 2 +- xen/arch/x86/cpuid.c | 16 +++++-- xen/arch/x86/hvm/svm/entry.S | 12 +++--- xen/arch/x86/hvm/svm/svm.c | 40 +++++++++++++++++ xen/arch/x86/include/asm/current.h | 2 +- xen/arch/x86/include/asm/hvm/svm/svm.h | 3 ++ xen/arch/x86/include/asm/msr.h | 9 ++++ xen/arch/x86/include/asm/spec_ctrl_asm.h | 7 +++ xen/arch/x86/msr.c | 8 ++-- xen/arch/x86/setup.c | 5 ++- xen/arch/x86/smpboot.c | 7 ++- xen/arch/x86/spec_ctrl.c | 66 ++++++++++++++++++++--------- xen/include/public/arch-x86/cpufeatureset.h | 18 ++++---- xen/tools/gen-cpuid.py | 14 +++--- 15 files changed, 166 insertions(+), 51 deletions(-)
Signature · 1 line
2.11.0