]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: vtd: Do not overrun while counting IOMMU units
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 2 Jul 2015 07:23:37 +0000 (09:23 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 2 Jul 2015 07:43:10 +0000 (09:43 +0200)
commit0fffa4f24d44234609a0d33c621f7fd7f61df1b4
treed08309d1eb4136ba3efbc9e880d949c902dc462a
parentc5e0c147991814e7ff62a650b7bf8e7438f96b54
x86: vtd: Do not overrun while counting IOMMU units

Account for the case that we have JAILHOUSE_MAX_IOMMU_UNITS units, thus
no zeroed entry in platform_info.x86.iommu_base.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/vtd.c