]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: s390: fix sigp set prefix status stored cases
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 26 Jun 2012 14:06:39 +0000 (16:06 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 3 Jul 2012 17:55:35 +0000 (14:55 -0300)
commit0744426e28490357855aafd2ca76c819231851c5
tree6051f189b36552e40e5bceb1453df9b47eb3bc14
parent7ba26c482fcb42b01785ee1f39871fcc636ab3fe
KVM: s390: fix sigp set prefix status stored cases

If an invalid parameter is passed or the addressed cpu is in an
incorrect state sigp set prefix will store a status.
This status must only have bits set as defined by the architecture.
The current kvm implementation missed to clear bits and also did
not set the intended status bit ("and" instead of "or" operation).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/s390/kvm/sigp.c