Skip to content
Commit 5fcf3a55 authored by Gavin Shan's avatar Gavin Shan Committed by Paolo Bonzini
Browse files

tools/kvm_stat: Fix kvm_exit filter name



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 through ioctl(fd, SET_FILTER).

Reported-by: default avatarAndrew Jones <drjones@redhat.com>
Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 56871d44
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment