libxc fix: fast trap id is only for x86 patch
PATCH 1/1 libxc fix: fast trap id is only for x86 patch
x86 ( 32bit) is the only architecture that uses Fast trap vector offset ( fast_trap_idx ). This makes sure that x86 is the only architecture to use this variable.
Signed-off-by Jerone Young <[email protected]>
Jerone Young
Open Virtualization
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)
tools/libxc/xc_linux_build.c +3 -0
@@ -433,7 +433,10 @@ int xc_linux_build(int xc_handle, ctxt->trap_ctxt[i].vector = i; ctxt->trap_ctxt[i].cs =FLAT_KERNEL_CS ; } + +#if defined(__i386__) ctxt->fast_trap_idx =0 ; +#endif /* No LDT. */ ctxt->ldt_ents =0 ;
tools/libxc/xc_plan9_build.c +3 -0
@@ -505,7 +505,10 @@ xc_plan9_build(int xc_handle, ctxt->trap_ctxt[i].vector = i; ctxt->trap_ctxt[i].cs =FLAT_KERNEL_CS ; } + +#if defined(__i386__) ctxt->fast_trap_idx =0 ; +#endif /* No LDT. */ ctxt->ldt_ents =0 ;
tools/libxc/xc_vmx_build.c +3 -0
@@ -576,7 +576,10 @@ int xc_vmx_build(int xc_handle, ctxt->trap_ctxt[i].vector = i; ctxt->trap_ctxt[i].cs =FLAT_KERNEL_CS ; } + +#if defined(__i386__) ctxt->fast_trap_idx =0 ; +#endif /* No LDT. */ ctxt->ldt_ents =0 ;