Steven Rostedt
2007-Apr-18 13:02 UTC
[RFC/PATCH PV_OPS X86_64 05/17] pravirt_ops - segments
plain text document attachment (xx-paravirt-segment-header.patch) Added two new segments for the hypervisor. Signed-off-by: Steven Rostedt srostedt@redhat.com Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Index: clean-start/include/asm-x86_64/segment.h ==================================================================--- clean-start.orig/include/asm-x86_64/segment.h +++ clean-start/include/asm-x86_64/segment.h @@ -37,8 +37,14 @@ #define GS_TLS_SEL ((GDT_ENTRY_TLS_MIN+GS_TLS)*8 + 3) #define FS_TLS_SEL ((GDT_ENTRY_TLS_MIN+FS_TLS)*8 + 3) +#define __HV_CS 0x80 /* 16*8 */ +#define __HV_DS 0x88 /* 17*8 */ + +#define GDT_ENTRY_HV_CS 16 +#define GDT_ENTRY_HV_DS 17 + #define IDT_ENTRIES 256 -#define GDT_ENTRIES 16 +#define GDT_ENTRIES 18 #define GDT_SIZE (GDT_ENTRIES * 8) #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) --
* Steven Rostedt (rostedt@goodmis.org) wrote:> --- clean-start.orig/include/asm-x86_64/segment.h > +++ clean-start/include/asm-x86_64/segment.h > @@ -37,8 +37,14 @@ > #define GS_TLS_SEL ((GDT_ENTRY_TLS_MIN+GS_TLS)*8 + 3) > #define FS_TLS_SEL ((GDT_ENTRY_TLS_MIN+FS_TLS)*8 + 3) > > +#define __HV_CS 0x80 /* 16*8 */ > +#define __HV_DS 0x88 /* 17*8 */ > + > +#define GDT_ENTRY_HV_CS 16 > +#define GDT_ENTRY_HV_DS 17 > +Hmm, this one is not technically needed for pv_ops, looks like lguest bleeding in ;-)