History

hisi_acc_vfio_pci: Add helper to retrieve the struct pci_driver

struct pci_driver pointer is an input into the pci_iov_get_pf_drvdata(). Introduce helpers to retrieve the ACC PF dev struct pci_driver pointers as we use this in ACC vfio migration driver.

Shameer Kolothum committed 4 years ago

Commit 442fbc01 parent 6abdce54 files · +23 −0Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/hisi_acc_qm.h+5−0
@@ -476,4 +476,9 @@ void hisi_qm_pm_init(struct hisi_qm *qm); · 475 unmodified lines
476476 int hisi_qm_get_dfx_access(struct hisi_qm *qm);
477477 void hisi_qm_put_dfx_access(struct hisi_qm *qm);
478478 void hisi_qm_regs_dump(struct seq_file *s, struct debugfs_regset32 *regset);
479+
480+/* Used by VFIO ACC live migration driver */
481+struct pci_driver *hisi_sec_get_pf_driver(void);
482+struct pci_driver *hisi_hpre_get_pf_driver(void);
483+struct pci_driver *hisi_zip_get_pf_driver(void);
479484 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t