Skip to content

Commit d658220

Browse files
brooniectmarinas
authored andcommitted
arm64/kvm: Fix bitrotted comment for SVE handling in handle_exit.c
The comment on the SVE trap handler in handle_exit.c says that it is a placeholder until we support SVE in guests which we now do for both VHE and nVHE cases so we really shouldn't get here in any sort of standard case. Update the comment to be less immediately incorrect, the handling of such a situation is correct. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent d58071a commit d658220

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/arm64/kvm/handle_exit.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,12 @@ static int kvm_handle_unknown_ec(struct kvm_vcpu *vcpu)
140140
return 1;
141141
}
142142

143+
/*
144+
* Guest access to SVE registers should be routed to this handler only
145+
* when the system doesn't support SVE.
146+
*/
143147
static int handle_sve(struct kvm_vcpu *vcpu)
144148
{
145-
/* Until SVE is supported for guests: */
146149
kvm_inject_undefined(vcpu);
147150
return 1;
148151
}

0 commit comments

Comments
 (0)