提交 8a53b72c 编写于 作者: Z Zenghui Yu 提交者: Zheng Zengkai

KVM: arm64: Fix {fp_asimd,sve}_exit_stat manipulation

virt inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I65EGT
CVE: NA

----------------------------------------------------

Currently fp_asimd_exit_stat is accumulated for *both* FP/ASIMD and SVE
traps so that user can not distinguish between these two via debugfs.

Fix the manipulation for both exception classes.
Signed-off-by: NZenghui Yu <yuzenghui@huawei.com>
Reviewed-by: NKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6c79301e
......@@ -223,7 +223,11 @@ static inline bool __hyp_handle_fpsimd(struct kvm_vcpu *vcpu)
esr_ec != ESR_ELx_EC_SVE)
return false;
if (esr_ec == ESR_ELx_EC_FP_ASIMD)
vcpu->stat.fp_asimd_exit_stat++;
else /* SVE trap */
vcpu->stat.sve_exit_stat++;
/* Don't handle SVE traps for non-SVE vcpus here: */
if (!sve_guest)
if (esr_ec != ESR_ELx_EC_FP_ASIMD)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册