On Tue, Oct 21, 2008 at 10:34:12AM +0800, Xu, Dongxiao wrote: > Hi, Gleb, > It seems that this patch is x86 specific, and it breaks the IA-64 compilation. Do you have any good idea to solve this? Thanks! > Solve this by ifdefs for now. For better solution cleanup of SMP handling is needed. Signed-off-by: Gleb Natapov <gleb@xxxxxxxxxx> diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c index 67d1de9..c5f3f29 100644 --- a/qemu/qemu-kvm.c +++ b/qemu/qemu-kvm.c @@ -353,16 +353,20 @@ static void update_regs_for_sipi(CPUState *env) static void update_regs_for_init(CPUState *env) { +#ifdef TARGET_I386 SegmentCache cs = env->segs[R_CS]; +#endif cpu_reset(env); +#ifdef TARGET_I386 /* restore SIPI vector */ if(vcpu_info[env->cpu_index].sipi_needed) env->segs[R_CS] = cs; - kvm_arch_load_regs(env); vcpu_info[env->cpu_index].init = 0; +#endif + kvm_arch_load_regs(env); } static void setup_kernel_sigmask(CPUState *env) -- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm-ia64" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html