Re: [Xen-devel] [PATCH v2 3/3] x86/vioapic: bind interrupts to PVH Dom0

2017-05-16 Thread Roger Pau Monne
On Fri, May 12, 2017 at 07:55:04AM -0600, Jan Beulich wrote: > >>> On 19.04.17 at 17:11, wrote: > > --- a/xen/arch/x86/hvm/vioapic.c > > +++ b/xen/arch/x86/hvm/vioapic.c > > @@ -158,6 +158,62 @@ static int vioapic_read( > > return X86EMUL_OKAY; > > } > > > > +static int vioapic_dom0_map_gs

Re: [Xen-devel] [PATCH v2 3/3] x86/vioapic: bind interrupts to PVH Dom0

2017-05-12 Thread Jan Beulich
>>> On 19.04.17 at 17:11, wrote: > --- a/xen/arch/x86/hvm/vioapic.c > +++ b/xen/arch/x86/hvm/vioapic.c > @@ -158,6 +158,62 @@ static int vioapic_read( > return X86EMUL_OKAY; > } > > +static int vioapic_dom0_map_gsi(unsigned int gsi, unsigned int trig, Considering the conditional in the ca

[Xen-devel] [PATCH v2 3/3] x86/vioapic: bind interrupts to PVH Dom0

2017-04-19 Thread Roger Pau Monne
Add the glue in order to bind the PVH Dom0 GSI from bare metal. This is done when Dom0 unmasks the vIO APIC pins, by fetching the current pin settings and setting up the PIRQ, which will then be bound to Dom0. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper --- Changes sinc