Revert "ANDROID: KVM: arm64: s2mpu: Allow L1ENTRY_* r/o access"

This reverts commit fdfed49bf7.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I8558f5d4c197f1f52104e44b8b78f316a61db137
This commit is contained in:
Will Deacon
2022-07-07 15:48:50 +01:00
parent 12c8829443
commit 2ab7a04c0c

View File

@@ -402,11 +402,6 @@ static u32 host_mmio_reg_access_mask(size_t off, bool is_write)
return read_only & ALL_VIDS_BITMAP;
}
/* Allow reading L1ENTRY registers for debugging. */
if (off >= REG_NS_L1ENTRY_L2TABLE_ADDR(0, 0) &&
off < REG_NS_L1ENTRY_ATTR(NR_VIDS, 0))
return read_only;
/* Allow EL1 IRQ handler to read fault information. */
masked_off = off & ~REG_NS_FAULT_VID_MASK;
if ((masked_off == REG_NS_FAULT_PA_LOW(0)) ||