/* update MSI */
if (cfg_entry->data != old_addr)
{
- if (ptdev->msi->flags & PCI_MSI_FLAGS_ENABLE)
+ if (ptdev->msi->flags & PT_MSI_MAPPED)
pt_msi_update(ptdev);
}
/* update MSI */
if (cfg_entry->data != old_addr)
{
- if (ptdev->msi->flags & PCI_MSI_FLAGS_ENABLE)
+ if (ptdev->msi->flags & PT_MSI_MAPPED)
pt_msi_update(ptdev);
}
/* update MSI */
if (cfg_entry->data != old_data)
{
- if (flags & PCI_MSI_FLAGS_ENABLE)
+ if (flags & PT_MSI_MAPPED)
pt_msi_update(ptdev);
}
return result;
}
-/*
- * Update msi mapping, usually called when MSI enabled,
- * except the first time
- */
int pt_msi_update(struct pt_dev *d)
{
uint8_t gvec = 0;
addr = (uint64_t)d->msi->addr_hi << 32 | d->msi->addr_lo;
gflags = __get_msi_gflags(d->msi->data, addr);
- PT_LOG("Update msi with pirq %x gvec %x\n", d->msi->pirq, gvec);
+ PT_LOG("Update msi with pirq %x gvec %x gflags %x\n",
+ d->msi->pirq, gvec, gflags);
ret = xc_domain_update_msi_irq(xc_handle, domid, gvec,
d->msi->pirq, gflags, 0);