[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 13/28] x86/vvtd: add a helper function to decide the interrupt format
On Fri, Nov 17, 2017 at 02:22:20PM +0800, Chao Gao wrote: > Different platform may use different method to distinguish > remapping format interrupt and normal format interrupt. > > Intel uses one bit in IOAPIC RTE or MSI address register to > indicate the interrupt is remapping format. vvtd should handle > all the interrupts when .check_irq_remapping() return true. > > Signed-off-by: Chao Gao <chao.gao@xxxxxxxxx> > Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx> > > --- > v3: > - new > --- > xen/drivers/passthrough/vtd/vvtd.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/xen/drivers/passthrough/vtd/vvtd.c > b/xen/drivers/passthrough/vtd/vvtd.c > index 9890cc2..d3dec01 100644 > --- a/xen/drivers/passthrough/vtd/vvtd.c > +++ b/xen/drivers/passthrough/vtd/vvtd.c > @@ -565,6 +565,15 @@ static int vvtd_get_irq_info(const struct domain *d, > return 0; > } > > +/* check whether the interrupt request is remappable */ > +static bool vvtd_is_remapping(const struct domain *d, irq_remapped or intr_remapped would be clearer. And likewise the comment in the previous patch, it would be much better to introduce this together with check_irq_remapping and an actual user. Thanks, Roger. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |