Skip to content

Commit 6ec4c37

Browse files
author
Marc Zyngier
committed
KVM: arm64: nv: Remove dead code from ERET handling
Cleanly, this code cannot trigger, since we filter this from the caller. Drop it. Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Link: https://lore.kernel.org/r/20250514103501.2225951-16-maz@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent aa98df3 commit 6ec4c37

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/arm64/kvm/emulate-nested.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,13 +2471,6 @@ void kvm_emulate_nested_eret(struct kvm_vcpu *vcpu)
24712471
{
24722472
u64 spsr, elr, esr;
24732473

2474-
/*
2475-
* Forward this trap to the virtual EL2 if the virtual
2476-
* HCR_EL2.NV bit is set and this is coming from !EL2.
2477-
*/
2478-
if (forward_hcr_traps(vcpu, HCR_NV))
2479-
return;
2480-
24812474
spsr = vcpu_read_sys_reg(vcpu, SPSR_EL2);
24822475
spsr = kvm_check_illegal_exception_return(vcpu, spsr);
24832476

0 commit comments

Comments
 (0)