mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: vpci: revert do FLR and BAR restore
Since we restore BAR values when writing Command Register if necessary. We don't need to trap FLR and do the BAR restore then. Tracked-On: #3475 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -50,7 +50,6 @@ 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.
|
||||
|
@@ -99,12 +99,6 @@ struct pci_vdev {
|
||||
struct pci_msi msi;
|
||||
struct pci_msix msix;
|
||||
|
||||
bool has_flr;
|
||||
uint32_t pcie_capoff;
|
||||
|
||||
bool has_af_flr;
|
||||
uint32_t af_capoff;
|
||||
|
||||
/* Pointer to corresponding PCI device's vm_config */
|
||||
struct acrn_vm_pci_dev_config *pci_dev_config;
|
||||
|
||||
|
@@ -195,13 +195,8 @@ struct pci_pdev {
|
||||
|
||||
struct pci_msix_cap msix;
|
||||
|
||||
/* Function Level Reset Capability */
|
||||
bool has_flr;
|
||||
uint32_t pcie_capoff;
|
||||
|
||||
/* Conventional PCI Advanced Features FLR Capability */
|
||||
bool has_af_flr;
|
||||
uint32_t af_capoff;
|
||||
};
|
||||
|
||||
static inline uint32_t pci_bar_offset(uint32_t idx)
|
||||
@@ -316,7 +311,6 @@ static inline bool is_pci_cfg_bridge(uint8_t header_type)
|
||||
return ((header_type & PCIM_HDRTYPE) == PCIM_HDRTYPE_BRIDGE);
|
||||
}
|
||||
|
||||
void pdev_do_flr(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
|
||||
bool pdev_need_bar_restore(const struct pci_pdev *pdev);
|
||||
void pdev_restore_bar(const struct pci_pdev *pdev);
|
||||
|
||||
|
Reference in New Issue
Block a user