Re: [Xen-devel] [PATCH v4.1 3/4] x86/pt: enable binding of GSIs to a PVH Dom0

2017-06-20 Thread Jan Beulich
>>> On 19.06.17 at 18:45, wrote: > On Wed, Jun 07, 2017 at 07:17:16AM -0600, Jan Beulich wrote: >> >>> On 02.06.17 at 15:58, wrote: >> > +else >> > +{ >> > +/* MSI_TRANSLATE is not supported by the hardware domain. */ >> >> s/by/for/ ? > > OK. I guess this is better

Re: [Xen-devel] [PATCH v4.1 3/4] x86/pt: enable binding of GSIs to a PVH Dom0

2017-06-19 Thread Roger Pau Monne
On Wed, Jun 07, 2017 at 07:17:16AM -0600, Jan Beulich wrote: > >>> On 02.06.17 at 15:58, wrote: > > --- a/xen/drivers/passthrough/io.c > > +++ b/xen/drivers/passthrough/io.c > > @@ -164,6 +164,25 @@ static void pt_irq_time_out(void *data) > > > > spin_lock(&irq_map->dom->event_lock); > >

Re: [Xen-devel] [PATCH v4.1 3/4] x86/pt: enable binding of GSIs to a PVH Dom0

2017-06-07 Thread Jan Beulich
>>> On 02.06.17 at 15:58, wrote: > --- a/xen/drivers/passthrough/io.c > +++ b/xen/drivers/passthrough/io.c > @@ -164,6 +164,25 @@ static void pt_irq_time_out(void *data) > > spin_lock(&irq_map->dom->event_lock); > > +if ( irq_map->flags & HVM_IRQ_DPCI_IDENTITY_GSI ) > +{ > +

[Xen-devel] [PATCH v4.1 3/4] x86/pt: enable binding of GSIs to a PVH Dom0

2017-06-02 Thread Roger Pau Monne
Achieve this by expanding pt_irq_create_bind in order to support mapping interrupts of type PT_IRQ_TYPE_PCI to a PVH Dom0. GSIs bound to Dom0 are always identity bound, which means the all the fields inside of the u.pci sub-struct are ignored, and only the machine_irq is actually used in order to d