]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in
authorWei Wang <wei.w.wang@intel.com>
Fri, 29 May 2020 07:43:44 +0000 (15:43 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:26:08 +0000 (04:26 -0400)
commit6fe76aec924ab62d795064f31888f1612c4d0dd3
tree11d707b507f4dbb31d06c9c1fe286bc44bab75fb
parente1d5b7cc7226bcfdcc7080575596dbd837028deb
KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in

Change kvm_pmu_get_msr() to get the msr_data struct, as the host_initiated
field from the struct could be used by get_msr. This also makes this API
consistent with kvm_pmu_set_msr. No functional changes.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Message-Id: <20200529074347.124619-2-like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/svm/pmu.c
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/x86.c