Skip to content

Commit 1a0b2bf

Browse files
Jinqian YangMarc Zyngier
authored andcommitted
KVM: arm64: Make ID_AA64MMFR1_EL1.{HCX, TWED} writable from userspace
Allow userspace to downgrade {HCX, TWED} in ID_AA64MMFR1_EL1. Userspace can only change the value from high to low. Signed-off-by: Jinqian Yang <yangjinqian1@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent ac53365 commit 1a0b2bf

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/arm64/kvm/sys_regs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,8 +3152,6 @@ static const struct sys_reg_desc sys_reg_descs[] = {
31523152
~(ID_AA64MMFR0_EL1_RES0 |
31533153
ID_AA64MMFR0_EL1_ASIDBITS)),
31543154
ID_WRITABLE(ID_AA64MMFR1_EL1, ~(ID_AA64MMFR1_EL1_RES0 |
3155-
ID_AA64MMFR1_EL1_HCX |
3156-
ID_AA64MMFR1_EL1_TWED |
31573155
ID_AA64MMFR1_EL1_XNX |
31583156
ID_AA64MMFR1_EL1_VH |
31593157
ID_AA64MMFR1_EL1_VMIDBits)),

0 commit comments

Comments
 (0)