This is the next chunk of work in order to support FRED. https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1711534693 https://cirrus-ci.com/build/6031265616363520
Andrew Cooper (8): x86/regs: Fold x86_64/regs.h into it's single includer x86/traps: Rework register state printing to use a struct x86/traps: Avoid OoB accesses to print the data selectors Revert "x86/traps: 'Fix' safety of read_registers() in #DF path" x86/domctl: Stop using XLAT_cpu_user_regs() x86/pv: Store the data segment selectors outside of cpu_user_regs x86/public: Split the struct cpu_user_regs type x86: Drop the vm86 segments selectors from struct cpu_user_regs xen/arch/x86/cpu/common.c | 10 +- xen/arch/x86/domain.c | 96 ++++++++++++------ xen/arch/x86/domctl.c | 42 +++++++- xen/arch/x86/include/asm/cpu-user-regs.h | 65 +++++++++++++ xen/arch/x86/include/asm/current.h | 11 ++- xen/arch/x86/include/asm/domain.h | 2 + xen/arch/x86/include/asm/hvm/hvm.h | 4 - xen/arch/x86/include/asm/regs.h | 28 ++++-- xen/arch/x86/include/asm/x86_64/regs.h | 28 ------ xen/arch/x86/pv/dom0_build.c | 6 +- xen/arch/x86/traps.c | 2 +- xen/arch/x86/x86_64/asm-offsets.c | 2 +- xen/arch/x86/x86_64/traps.c | 119 +++++++++++++---------- xen/arch/x86/x86_emulate/private.h | 2 + xen/include/public/arch-x86/xen-x86_32.h | 8 ++ xen/include/public/arch-x86/xen-x86_64.h | 8 ++ xen/include/public/arch-x86/xen.h | 6 ++ xen/include/xlat.lst | 2 - 18 files changed, 301 insertions(+), 140 deletions(-) create mode 100644 xen/arch/x86/include/asm/cpu-user-regs.h delete mode 100644 xen/arch/x86/include/asm/x86_64/regs.h -- 2.39.5