Commit 6b1635af authored by Ying Fang's avatar Ying Fang Committed by Yang Yingliang
Browse files

KVM: tools/kvm_stat: Fix kvm_exit filter name

euleros inclusion
category: bugfix

picked from: https://patchwork.kernel.org/patch/11296413/



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

The filter name is fixed to "exit_reason" for some kvm_exit events, no
matter what architect we have. Actually, the filter name ("exit_reason")
is only applicable to x86, meaning it's broken on other architects
including aarch64.

This fixes the issue by providing various kvm_exit filter names, depending
on architect we're on. Afterwards, the variable filter name is picked and
applied by ioctl(fd, SET_FILTER).

Reported-by: default avatarAndrew Jones <drjones@redhat.com>
Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
Reviewed-by: default avatarHailiang Zhang <zhang.zhanghailiang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent fb11420d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment