]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kvm: Create proper names for the kvm_host_state PMU fields
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jul 2014 09:34:31 +0000 (19:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Dec 2014 04:45:55 +0000 (15:45 +1100)
commit5abfbb879da0dd887f2255f0186dd3afaf92415a
tree0c34f91c32c3fb06161a3fadc30858ccd743d634
parentb03c17ec3a10c60125be6ea83c3835251a752b52
powerpc/kvm: Create proper names for the kvm_host_state PMU fields

We have two arrays in kvm_host_state that contain register values for
the PMU. Currently we only create an asm-offsets symbol for the base of
the arrays, and do the array offset in the assembly code.

Creating an asm-offsets symbol for each field individually makes the
code much nicer to read, particularly for the MMCRx/SIxR/SDAR fields, and
might have helped us notice the recent double restore bug we had in this
code.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kvm/book3s_hv_interrupts.S
arch/powerpc/kvm/book3s_hv_rmhandlers.S