* Fix bug in unexpected ethernet irq.
@ 2007-07-20 8:13 Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01CBEB3D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Dong, Eddie @ 2007-07-20 8:13 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]
re-deliver level triggreed irq at time of APIC
EOI will cause some guest no progress and hang in ethernet bringup.
Temply remove it for future revisit.
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
diff --git a/drivers/kvm/ioapic.c b/drivers/kvm/ioapic.c
index 6c734db..b4b2d0d 100644
--- a/drivers/kvm/ioapic.c
+++ b/drivers/kvm/ioapic.c
@@ -281,8 +281,18 @@ void kvm_ioapic_update_eoi(struct kvm *kvm, int
vector)
ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG);
ent->fields.remote_irr = 0;
+ /*
+ * TODO:
+ * qemu ioapic doesn't re-deliver level
+ * triggered irq at the time of APIC EOI.
+ * Adding back following code sme time causes RHEL5U
+ * guest boot no progress at ethernet bringup, so
+ * leave it same with qemu for now and revisit later.
+ */
+/*
if (!ent->fields.mask && (ioapic->irr & (1 << gsi)))
ioapic_deliver(ioapic, gsi);
+*/
}
static int ioapic_in_range(struct kvm_io_device *this, gpa_t addr)
[-- Attachment #2: irqchip-fix3.patch --]
[-- Type: application/octet-stream, Size: 1069 bytes --]
commit e7bcfccfe5880fafe4dcb4a5038748bde4579aae
Author: root <root@vt32-pae.(none)>
Date: Fri Jul 20 15:56:14 2007 +0800
re-deliver level triggreed irq at time of APIC
EOI will cause some guest no progress.
Temply remove it for future revisit.
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
diff --git a/drivers/kvm/ioapic.c b/drivers/kvm/ioapic.c
index 6c734db..b4b2d0d 100644
--- a/drivers/kvm/ioapic.c
+++ b/drivers/kvm/ioapic.c
@@ -281,8 +281,18 @@ void kvm_ioapic_update_eoi(struct kvm *kvm, int vector)
ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG);
ent->fields.remote_irr = 0;
+ /*
+ * TODO:
+ * qemu ioapic doesn't re-deliver level
+ * triggered irq at the time of APIC EOI.
+ * Adding back following code sme time causes RHEL5U
+ * guest boot no progress at ethernet bringup, so
+ * leave it same with qemu for now and revisit later.
+ */
+/*
if (!ent->fields.mask && (ioapic->irr & (1 << gsi)))
ioapic_deliver(ioapic, gsi);
+*/
}
static int ioapic_in_range(struct kvm_io_device *this, gpa_t addr)
[-- Attachment #3: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Fix bug in unexpected ethernet irq.
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01CBEB3D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2007-07-22 7:41 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-07-22 7:41 UTC (permalink / raw)
To: Dong, Eddie; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Dong, Eddie wrote:
> re-deliver level triggreed irq at time of APIC
> EOI will cause some guest no progress and hang in ethernet bringup.
> Temply remove it for future revisit.
>
> Signed-off-by: Yaozu (Eddie) Dong <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
>
Applied all three patches and rebased the lapic2 branch against master;
thanks.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-22 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20 8:13 Fix bug in unexpected ethernet irq Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A01CBEB3D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-07-22 7:41 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox