Skip to content

Commit 8f7f4fe

Browse files
author
Marc Zyngier
committed
KVM: arm64: Drop obsolete comment about sys_reg ordering
The general comment about keeping the enum order in sync with the save/restore code has been obsolete for many years now. Just drop it. Note that there are other ordering requirements in the enum, such as the PtrAuth and PMU registers, which are still valid. Reported-by: James Morse <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent d9d7d84 commit 8f7f4fe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/arm64/include/asm/kvm_host.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,8 @@ struct kvm_vcpu_fault_info {
115115
u64 disr_el1; /* Deferred [SError] Status Register */
116116
};
117117

118-
/*
119-
* 0 is reserved as an invalid value.
120-
* Order should be kept in sync with the save/restore code.
121-
*/
122118
enum vcpu_sysreg {
123-
__INVALID_SYSREG__,
119+
__INVALID_SYSREG__, /* 0 is reserved as an invalid value */
124120
MPIDR_EL1, /* MultiProcessor Affinity Register */
125121
CSSELR_EL1, /* Cache Size Selection Register */
126122
SCTLR_EL1, /* System Control Register */

0 commit comments

Comments
 (0)