mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: vpci: restore PCI BARs when doing PCIe FLR
ACRN hypervisor should trap guest doing PCIe FLR. Besides, it should save some status before doing the FLR and restore them later, only BARs values for now. This patch will trap guest Device Capabilities Register write operation if the device supports PCI Express Capability and check whether it wants to do device FLR. If it does, call pdev_do_flr to do the job. Tracked-On: #3465 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -50,6 +50,7 @@ struct hv_timer {
|
||||
#define CYCLES_PER_MS us_to_ticks(1000U)
|
||||
|
||||
void udelay(uint32_t us);
|
||||
void msleep(uint32_t ms);
|
||||
|
||||
/**
|
||||
* @brief convert us to ticks.
|
||||
|
Reference in New Issue
Block a user