mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
Sometimes guest OS writes PCIR_COMMAND register to disable the device, then update the bar address followed by a write to PCIR_COMMAND register to enable the device again. In this case unregister_bar/register_bar should be called otherwise the IO/MMIO regions monitored by device model will not be updated accordingly. Tracked-On: #2962 Signed-off-by: Yu Wang <yu1.wang@intel.com> Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Signed-off-by: Liu Shuo A <shuo.a.liu@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>