]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitcbd717585b8038d93c309176bb563a5c6de60ac7
tree11d707b507f4dbb31d06c9c1fe286bc44bab75fb
parent72de5fa4c16195827252b961ba44028a39dfeaff
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