Skip to content

Commit 7fd498f

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: Always populate the trap configuration xarray
As we are going to rely more and more on the global xarray that contains the trap configuration, always populate it, even in the non-NV case. Reviewed-by: Joey Gouly <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 89bc63f commit 7fd498f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/arm64/kvm/sys_regs.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3995,8 +3995,5 @@ int __init kvm_sys_reg_table_init(void)
39953995
if (!first_idreg)
39963996
return -EINVAL;
39973997

3998-
if (kvm_get_mode() == KVM_MODE_NV)
3999-
return populate_nv_trap_config();
4000-
4001-
return 0;
3998+
return populate_nv_trap_config();
40023999
}

0 commit comments

Comments
 (0)