Allow selective runtime register synchronization
commit420840e58b85f7f4e5493dca3f273566f261090a
authorJason J. Herne <jjherne@us.ibm.com>
Thu, 25 Apr 2013 04:25:50 +0000 (25 04:25 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:18:24 +0000 (26 20:18 +0200)
tree5a7dc181c082e7be48acbbc871cdf54d56d99c68
parent7dc5af5545bb72e1343cc959b3f0e5cdd8758f1f
Allow selective runtime register synchronization

We want to avoid expensive register synchronization IOCTL's on the hot path so
a new kvm_s390_get_registers_partial() is introduced as a compliment to
kvm_arch_get_registers().  The new function is called on the hot path, and
kvm_arch_get_registers() is called when we need the complete runtime register
state.

kvm_arch_put_registers() is updated to only sync the partial runtime set when
we've only dirtied the partial runtime set.  This is to avoid sending bad data
back to KVM if we've only partially synced the runtime register set.

Signed-off-by: Jason J. Herne <jjherne@us.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/cpu.h
target-s390x/kvm.c