All of lore.kernel.org
 help / color / mirror / Atom feed
* xen/arm: Query - vgic nr_spis value for domU
@ 2015-02-24  9:24 Vijay Kilari
  2015-02-24  9:41 ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Vijay Kilari @ 2015-02-24  9:24 UTC (permalink / raw)
  To: Ian Campbell, Julien Grall, Stefano Stabellini,
	xen-devel@lists.xen.org

Hi,

In the below snippet, nr_spis is set to 0 from domU based on this
pending_irq[] is allocated

int domain_vgic_init(struct domain *d)
{
    ....
    if ( is_hardware_domain(d) )
        d->arch.vgic.nr_spis = gic_number_lines() - 32;
    else
        d->arch.vgic.nr_spis = 0; /* We don't need SPIs for the guest */
    ...

}

Does it mean that no devices are attached to domU. So spis are required?
If so, for device pass-through (non-pci) how is it managed?

For pci-passthrough I am assigning non-zero value to nr_lpis for both
domU & dom0
and allocating pending_lpis[] because MSIx are assigned to domU
directly on ITS commands
trapped from domain.

Do you see any issue with this?

Regards
Vijay

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

end of thread, other threads:[~2015-02-24 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24  9:24 xen/arm: Query - vgic nr_spis value for domU Vijay Kilari
2015-02-24  9:41 ` Ian Campbell
2015-02-24  9:48   ` Julien Grall
2015-02-24 10:23     ` Ian Campbell
2015-02-24 10:49       ` Vijay Kilari
2015-02-24 12:50         ` Julien Grall

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.