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: NAndrew Jones <drjones@redhat.com> Signed-off-by: NGavin Shan <gshan@redhat.com> Reviewed-by: NHailiang Zhang <zhang.zhanghailiang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录