From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhang, Xiantao" Subject: RE: x86: use smp_send_reschedule in kvm_vcpu_kick Date: Thu, 19 Mar 2009 15:56:07 +0800 Message-ID: <706158FABBBA044BAD4FE898A02E4BC2244A8A2F@pdsmsx503.ccr.corp.intel.com> References: <20090303001405.GA5889@amt.cnet> <49B4ECB6.8060505@redhat.com> <20090309105855.GA14242@elte.hu> <1236596946.8389.340.camel@laptop> <20090309232350.GA6837@amt.cnet> <49B61E65.4070706@redhat.com> <706158FABBBA044BAD4FE898A02E4BC224451E95@pdsmsx503.ccr.corp.intel.com> <20090312110422.GB10892@redhat.com> <706158FABBBA044BAD4FE898A02E4BC224452426@pdsmsx503.ccr.corp.intel.com> <20090319073849.GB16774@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Cc: Avi Kivity , Marcelo Tosatti , Ingo Molnar , "kvm@vger.kernel.org" , Peter Zijlstra To: Gleb Natapov Return-path: Received: from mga14.intel.com ([143.182.124.37]:32593 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751815AbZCSH6C convert rfc822-to-8bit (ORCPT ); Thu, 19 Mar 2009 03:58:02 -0400 In-Reply-To: <20090319073849.GB16774@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: Gleb Natapov wrote: > On Fri, Mar 13, 2009 at 10:15:22AM +0800, Zhang, Xiantao wrote: >> We also hacked the source like the patch. But the issue is not >> caused by it. We are still trying to figure the reason out. Thanks! >> Xiantao >> > > With the patch below I am able to compile kvm-userspace on IA64 and > run linux guest. >Network doesn't work since there is some kind of > problem with PCI interrupts. They are not delivered to a guest. Network should work before kvm-82, and not sure latest irq-bits changes has some side-impact for ipf side. You can reference ioapic_map_irq in ipf.c, and the mapping should match the PRT of bios. > @@ -29,7 +29,7 @@ > > #define TARGET_LONG_BITS 64 > > -#define TARGET_PAGE_BITS 16 > +#define TARGET_PAGE_BITS 14 If the host kernel's page size is 64k ,bits should be 16, and 16k with 14. We may reference kernel's page size here. > #define ELF_MACHINE EM_IA_64 > > @@ -40,13 +40,14 @@ > #include "cpu-defs.h" > > #include "softfloat.h" > +#define CPUState struct CPUIA64State > + > typedef struct CPUIA64State { > CPU_COMMON; > uint32_t hflags; > int mp_state; > } CPUIA64State; > > -#define CPUState CPUIA64State > #define cpu_gen_code cpu_ia64_gen_code > #define cpu_init cpu_ia64_init > #define cpu_signal_handler cpu_ia64_signal_handler