diff mbox series

KVM: arm64: remove duplicated AA64MMFR1_EL1 XNX

Message ID E1s2AxF-00AWLv-03@rmk-PC.armlinux.org.uk (mailing list archive)
State New, archived
Headers show
Series KVM: arm64: remove duplicated AA64MMFR1_EL1 XNX | expand

Commit Message

Russell King (Oracle) May 1, 2024, 2:29 p.m. UTC
Commit d5a32b60dc18 ("KVM: arm64: Allow userspace to change
ID_AA64MMFR{0-2}_EL1") made certain fields in these registers writable,
but in doing so, ID_AA64MMFR1_EL1_XNX was listed twice. Remove the
duplication.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
 arch/arm64/kvm/sys_regs.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Zenghui Yu May 1, 2024, 2:39 p.m. UTC | #1
On 2024/5/1 22:29, Russell King (Oracle) wrote:
> Commit d5a32b60dc18 ("KVM: arm64: Allow userspace to change
> ID_AA64MMFR{0-2}_EL1") made certain fields in these registers writable,
> but in doing so, ID_AA64MMFR1_EL1_XNX was listed twice. Remove the
> duplication.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

Reviewed-by: Zenghui Yu <zenghui.yu@linux.dev>

Thanks!
Marc Zyngier May 1, 2024, 3:41 p.m. UTC | #2
On Wed, 01 May 2024 15:29:05 +0100, Russell King (Oracle) wrote:
> Commit d5a32b60dc18 ("KVM: arm64: Allow userspace to change
> ID_AA64MMFR{0-2}_EL1") made certain fields in these registers writable,
> but in doing so, ID_AA64MMFR1_EL1_XNX was listed twice. Remove the
> duplication.
> 
> 

Applied to next, thanks!

[1/1] KVM: arm64: remove duplicated AA64MMFR1_EL1 XNX
      commit: e8533e58cae02923e8cbffca516d3d821cee1649

Cheers,

	M.
diff mbox series

Patch

diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
index 3aa2cedb283a..0cc289b17665 100644
--- a/arch/arm64/kvm/sys_regs.c
+++ b/arch/arm64/kvm/sys_regs.c
@@ -2338,7 +2338,6 @@  static const struct sys_reg_desc sys_reg_descs[] = {
 					ID_AA64MMFR0_EL1_TGRAN16_2)),
 	ID_WRITABLE(ID_AA64MMFR1_EL1, ~(ID_AA64MMFR1_EL1_RES0 |
 					ID_AA64MMFR1_EL1_HCX |
-					ID_AA64MMFR1_EL1_XNX |
 					ID_AA64MMFR1_EL1_TWED |
 					ID_AA64MMFR1_EL1_XNX |
 					ID_AA64MMFR1_EL1_VH |