AMD/IOMMU: check / convert IVMD ranges for being / to be reserved
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Sep 2021 14:14:19 +0000 (16:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Sep 2021 14:14:19 +0000 (16:14 +0200)
commited6c77ebf0c1f865b45596c3e793fe87160251a6
treedfd1486294b229f20d26ffdbf72aaf91139c85d9
parent4e467d390eaf6736377766adae0166711866fac3
AMD/IOMMU: check / convert IVMD ranges for being / to be reserved

While the specification doesn't say so, just like for VT-d's RMRRs no
good can come from these ranges being e.g. conventional RAM or entirely
unmarked and hence usable for placing e.g. PCI device BARs. Check
whether they are, and put in some limited effort to convert to reserved.
(More advanced logic can be added if actual problems are found with this
simplistic variant.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/drivers/passthrough/amd/iommu_acpi.c