ptdev: fix bug when update ptdev entry

info->phys_pin need be used by ptdev_build_native_rte when updating entry

TODO: currently ptdev entry is virtual based, the better solution should
be physical based.

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ 2018-03-09 07:21:14 +08:00 committed by Jack Ren
parent fe9dfc7842
commit 155be81dbf
1 changed files with 9 additions and 1 deletions

View File

@ -747,7 +747,15 @@ int ptdev_intx_pin_remap(struct vm *vm, struct ptdev_intx_info *info)
info->phys_pin, pic_pin); info->phys_pin, pic_pin);
} else } else
goto END; goto END;
} } else
/* info->phys_pin need be used by ptdev_build_native_rte when
* updating entry.
*
* TODO: currently ptdev entry is virtual based, the better
* solution should be physical based, then we will not have
* this problem.
*/
info->phys_pin = entry->intx.phys_pin;
/* phys_pin from native IOAPIC */ /* phys_pin from native IOAPIC */
phys_pin = entry->intx.phys_pin; phys_pin = entry->intx.phys_pin;