Skip to content

Commit 9cb2c20

Browse files
Dongxu SunOliver Upton
authored andcommitted
KVM: arm64: Remove unused vcpu_{clear,set}_wfx_traps()
Function vcpu_{clear,set}_wfx_traps() are unused since commit 0b5afe0 ("KVM: arm64: Add early_param to control WFx trapping"). Remove it. Reviewed-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Dongxu Sun <sundongxu1024@163.com> Link: https://msgid.link/20260109080226.761107-1-sundongxu1024@163.com Signed-off-by: Oliver Upton <oupton@kernel.org>
1 parent d252c78 commit 9cb2c20

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

arch/arm64/include/asm/kvm_emulate.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,6 @@ static inline unsigned long *vcpu_hcr(struct kvm_vcpu *vcpu)
119119
return (unsigned long *)&vcpu->arch.hcr_el2;
120120
}
121121

122-
static inline void vcpu_clear_wfx_traps(struct kvm_vcpu *vcpu)
123-
{
124-
vcpu->arch.hcr_el2 &= ~HCR_TWE;
125-
if (atomic_read(&vcpu->arch.vgic_cpu.vgic_v3.its_vpe.vlpi_count) ||
126-
vcpu->kvm->arch.vgic.nassgireq)
127-
vcpu->arch.hcr_el2 &= ~HCR_TWI;
128-
else
129-
vcpu->arch.hcr_el2 |= HCR_TWI;
130-
}
131-
132-
static inline void vcpu_set_wfx_traps(struct kvm_vcpu *vcpu)
133-
{
134-
vcpu->arch.hcr_el2 |= HCR_TWE;
135-
vcpu->arch.hcr_el2 |= HCR_TWI;
136-
}
137-
138122
static inline unsigned long vcpu_get_vsesr(struct kvm_vcpu *vcpu)
139123
{
140124
return vcpu->arch.vsesr_el2;

0 commit comments

Comments
 (0)