|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/boot: Further minor GDT corrections
On 19.08.2019 15:42, Andrew Cooper wrote: gdt_boot_descr and gdt_48 disagree on how long trampoline_gdt is. Introduce an end label and have the linker calculate the size, rather than hard coding it. Also, just as with c/s af292b41e9, there is no point forcing the CPU to set Access bits. Fix all remaining GDTs in Xen. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Wei Liu <wl@xxxxxxx> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx> The trampoline GDT access bits were actually noticed when trying to clean up our boot time pagetables and map the trampoline read-only. --- xen/arch/x86/boot/head.S | 2 +- xen/arch/x86/boot/trampoline.S | 15 ++++++++------- xen/arch/x86/x86_64/kexec_reloc.S | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index 26b680521d..9fdb9b3954 100644 --- a/xen/arch/x86/boot/head.S +++ b/xen/arch/x86/boot/head.S @@ -129,7 +129,7 @@ multiboot2_header:.word 0 With the typo here fixed Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> But may I talk you into ... ... introducing a similar "end" label here and using it at compat_mode_gdt_desc (the R-b above stands with that change)? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |