mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-03 12:49:45 +00:00
hv: vtd: fix a logic error when set iommu page walk coherent
Fix a logic error when set iommu page walk coherent. Tracked-On: #3160 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
517707dee4
commit
b833e2f90c
@ -495,7 +495,7 @@ static int32_t dmar_register_hrhd(struct dmar_drhd_rt *dmar_unit)
|
||||
pr_fatal("%s: dmar unit doesn't support Extended Interrupt Mode!", __func__);
|
||||
ret = -ENODEV;
|
||||
} else {
|
||||
if ((iommu_ecap_c(dmar_unit->ecap) == 0U) && (dmar_unit->drhd->ignore != 0U)) {
|
||||
if ((iommu_ecap_c(dmar_unit->ecap) == 0U) && (!dmar_unit->drhd->ignore)) {
|
||||
iommu_page_walk_coherent = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user