All of lore.kernel.org
 help / color / mirror / Atom feed
From: Beth Kon <eak@us.ibm.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 2/4] Userspace changes for configuring  irq0->inti2override (v3)
Date: Tue, 12 May 2009 09:20:36 -0400	[thread overview]
Message-ID: <4A0977A4.7080001@us.ibm.com> (raw)
In-Reply-To: <20090512105200.GE19446@redhat.com>

Gleb Natapov wrote:
> On Tue, May 12, 2009 at 01:22:06PM +0300, Avi Kivity wrote:
>   
>> Gleb Natapov wrote:
>>     
>>>>          for (i = 0; i < 24; ++i) {
>>>> -            r = kvm_add_irq_route(kvm_context, i, KVM_IRQCHIP_IOAPIC, i);
>>>> +            if (i == 0) {
>>>> +                r = kvm_add_irq_route(kvm_context, i, KVM_IRQCHIP_IOAPIC, 2);
>>>> +            } else if (i != 2) {
>>>> +                r = kvm_add_irq_route(kvm_context, i, KVM_IRQCHIP_IOAPIC, i);
>>>> +            }
>>>>     
>>>>         
>>> There is no entry for IRQ2, is this OK? What happens if IRQ2 triggers?
>>>   
>>>       
>> irq 2 is the PIC cascade interrupt.  If it is somehow triggered, the  
>> kernel will ignore it.
>>
>>     
> But here we configure IOAPIC routing. What if IOAPIC is used for
> interrupt delivery and something triggers irq2. There is no entry
> describing it in IOAPIC routing table, so what gsi it will be mapped to?
>
> --
>   
The ACPI spec states that systems that support both APIC and dual-8259 
interrupt models must map system interrupt vectors 0-15 to 8259 IRQs 
0-15, except where interrupt source overrides are provided. We provide 
an irq0->inti2 override, and no irq2 override, so irq2 must be unused.


  reply	other threads:[~2009-05-12 13:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 17:29 [PATCH 1/4] BIOS changes for configuring irq0->inti2 override (v3) Beth Kon
2009-05-11 17:29 ` [PATCH 2/4] Userspace " Beth Kon
2009-05-12  9:53   ` Gleb Natapov
2009-05-12 10:22     ` Avi Kivity
2009-05-12 10:52       ` Gleb Natapov
2009-05-12 13:20         ` Beth Kon [this message]
2009-05-12 13:37           ` [PATCH 2/4] Userspace changes for configuring irq0->inti2override (v3) Gleb Natapov
2009-05-12 13:29     ` Beth Kon
2009-05-11 17:29 ` [PATCH 3/4] BIOS changes for KVM HPET (v3) Beth Kon
2009-05-11 17:29 ` [PATCH 4/4] Userspace " Beth Kon
2009-05-12  9:03   ` Avi Kivity
2009-05-12 14:25     ` Beth Kon
2009-05-12 16:27       ` Beth Kon
2009-05-13  7:48         ` Avi Kivity
2009-05-13  7:50           ` Avi Kivity
2009-05-12  9:57 ` [PATCH 1/4] BIOS changes for configuring irq0->inti2 override (v3) Gleb Natapov
2009-05-12 13:59   ` [PATCH 1/4] BIOS changes for configuring irq0->inti2 override(v3) Beth Kon

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=4A0977A4.7080001@us.ibm.com \
    --to=eak@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.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 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.