> -----Original Message----- > From: Tian, Kevin > Sent: Wednesday, July 08, 2015 6:00 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > Yang Z; george.dun...@eu.citrix.com > 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...@intel.com> > > Acked-by: Kevin Tian <kevin.t...@intel.com>, 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@lists.xen.org http://lists.xen.org/xen-devel