mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user