On Tue, Oct 28, 2008 at 12:46:39PM +0200, Avi Kivity wrote:
> Muli Ben-Yehuda wrote:
>> On Sun, Oct 26, 2008 at 03:31:24PM +0200, Avi Kivity wrote:
>>   
>>> Amit Shah wrote:
>>>     
>>>>  +int piix3_get_pin(int pic_irq)
>>>> +{
>>>> +    int i;
>>>> +    for (i = 0; i < 4; i++)
>>>> +        if (piix3_dev->config[0x60+i] == pic_irq)
>>>> +            return i;
>>>> +    return -1;
>>>> +}
>>>>         
>>> What happens if two pci interrupts are routed to one irq line?
>>>     
>>
>> This one I'm still thinking about.
>>   
>
> Well, what is this needed for in the first place?

This specific function is not used. I assume Amit added it for
completeness with piix_get_irq. piix_get_irq, as far as I can tell, is
used in only one place (when the guest updates a device's
configuration space interrupt register) to go from interrupt pin
(intx) to guest IRQ line.

Cheers,
Muli
-- 
The First Workshop on I/O Virtualization (WIOV '08)
Dec 2008, San Diego, CA, http://www.usenix.org/wiov08/
                       <->
SYSTOR 2009---The Israeli Experimental Systems Conference
http://www.haifa.il.ibm.com/conferences/systor2009/
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to