KVM: s390: rework code that sets the prefix
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 11 Jan 2012 10:19:32 +0000 (11:19 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:21 +0000 (14:52 +0200)
commit8d26cf7b40b1648c39e77a113dac07ad31363120
tree90aae47b22f248740f8802f2fdc6e28bdca0341b
parent2b036c6b861dc5da295c6fe19a3edcff7093fdeb
KVM: s390: rework code that sets the prefix

There are several places in the kvm module, which set the prefix register.
Since we need to flush the cpu, lets combine this operation into a helper
function. This helper will also explicitely mask out the unused bits.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c