All of lore.kernel.org
 help / color / mirror / Atom feed
* translate pirq to irq
@ 2014-01-11 22:59 Igor Kozhukhov
  2014-01-12 18:29 ` Andrew Cooper
  0 siblings, 1 reply; 7+ messages in thread
From: Igor Kozhukhov @ 2014-01-11 22:59 UTC (permalink / raw)
  To: xen-devel

Hello All,

I see a comment in physdev.h for 'struct physdev_map_pirq', var 'pirq':
/* IN - high 16 bits hold segment for MAP_PIRQ_TYPE_MSI_SEG */

i have received 'pirq' from hypervisor > 255.

map_irq.domid = DOMID_SELF;                                                   
map_irq.type = MAP_PIRQ_TYPE_MSI;                                             
map_irq.index = -1; /* hypervisor auto allocates vector */                    
map_irq.pirq = -1;                                                            
map_irq.bus = busnum;                                                         
map_irq.devfn = devfn;                                                        
map_irq.entry_nr = i;                                                         
map_irq.table_base = 0;                                              
rc = HYPERVISOR_physdev_op(PHYSDEVOP_map_pirq, &map_irq);                     
irqno = map_irq.pirq;

i have:
irqno = 279 - it is more APIC_MAX_VECTOR(255)

i have a question: how to correct translate pirq to irq for APIC map table ?

all work well on xen-3.4, but it has another realization in function physdev_map_pirq() then for xen-4.2.

--
Best regards,
Igor Kozhukhov

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-14 20:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-11 22:59 translate pirq to irq Igor Kozhukhov
2014-01-12 18:29 ` Andrew Cooper
2014-01-12 19:26   ` Igor Kozhukhov
2014-01-12 20:34     ` Andrew Cooper
2014-01-12 21:01       ` Igor Kozhukhov
2014-01-12 21:10         ` Andrew Cooper
2014-01-14 20:50           ` Igor Kozhukhov

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.