From: Amos Kong <akong@redhat.com>
To: Joerg Roedel <joerg.roedel@amd.com>
Cc: Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm
Date: Wed, 09 May 2012 09:56:49 +0800 [thread overview]
Message-ID: <4FA9CEE1.3030200@redhat.com> (raw)
In-Reply-To: <1336490230-22411-1-git-send-email-joerg.roedel@amd.com>
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.
next prev parent reply other threads:[~2012-05-09 1:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-08 15:17 [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm Joerg Roedel
2012-05-09 1:56 ` Amos Kong [this message]
2012-05-14 8:30 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FA9CEE1.3030200@redhat.com \
--to=akong@redhat.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=joerg.roedel@amd.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.