public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: "He, Qing" <qing.he-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [PATCH] fix PIC interrupt delivery in Qemu when LAPIC is enabled
Date: Sat, 28 Apr 2007 09:49:44 +0300	[thread overview]
Message-ID: <4632EE88.8030704@qumranet.com> (raw)
In-Reply-To: <37E52D09333DE2469A03574C88DBF40F048D98-wq7ZOvIWXbM/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>

He, Qing wrote:
> Current interrupt logic in Qemu unconditionally checks pending irqs on
> PIC after checking local APIC, however, this is problematic.
> 	On common platform, PIC is usually connected to the LINT0 of
> local APIC. In this way when local APIC is disabled, this pin behaves
> like INTR. But when local APIC is enabled, its behavior can be
> determined by LVT_LINT0: PIC should only deliver normal irq only when
> `external interrupt' delivery mode is set.
> 	x86_64 Linux kernel uses PIT->PIC->LINT0 as NMI source when
> performance counters are not available, but the logic described above
> treats the NMI as normal interrupt which yields a 2x faster global timer
> because an additional timer interrupt is injected on every tick. This
> patch fixes this issue.
>
> Signed-off-by: Qing He <qing.he-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
>   

Applied, thanks.

This problem is present in regular qemu, can you submit it to qemu-devel
as well?  I'l like not to diverge from upstream qemu.

As your mailer doesn't mark attachments to be displayed inline, please
submit patches in the future both as attachment and inline, for easier
review.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

      parent reply	other threads:[~2007-04-28  6:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-28  6:04 [PATCH] fix PIC interrupt delivery in Qemu when LAPIC is enabled He, Qing
     [not found] ` <37E52D09333DE2469A03574C88DBF40F048D98-wq7ZOvIWXbM/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-04-28  6:49   ` Avi Kivity [this message]

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=4632EE88.8030704@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=qing.he-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox