x86/paravirt, 64-bit: make load_gs_index() a paravirt operation
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: xen-devel <xen-devel@lists.xensource.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
fab58420ac
commit
9f9d489a3e
@@ -136,7 +136,7 @@ __asm__ __volatile__ ("movw %%dx,%1\n\t" \
|
||||
#define set_base(ldt, base) _set_base(((char *)&(ldt)) , (base))
|
||||
#define set_limit(ldt, limit) _set_limit(((char *)&(ldt)) , ((limit)-1))
|
||||
|
||||
extern void load_gs_index(unsigned);
|
||||
extern void native_load_gs_index(unsigned);
|
||||
|
||||
/*
|
||||
* Load a segment. Fall back on loading the zero
|
||||
@@ -282,6 +282,7 @@ static inline void native_wbinvd(void)
|
||||
#ifdef CONFIG_X86_64
|
||||
#define read_cr8() (native_read_cr8())
|
||||
#define write_cr8(x) (native_write_cr8(x))
|
||||
#define load_gs_index native_load_gs_index
|
||||
#endif
|
||||
|
||||
/* Clear the 'TS' bit */
|
||||
|
Reference in New Issue
Block a user