mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
vbar:msi:msix: export vbar/msi/msix access checking
Change vbar/msi/msix access checking from private to public. Tracked-On: #3241 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
c2d25aafb8
commit
37de8f0b99
@@ -38,21 +38,6 @@
|
||||
#include <logmsg.h>
|
||||
#include "vpci_priv.h"
|
||||
|
||||
|
||||
/**
|
||||
* @pre vdev != NULL
|
||||
*/
|
||||
static inline bool msixcap_access(const struct pci_vdev *vdev, uint32_t offset)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
if (has_msix_cap(vdev)) {
|
||||
ret = in_range(offset, vdev->msix.capoff, vdev->msix.caplen);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @pre vdev != NULL
|
||||
*/
|
||||
|
Reference in New Issue
Block a user