Thread (4 messages) flat view 4 messages, 2 authors, 2014-12-23

Re: [PATCH] powerpc/kvm: Create proper names for the kvm_host_state PMU fields

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2014-07-11 04:46:28
Also in: kvm

On Thu, 2014-07-10 at 12:16 +0200, Alexander Graf wrote:
On 10.07.14 11:34, Michael Ellerman wrote:
quoted
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 <redacted>
Thanks.
I still think this whole code path should just be C though.
Yeah it probably should.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help