]> 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)
commit0eb9f56f7c69c71797c823532ed044e160f70082
treef659165d77e60fc72d9202064d968ffd213e7e92
parent620fd6cf2e30e9870b06aee8751ad821fbdb0ed4
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