From: Andrew Cooper Date: Thu, 5 May 2016 09:29:48 +0000 (+0100) Subject: Reserve space in the GDT for test use X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=18fc6b5ee599548b347e87c0e421c6702af8fdac;p=people%2Froyger%2Fxen-test-framework.git Reserve space in the GDT for test use Currently four entries, although this is an arbitrary choice. Signed-off-by: Andrew Cooper --- diff --git a/include/arch/x86/segment.h b/include/arch/x86/segment.h index 7ac52f9..a251a74 100644 --- a/include/arch/x86/segment.h +++ b/include/arch/x86/segment.h @@ -17,6 +17,8 @@ * 5 - 32bit userspace code * 6 - 32bit userspace data * 7 - TSS (two slots in long mode) + * + * 9-12 - Available for test use */ #define GDTE_CS64_DPL0 1 @@ -28,7 +30,12 @@ #define GDTE_TSS 7 -#define NR_GDT_ENTRIES 9 +#define GDTE_AVAIL0 9 +#define GDTE_AVAIL1 10 +#define GDTE_AVAIL2 11 +#define GDTE_AVAIL3 12 + +#define NR_GDT_ENTRIES 13 /* * HVM guests use the GDT directly.