diff options
author | Marc Zyngier <maz@kernel.org> | 2025-05-14 11:34:58 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2025-05-19 08:01:19 +0100 |
commit | 6ec4c371d4223adae6f9c0f7f1bd014d381b2170 (patch) | |
tree | f1238671c66470a521559bafce16072b8caca841 | |
parent | aa98df31f6b42d3379869b82588bebaec4ce474b (diff) |
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>
-rw-r--r-- | arch/arm64/kvm/emulate-nested.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/arm64/kvm/emulate-nested.c b/arch/arm64/kvm/emulate-nested.c index 0fcfcc0478f9..5e9fec251684 100644 --- a/arch/arm64/kvm/emulate-nested.c +++ b/arch/arm64/kvm/emulate-nested.c @@ -2471,13 +2471,6 @@ void kvm_emulate_nested_eret(struct kvm_vcpu *vcpu) { u64 spsr, elr, esr; - /* - * Forward this trap to the virtual EL2 if the virtual - * HCR_EL2.NV bit is set and this is coming from !EL2. - */ - if (forward_hcr_traps(vcpu, HCR_NV)) - return; - spsr = vcpu_read_sys_reg(vcpu, SPSR_EL2); spsr = kvm_check_illegal_exception_return(vcpu, spsr); |