[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v3 10/15] vt-d: Add API to update IRTE when VT-d PI is used
> -----Original Message----- > From: Tian, Kevin > Sent: Wednesday, July 08, 2015 6:00 PM > To: Wu, Feng; xen-devel@xxxxxxxxxxxxx > Cc: keir@xxxxxxx; jbeulich@xxxxxxxx; andrew.cooper3@xxxxxxxxxx; Zhang, > Yang Z; george.dunlap@xxxxxxxxxxxxx > Subject: RE: [v3 10/15] vt-d: Add API to update IRTE when VT-d PI is used > > > From: Wu, Feng > > Sent: Wednesday, June 24, 2015 1:18 PM > > > > This patch adds an API which is used to update the IRTE > > for posted-interrupt when guest changes MSI/MSI-X information. > > > > Signed-off-by: Feng Wu <feng.wu@xxxxxxxxx> > > Acked-by: Kevin Tian <kevin.tian@xxxxxxxxx>, with one small comment: > > > +int pi_update_irte(struct vcpu *v, struct pirq *pirq, uint8_t gvec) > > +{ > > + struct irq_desc *desc; > > + struct msi_desc *msi_desc; > > + int remap_index; > > + int rc = 0; > > + struct pci_dev *pci_dev; > > + struct acpi_drhd_unit *drhd; > > + struct iommu *iommu; > > + struct ir_ctrl *ir_ctrl; > > + struct iremap_entry *iremap_entries = NULL, *p = NULL; > > + struct iremap_entry new_ire; > > + struct pi_desc *pi_desc = &v->arch.hvm_vmx.pi_desc; > > + unsigned long flags; > > + uint128_t old_ire, ret; > > + > > + desc = pirq_spin_lock_irq_desc(pirq, NULL); > > + if ( !desc ) > > + return -ENOMEM; > > -EINVAL? > I think -EINVAL is reasonable. Thanks, Feng _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |