diff options
author | Athira Rajeev <atrajeev@linux.vnet.ibm.com> | 2020-07-17 16:38:14 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-22 13:56:01 +0200 |
commit | 7e4a145e5b675d5a9182f756950f001eaa256795 (patch) | |
tree | 7ae18c47a13b632fb6e02bd118ede8583244a961 /arch/powerpc/perf/power8-pmu.c | |
parent | powerpc/perf: Update cpu_hw_event to use `struct` for storing MMCR registers (diff) | |
download | linux-7e4a145e5b675d5a9182f756950f001eaa256795.tar.xz linux-7e4a145e5b675d5a9182f756950f001eaa256795.zip |
KVM: PPC: Book3S HV: Cleanup updates for kvm vcpu MMCR
Currently `kvm_vcpu_arch` stores all Monitor Mode Control registers
in a flat array in order: mmcr0, mmcr1, mmcra, mmcr2, mmcrs
Split this to give mmcra and mmcrs its own entries in vcpu and
use a flat array for mmcr0 to mmcr2. This patch implements this
cleanup to make code easier to read.
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
[mpe: Fix MMCRA/MMCR2 uapi breakage as noted by paulus]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1594996707-3727-3-git-send-email-atrajeev@linux.vnet.ibm.com
Diffstat (limited to 'arch/powerpc/perf/power8-pmu.c')
0 files changed, 0 insertions, 0 deletions