From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: The SMP RHEL 5.1 PAE guest can't boot up issue Date: Sun, 24 Feb 2008 10:51:07 +0200 Message-ID: <47C12FFB.9000702@qumranet.com> References: <200802221657.34243.sheng.yang@intel.com> <47BEF550.8040803@qumranet.com> <47C03A97.9010008@bppiac.hu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080903070305070304010004" Cc: kvm-devel@lists.sourceforge.net To: Farkas Levente Return-path: In-Reply-To: <47C03A97.9010008@bppiac.hu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------080903070305070304010004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Farkas Levente wrote: > will be a new release in the near future? since many of us waiting for > this bug to be fixed on quad and other multi core cpus. > > Certainly. Can you try out the attached patch? -- error compiling committee.c: too many arguments to function --------------080903070305070304010004 Content-Type: text/x-patch; name="irq0-to-vcpu0.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="irq0-to-vcpu0.patch" diff --git a/kernel/ioapic.c b/kernel/ioapic.c index 317f8e2..4232fd7 100644 --- a/kernel/ioapic.c +++ b/kernel/ioapic.c @@ -211,6 +211,10 @@ static void ioapic_deliver(struct kvm_ioapic *ioapic, int irq) case IOAPIC_LOWEST_PRIORITY: vcpu = kvm_get_lowest_prio_vcpu(ioapic->kvm, vector, deliver_bitmask); +#ifdef CONFIG_X86 + if (irq == 0) + vcpu = ioapic->kvm->vcpus[0]; +#endif if (vcpu != NULL) ioapic_inj_irq(ioapic, vcpu, vector, trig_mode, delivery_mode); @@ -220,6 +224,10 @@ static void ioapic_deliver(struct kvm_ioapic *ioapic, int irq) deliver_bitmask, vector, IOAPIC_LOWEST_PRIORITY); break; case IOAPIC_FIXED: +#ifdef CONFIG_X86 + if (irq == 0) + deliver_bitmask = 1; +#endif for (vcpu_id = 0; deliver_bitmask != 0; vcpu_id++) { if (!(deliver_bitmask & (1 << vcpu_id))) continue; --------------080903070305070304010004 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --------------080903070305070304010004 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------080903070305070304010004--