s390: uv: Fix sysfs max number of VCPUs reporting
authorJanosch Frank <frankja@linux.ibm.com>
Wed, 13 Jan 2021 16:56:26 +0000 (11:56 -0500)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 27 Jan 2021 12:00:04 +0000 (13:00 +0100)
commite82080e1f456467cc185fe65ee69fe9f9bd0b576
tree7d644bfce897f306f619ab521c39c43b9dea7a0a
parent6c12a6384e0c0b96debd88b24028e58f2ebd417b
s390: uv: Fix sysfs max number of VCPUs reporting

The number reported by the query is N-1 and I think people reading the
sysfs file would expect N instead. For users creating VMs there's no
actual difference because KVM's limit is currently below the UV's
limit.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Fixes: a0f60f8431999 ("s390/protvirt: Add sysfs firmware interface for Ultravisor information")
Cc: stable@vger.kernel.org
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/uv.c
arch/s390/include/asm/uv.h
arch/s390/kernel/uv.c