x86: FRED support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/214 patches 26 repliesIn review
- v4 posting 1/20 of 14 patches 0 repliesSuperseded
- v322 patches 24 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 23 patches | 32 replies | Superseded |
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | x86/pv: Don't assume that INT $imm8 instructions are two bytes longxen/ xen/ xen/ | +51 | 4 replies | |
| 2/14 | docs/guest-guide: Describe the PV traps and entrypoints ABIdocs/ docs/ docs/ | +127 | 2 replies | |
| 3/14 | x86/boot: Move gdt_l1e caching out of traps_init()xen/ xen/ xen/ | +13 | 1 reply | |
| 4/14 | x86/boot: Document the ordering dependency of _svm_cpu_up()xen/ xen/ | +17 | 4 replies | |
| 5/14 | x86/traps: Move traps_init() earlier on bootxen/ xen/ xen/ | +17 | 2 replies | |
| 6/14 | x86/traps: Don't configure Supervisor Shadow Stack tokens in FRED modexen/ xen/ | +21 | 2 replies | |
| 7/14 | x86/traps: Introduce FRED entrypointsxen/ xen/ xen/ +1 more | +252 | 0 replies | |
| 8/14 | x86/traps: Enable FRED when requestedxen/ xen/ xen/ | +130 | 2 replies | |
| 9/14 | x86/pv: Adjust GS handling for FRED modexen/ xen/ xen/ +1 more | +56 | 1 reply | |
| 9/14 | x86/pv: Adjust GS handling for FRED modexen/ xen/ xen/ +1 more | +63 | 1 reply | |
| 10/14 | x86/pv: Guest exception handling in FRED modexen/ xen/ xen/ | +92 | 0 replies | |
| 11/14 | x86/pv: ERETU error handlingxen/ xen/ | +128 | 0 replies | |
| 12/14 | x86/pv: System call handling in FRED modexen/ xen/ xen/ +1 more | +172 | 2 replies | |
| 13/14 | x86: Clamp reserved bits in eflags more aggressivelyxen/ xen/ xen/ +2 more | +17 | 1 reply | |
| 13/14 | x86: Clamp bits in eflags more aggressivelyxen/ xen/ xen/ +2 more | +37 | 2 replies | |
| 14/14 | x86/traps: Use fatal_trap() for #UD and #GPxen/ | +2 | 2 replies |
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/14 | R-b |
| 2/14 | A-b |
| 3/14 | R-b |
| 4/14 | R-b |
| 5/14 | R-b |
| 6/14 | R-b |
| 7/14 | R-b |
| 8/14 | R-b |
| 9/14 | R-b R-b |
| 9/14 | R-b R-b |
| 10/14 | R-b |
| 11/14 | R-b |
| 12/14 | R-b |
| 13/14 | R-b |
| 13/14 | R-b |
| 14/14 | A-b A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/14] x86: FRED support
This version of the series has finally run on real hardware, Intel PantherLake. Notable changes:
* Rework TSS setup, given an unpleasant discovery about VT-x.
* Fix an INT $N emulation bug in IDT mode, discovered by XTF testing to check that FRED behaved the same.
* Document aspects of the PV ABI now they've been thoroughly reverse engineered.
By the end of patch 6, PVH dom0 works.
By the end of the series, PV dom0 works.
https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2354867216
Andrew Cooper (14):
x86/pv: Don't assume that INT $imm8 instructions are two bytes long docs/guest-guide: Describe the PV traps and entrypoints ABI x86/boot: Move gdt_l1e caching out of traps_init() x86/boot: Document the ordering dependency of _svm_cpu_up() x86/traps: Move traps_init() earlier on boot
x86/traps: Don't configure Supervisor Shadow Stack tokens in FRED mode x86/traps: Introduce FRED entrypoints
x86/traps: Enable FRED when requested
x86/pv: Adjust GS handling for FRED mode
x86/pv: Guest exception handling in FRED mode
x86/pv: ERETU error handling
x86/pv: System call handling in FRED mode
x86: Clamp reserved bits in eflags more aggressively x86/traps: Use fatal_trap() for #UD and #GP
docs/glossary.rst | 3 + docs/guest-guide/x86/index.rst | 1 + docs/guest-guide/x86/pv-traps.rst | 123 +++++++ xen/arch/x86/cpu/common.c | 4 +- xen/arch/x86/domain.c | 22 +- xen/arch/x86/hvm/domain.c | 4 +- xen/arch/x86/hvm/svm/svm.c | 16 + xen/arch/x86/include/asm/asm_defns.h | 63 ++++ xen/arch/x86/include/asm/current.h | 3 + xen/arch/x86/include/asm/domain.h | 2 + xen/arch/x86/include/asm/hypercall.h | 2 - xen/arch/x86/include/asm/pv/traps.h | 2 + xen/arch/x86/include/asm/traps.h | 2 + xen/arch/x86/include/asm/x86-defns.h | 7 + xen/arch/x86/mm.c | 14 +- xen/arch/x86/pv/dom0_build.c | 2 +- xen/arch/x86/pv/domain.c | 22 +- xen/arch/x86/pv/emul-priv-op.c | 72 +++- xen/arch/x86/pv/iret.c | 8 +- xen/arch/x86/pv/misc-hypercalls.c | 16 +- xen/arch/x86/pv/traps.c | 39 +++ xen/arch/x86/setup.c | 20 +- xen/arch/x86/smpboot.c | 11 + xen/arch/x86/traps-setup.c | 147 +++++++- xen/arch/x86/traps.c | 486 ++++++++++++++++++++++++++- xen/arch/x86/x86_64/Makefile | 1 + xen/arch/x86/x86_64/entry-fred.S | 57 ++++ xen/arch/x86/x86_64/entry.S | 4 +- 28 files changed, 1091 insertions(+), 62 deletions(-) create mode 100644 docs/guest-guide/x86/pv-traps.rst create mode 100644 xen/arch/x86/x86_64/entry-fred.S
Signature · 1 line
2.39.5