kvm_host: unify VM_STAT and VCPU_STAT definitions in a single place
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Tue, 14 Apr 2020 15:56:25 +0000 (17:56 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Apr 2020 13:13:01 +0000 (09:13 -0400)
commit812756a82ea51e3c7ff7ba5e6fa3f34345234bc7
tree99375cdbe1340d971adb9dc0f45800bc0e808d1e
parent63d04348371b7ea4a134bcf47c79763d969e9168
kvm_host: unify VM_STAT and VCPU_STAT definitions in a single place

The macros VM_STAT and VCPU_STAT are redundantly implemented in multiple
files, each used by a different architecure to initialize the debugfs
entries for statistics. Since they all have the same purpose, they can be
unified in a single common definition in include/linux/kvm_host.h

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20200414155625.20559-1-eesposit@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/guest.c
arch/mips/kvm/mips.c
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h