Commit e8d16497 authored by Shaoqin Huang's avatar Shaoqin Huang Committed by Marc Zyngier
Browse files

KVM: arm64: Use kvm_has_feat() to check if FEAT_SSBS is advertised to the guest



Currently KVM use cpus_have_final_cap() to check if FEAT_SSBS is
advertised to the guest. But if FEAT_SSBS is writable and isn't
advertised to the guest, this is wrong.

Update it to use kvm_has_feat() to check if FEAT_SSBS is advertised
to the guest, thus the KVM can do the right thing if FEAT_SSBS isn't
advertised to the guest.

Signed-off-by: default avatarShaoqin Huang <shahuang@redhat.com>
Link: https://lore.kernel.org/r/20240723072004.1470688-3-shahuang@redhat.com


Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent ffe68b2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment