Revert "ANDROID: KVM: arm64: iommu: No powered check in DABT handler"

This reverts commit 2c05ff981a.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I164f13bb4bd466e86cec2d07cda67a7641049f7a
This commit is contained in:
Will Deacon
2022-07-07 15:48:53 +01:00
parent d3c529951d
commit 57726405ee

View File

@@ -467,8 +467,7 @@ bool pkvm_iommu_host_dabt_handler(struct kvm_cpu_context *host_ctxt, u32 esr,
if (pa < dev->pa || pa >= dev->pa + dev->size)
continue;
/* No 'powered' check - the host assumes it is powered. */
if (!dev->ops->host_dabt_handler ||
if (!dev->powered || !dev->ops->host_dabt_handler ||
!dev->ops->host_dabt_handler(dev, host_ctxt, esr, pa - dev->pa))
return false;