]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/vPMU: Declare kvm_pmu->reprogram_pmi field using DECLARE_BITMAP
authorLike Xu <like.xu@linux.intel.com>
Mon, 21 Oct 2019 10:55:04 +0000 (18:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:39:32 +0000 (13:39 +0200)
commit503f8ab0fd57321cbffa225e8445908c7fa717b2
treef659165d77e60fc72d9202064d968ffd213e7e92
parentb5c9339e92cd3e0d1b9154b74481f376c72d4f69
KVM: x86/vPMU: Declare kvm_pmu->reprogram_pmi field using DECLARE_BITMAP

Replace the explicit declaration of "u64 reprogram_pmi" with the generic
macro DECLARE_BITMAP for all possible appropriate number of bits.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/pmu.c