KVM: s390: force ibc into valid range
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 4 Apr 2016 11:59:42 +0000 (13:59 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 9 May 2016 11:33:57 +0000 (13:33 +0200)
commit053dd2308d8174566af4ac0059397c3e4042ebfb
tree05824f319c54b5f9f972e07a483343cfa0f979ed
parent9bb0ec099756078118d8079e09f2bf3d6e7e00b6
KVM: s390: force ibc into valid range

Some hardware variants will round the ibc value up/down themselves,
others will report a validity intercept. Let's always round it up/down.

This patch will also make sure that the ibc is set to 0 in case we don't
have ibc support (lowest_ibc == 0).

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c