hv: assign: rename ptirq_msix_remap to ptirq_prepare_msix_remap

ptirq_msix_remap doesn't do the real remap, that's the vmsi_remap and vmsix_remap_entry
does. ptirq_msix_remap only did the preparation.

Tracked-On: #3475
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Li Fei1
2019-11-26 22:26:15 +08:00
committed by wenlingz
parent 51a43dab79
commit 6ee076f7df
5 changed files with 6 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ static int32_t vmsi_remap(const struct pci_vdev *vdev, bool enable)
info.vmsi_data.full = 0U;
}
ret = ptirq_msix_remap(vm, vdev->bdf.value, pbdf.value, 0U, &info);
ret = ptirq_prepare_msix_remap(vm, vdev->bdf.value, pbdf.value, 0U, &info);
if (ret == 0) {
/* Update MSI Capability structure to physical device */
if ((msgctrl & PCIM_MSICTRL_64BIT) != 0U) {

View File

@@ -62,7 +62,7 @@ static int32_t vmsix_remap_entry(const struct pci_vdev *vdev, uint32_t index, bo
info.vmsi_addr.full = vdev->msix.table_entries[index].addr;
info.vmsi_data.full = (enable) ? vdev->msix.table_entries[index].data : 0U;
ret = ptirq_msix_remap(vdev->vpci->vm, vdev->bdf.value, vdev->pdev->bdf.value, (uint16_t)index, &info);
ret = ptirq_prepare_msix_remap(vdev->vpci->vm, vdev->bdf.value, vdev->pdev->bdf.value, (uint16_t)index, &info);
if (ret == 0) {
/* Write the table entry to the physical structure */
hva = hpa2hva(vdev->msix.mmio_hpa + vdev->msix.table_offset);