Ubuntu-focal-kernel/tools/kvm
Gavin Shan fa7b399efb tools/kvm_stat: Fix kvm_exit filter name
BugLink: https://bugs.launchpad.net/bugs/1863588

commit 5fcf3a55a6 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: Andrew Jones <drjones@redhat.com>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2020-02-17 11:10:45 +01:00
..
kvm_stat tools/kvm_stat: Fix kvm_exit filter name 2020-02-17 11:10:45 +01:00