mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
kernel/vfio: fix check for vfio extensions
This commit is contained in:
parent
ce7e6b36d5
commit
192aa10627
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ VfioContainer::VfioContainer()
|
|||
|
||||
/* Check available VFIO extensions (IOMMU types) */
|
||||
extensions = 0;
|
||||
for (int i = 1; i < VFIO_DMA_CC_IOMMU; i++) {
|
||||
for (unsigned int i = VFIO_TYPE1_IOMMU; i <= VFIO_NOIOMMU_IOMMU; i++) {
|
||||
int ret = ioctl(fd, VFIO_CHECK_EXTENSION, i);
|
||||
if (ret < 0) {
|
||||
logger->error("Failed to get VFIO extensions");
|
||||
|
|
Loading…
Add table
Reference in a new issue