Skip to content

Commit 7311467

Browse files
Marc Zyngierwilldeacon
authored andcommitted
KVM: arm64: Get rid of kvm_arm_have_ssbd()
kvm_arm_have_ssbd() is now completely unused, get rid of it. Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Will Deacon <will@kernel.org>
1 parent 29e8910 commit 7311467

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

arch/arm64/include/asm/kvm_host.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -631,29 +631,6 @@ static inline void kvm_set_pmu_events(u32 set, struct perf_event_attr *attr) {}
631631
static inline void kvm_clr_pmu_events(u32 clr) {}
632632
#endif
633633

634-
#define KVM_SSBD_UNKNOWN -1
635-
#define KVM_SSBD_FORCE_DISABLE 0
636-
#define KVM_SSBD_KERNEL 1
637-
#define KVM_SSBD_FORCE_ENABLE 2
638-
#define KVM_SSBD_MITIGATED 3
639-
640-
static inline int kvm_arm_have_ssbd(void)
641-
{
642-
switch (arm64_get_ssbd_state()) {
643-
case ARM64_SSBD_FORCE_DISABLE:
644-
return KVM_SSBD_FORCE_DISABLE;
645-
case ARM64_SSBD_KERNEL:
646-
return KVM_SSBD_KERNEL;
647-
case ARM64_SSBD_FORCE_ENABLE:
648-
return KVM_SSBD_FORCE_ENABLE;
649-
case ARM64_SSBD_MITIGATED:
650-
return KVM_SSBD_MITIGATED;
651-
case ARM64_SSBD_UNKNOWN:
652-
default:
653-
return KVM_SSBD_UNKNOWN;
654-
}
655-
}
656-
657634
void kvm_vcpu_load_sysregs_vhe(struct kvm_vcpu *vcpu);
658635
void kvm_vcpu_put_sysregs_vhe(struct kvm_vcpu *vcpu);
659636

0 commit comments

Comments
 (0)