Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d85e2964 authored by Gavin Shan's avatar Gavin Shan Committed by Greg Kroah-Hartman
Browse files

tools/kvm_stat: Fix kvm_exit filter name



commit 5fcf3a55a62afb0760ccb6f391d62f20bce4a42f upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3696eddd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment