summaryrefslogtreecommitdiffstats
path: root/arch/s390/boot/uv.c
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2021-01-13 11:56:26 -0500
committerVasily Gorbik <gor@linux.ibm.com>2021-01-27 13:00:04 +0100
commite82080e1f456467cc185fe65ee69fe9f9bd0b576 (patch)
tree7d644bfce897f306f619ab521c39c43b9dea7a0a /arch/s390/boot/uv.c
parent6c12a6384e0c0b96debd88b24028e58f2ebd417b (diff)
downloadlinux-e82080e1f456467cc185fe65ee69fe9f9bd0b576.tar.gz
linux-e82080e1f456467cc185fe65ee69fe9f9bd0b576.tar.bz2
linux-e82080e1f456467cc185fe65ee69fe9f9bd0b576.zip
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>
Diffstat (limited to 'arch/s390/boot/uv.c')
-rw-r--r--arch/s390/boot/uv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c
index a15c033f53ca..87641dd65ccf 100644
--- a/arch/s390/boot/uv.c
+++ b/arch/s390/boot/uv.c
@@ -35,7 +35,7 @@ void uv_query_info(void)
uv_info.guest_cpu_stor_len = uvcb.cpu_stor_len;
uv_info.max_sec_stor_addr = ALIGN(uvcb.max_guest_stor_addr, PAGE_SIZE);
uv_info.max_num_sec_conf = uvcb.max_num_sec_conf;
- uv_info.max_guest_cpus = uvcb.max_guest_cpus;
+ uv_info.max_guest_cpu_id = uvcb.max_guest_cpu_id;
}
#ifdef CONFIG_PROTECTED_VIRTUALIZATION_GUEST