sanjay kushwaha
2006-Jul-09 22:02 UTC
[Xen-devel] Injecting physical IRQ (pirq) into hvm guest
Hi Folks, I want to inject an interrupt into the hvm guest based on a physical IRQ (pirq) I receive in Xen hypervisor. I tried calling pic_set_irq() function in ../xen/arch/x86/i8259.c but that didn''t work. Could someone please help me with this? Thanks, Sanjay -- ---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Dong, Eddie
2006-Jul-10 00:54 UTC
RE: [Xen-devel] Injecting physical IRQ (pirq) into hvm guest
Guess you are trying direct hardware assignment for HVM. How do you translate the vetor to IRQ line? If the physical IRQ you received is a PCI IRQ, then the guest PIR may be different with machine PIR. thanks, eddie ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of sanjay kushwaha Sent: 2006年7月10日 6:03 To: xen-devel Subject: [Xen-devel] Injecting physical IRQ (pirq) into hvm guest Hi Folks, I want to inject an interrupt into the hvm guest based on a physical IRQ (pirq) I receive in Xen hypervisor. I tried calling pic_set_irq() function in ../xen/arch/x86/i8259.c but that didn''t work. Could someone please help me with this? Thanks, Sanjay -- ---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
To inject a irq into HVM guest, should call pic_set_irq twice like this: pic_set_irq(pic, irq, 0); pic_set_irq(pic, irq, 1); Calling it one time won''t work. Is it the reason for your case? - Ke Intel Opensource Technology Center ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of sanjay kushwaha Sent: 2006?7?10? 6:03 To: xen-devel Subject: [Xen-devel] Injecting physical IRQ (pirq) into hvm guest Hi Folks, I want to inject an interrupt into the hvm guest based on a physical IRQ (pirq) I receive in Xen hypervisor. I tried calling pic_set_irq() function in ../xen/arch/x86/i8259.c but that didn''t work. Could someone please help me with this? Thanks, Sanjay -- ---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
sanjay kushwaha
2006-Jul-11 02:33 UTC
Re: [Xen-devel] Injecting physical IRQ (pirq) into hvm guest
No. even calling it twice didn''t work. THanks, Sanjay On 7/9/06, Yu, Ke <ke.yu@intel.com> wrote:> > To inject a irq into HVM guest, should call pic_set_irq twice like this: > pic_set_irq(pic, irq, 0); > pic_set_irq(pic, irq, 1); > > Calling it one time won''t work. Is it the reason for your case? > > - Ke > Intel Opensource Technology Center > ________________________________ > > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of sanjay kushwaha > Sent: 2006?7?10? 6:03 > To: xen-devel > Subject: [Xen-devel] Injecting physical IRQ (pirq) into hvm guest > > > Hi Folks, > I want to inject an interrupt into the hvm guest based on a physical IRQ (pirq) I receive in Xen hypervisor. I tried calling > pic_set_irq() function in ../xen/arch/x86/i8259.c but that didn''t work. > > Could someone please help me with this? > > Thanks, > Sanjay > > -- > ---------------------- > PhD Student, Georgia Tech > http://www.cc.gatech.edu/~ksanjay/ >-- ---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel