> From: Jan Beulich [mailto:jbeul...@suse.com]
> Sent: Friday, August 9, 2019 6:39 PM
>
> TSS, LDT, and per-CPU entries all can benefit a little from also having
> their selector values defined.
>
> Signed-off-by: Jan Beulich
Reviewed-by: Kevin Tian
On 09.08.2019 13:50, Andrew Cooper wrote:
On 09/08/2019 11:38, Jan Beulich wrote:
--- a/xen/include/asm-x86/desc.h
+++ b/xen/include/asm-x86/desc.h
@@ -36,6 +36,10 @@
#define LDT_ENTRY (TSS_ENTRY + 2)
#define PER_CPU_GDT_ENTRY (LDT_ENTRY + 2)
+#define TSS_SELECTOR (TSS_ENTRY << 3)
On 09/08/2019 11:38, Jan Beulich wrote:
> --- a/xen/include/asm-x86/desc.h
> +++ b/xen/include/asm-x86/desc.h
> @@ -36,6 +36,10 @@
> #define LDT_ENTRY (TSS_ENTRY + 2)
> #define PER_CPU_GDT_ENTRY (LDT_ENTRY + 2)
>
> +#define TSS_SELECTOR (TSS_ENTRY << 3)
> +#define LDT_SELECTOR (
TSS, LDT, and per-CPU entries all can benefit a little from also having
their selector values defined.
Signed-off-by: Jan Beulich
---
v2: New.
--- a/xen/arch/x86/cpu/common.c
+++ b/xen/arch/x86/cpu/common.c
@@ -761,7 +761,7 @@ void load_system_tables(void)
per_cpu(full_gdt_loaded, cpu)