* [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm
@ 2012-05-08 15:17 Joerg Roedel
2012-05-09 1:56 ` Amos Kong
2012-05-14 8:30 ` Avi Kivity
0 siblings, 2 replies; 3+ messages in thread
From: Joerg Roedel @ 2012-05-08 15:17 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: kvm, Joerg Roedel, Jan Kiszka
Since commit b334ec56 in qemu-kvm the use of irqlines > 15
is not supported anymore. This causes the apic unittest to
fail since this commit. Since the commit-msg explicitly
states that potential users of this needs to be fixed, here
is the fix which uses irq lines 14 and 15 instead in the
unittest.
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
x86/apic.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/x86/apic.c b/x86/apic.c
index 2725b9a..50e77fc 100644
--- a/x86/apic.c
+++ b/x86/apic.c
@@ -139,8 +139,8 @@ static void ioapic_isr_77(isr_regs_t *regs)
static void test_ioapic_intr(void)
{
handle_irq(0x77, ioapic_isr_77);
- set_ioapic_redir(0x10, 0x77);
- toggle_irq_line(0x10);
+ set_ioapic_redir(0x0e, 0x77);
+ toggle_irq_line(0x0e);
asm volatile ("nop");
report("ioapic interrupt", g_isr_77 == 1);
}
@@ -168,11 +168,11 @@ static void test_ioapic_simultaneous(void)
{
handle_irq(0x78, ioapic_isr_78);
handle_irq(0x66, ioapic_isr_66);
- set_ioapic_redir(0x10, 0x78);
- set_ioapic_redir(0x11, 0x66);
+ set_ioapic_redir(0x0e, 0x78);
+ set_ioapic_redir(0x0f, 0x66);
irq_disable();
- toggle_irq_line(0x11);
- toggle_irq_line(0x10);
+ toggle_irq_line(0x0f);
+ toggle_irq_line(0x0e);
irq_enable();
asm volatile ("nop");
report("ioapic simultaneous interrupt",
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm
2012-05-08 15:17 [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm Joerg Roedel
@ 2012-05-09 1:56 ` Amos Kong
2012-05-14 8:30 ` Avi Kivity
1 sibling, 0 replies; 3+ messages in thread
From: Amos Kong @ 2012-05-09 1:56 UTC (permalink / raw)
To: Joerg Roedel; +Cc: Avi Kivity, Marcelo Tosatti, kvm, Jan Kiszka
On 08/05/12 23:17, Joerg Roedel wrote:
> Since commit b334ec56 in qemu-kvm the use of irqlines> 15
> is not supported anymore. This causes the apic unittest to
> fail since this commit. Since the commit-msg explicitly
> states that potential users of this needs to be fixed, here
> is the fix which uses irq lines 14 and 15 instead in the
> unittest.
>
> Cc: Jan Kiszka<jan.kiszka@siemens.com>
> Signed-off-by: Joerg Roedel<joerg.roedel@amd.com>
Looks correct.
Reviewed-by: Amos Kong <akong@redhat.com>
> ---
> x86/apic.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/x86/apic.c b/x86/apic.c
> index 2725b9a..50e77fc 100644
> --- a/x86/apic.c
> +++ b/x86/apic.c
> @@ -139,8 +139,8 @@ static void ioapic_isr_77(isr_regs_t *regs)
> static void test_ioapic_intr(void)
> {
> handle_irq(0x77, ioapic_isr_77);
> - set_ioapic_redir(0x10, 0x77);
> - toggle_irq_line(0x10);
> + set_ioapic_redir(0x0e, 0x77);
> + toggle_irq_line(0x0e);
> asm volatile ("nop");
> report("ioapic interrupt", g_isr_77 == 1);
> }
> @@ -168,11 +168,11 @@ static void test_ioapic_simultaneous(void)
> {
> handle_irq(0x78, ioapic_isr_78);
> handle_irq(0x66, ioapic_isr_66);
> - set_ioapic_redir(0x10, 0x78);
> - set_ioapic_redir(0x11, 0x66);
> + set_ioapic_redir(0x0e, 0x78);
> + set_ioapic_redir(0x0f, 0x66);
> irq_disable();
> - toggle_irq_line(0x11);
> - toggle_irq_line(0x10);
> + toggle_irq_line(0x0f);
> + toggle_irq_line(0x0e);
> irq_enable();
> asm volatile ("nop");
> report("ioapic simultaneous interrupt",
--
Amos.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm
2012-05-08 15:17 [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm Joerg Roedel
2012-05-09 1:56 ` Amos Kong
@ 2012-05-14 8:30 ` Avi Kivity
1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2012-05-14 8:30 UTC (permalink / raw)
To: Joerg Roedel; +Cc: Marcelo Tosatti, kvm, Jan Kiszka
On 05/08/2012 06:17 PM, Joerg Roedel wrote:
> Since commit b334ec56 in qemu-kvm the use of irqlines > 15
> is not supported anymore. This causes the apic unittest to
> fail since this commit. Since the commit-msg explicitly
> states that potential users of this needs to be fixed, here
> is the fix which uses irq lines 14 and 15 instead in the
> unittest.
>
Thanks, applied.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-14 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08 15:17 [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm Joerg Roedel
2012-05-09 1:56 ` Amos Kong
2012-05-14 8:30 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).