mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
pcie: Helper functions to check if PASID is enabled
pasid_enabled checks whether the capability is present or not. If so, we read the configuration space to get the status of the feature (enabled or not). Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com> Message-Id: <20250520071823.764266-3-clement.mathieu--drif@eviden.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a8d178e149
commit
1e82e8a828
2 changed files with 11 additions and 0 deletions
|
@ -154,4 +154,6 @@ void pcie_cap_slot_unplug_request_cb(HotplugHandler *hotplug_dev,
|
|||
|
||||
void pcie_pasid_init(PCIDevice *dev, uint16_t offset, uint8_t pasid_width,
|
||||
bool exec_perm, bool priv_mod);
|
||||
|
||||
bool pcie_pasid_enabled(const PCIDevice *dev);
|
||||
#endif /* QEMU_PCIE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue