WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

RE: [Xen-ia64-devel][PATCH]Change to new interrupt deliver mechanism

To: <Doi.Tsunehisa@xxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel][PATCH]Change to new interrupt deliver mechanism
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Tue, 5 Dec 2006 14:49:40 +0800
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 04 Dec 2006 22:52:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccYIojE/P2PT8QkQequEExqBLx/lwAFeRww
Thread-topic: [Xen-ia64-devel][PATCH]Change to new interrupt deliver mechanism
Doi.Tsunehisa@xxxxxxxxxxxxxx write on 2006年12月5日 12:05:
> Hi,
> 
>   I've investigated it, but I couldn't find the method to get GSI of
> platform-pci for PV-on-HVM driver. There is convert functions like
> isa_irq_to_vector() in linux kernel source.
> 
>     [arch/ia64/kernel/apci.c]
>     int acpi_gsi_to_irq(u32 gsi, unsigned int *irq)
> 
>     [arch/ia64/kernel/iosapic.c]
>     inline int gsi_to_vector (unsigned int gsi)
> 
>   But, these functions are not EXPORT_SYMBOLE, thus we can't use them
> for kernel module.
> 
>   So, I think that..
> 
>   * Hypervisor becomes to be able to use both GSI and Vector for
>     callback irq.
>     - For example, if it is normal value, HV accepts it as GSI.
>       If it is value which is set MSB, HV accepts it as Vector.
>   * If hypervisor gets Vector as callback irq, hypervisor finds the
>     GSI for the pseudo device from virtual interrupt controller
> setting. 
> 
>   What do you think about this method ?

Hi Doi,

There is only one IOAPIC in IPF,
So irq is equal to GSI,

The sequence of platform_pci interrupt deliver is like below.

1. platform-pic.c cal set_callback_irq to tell HV the irq.

2. if there are callcack_irq, HV converts irq to vector by asking for VIOSAPIC,
    and HV directly pend this vector to one VCPU,

Can this sequence work?

Thanks
--Anthony



> 
> Thanks,
> - Tsunehisa Doi

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>