Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2887236pxb; Tue, 19 Jan 2021 08:23:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5swVHW3o0yaAgbWtNtILpzKZdJp6JZPLiNeWtPIYXKLQ85x708NLNaHFnSw5xPftO/mHs X-Received: by 2002:a17:906:5182:: with SMTP id y2mr3623478ejk.92.1611073438560; Tue, 19 Jan 2021 08:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611073438; cv=none; d=google.com; s=arc-20160816; b=H+62xTsGZskxD9+BHYfvzScaEc5uyixKC7ZtjraImwz3BcMIH31CKJdE7KKJxDx/zr moN93ulOl8+tCD7aP1Jvf2ahdIHcnYfSSPeZTWOObafidwjmAQXQucqTTg87kCbihEWs epAkMSn8HbwK9FVZgJkXt3QjiKtEurCYOYIEoo7ufkuo7jKbSiPZz2cxnaUpXobkzauv VtzdyKh3GxTQR2d5O+spdCVgcf/f9Sr+KE6UM1jTj552PLrOi8t8Yw09vkSP7E3gYGx1 uN+LGs2+lyH/f5AHriFutCOXTDUYyVsuEq0KkDzQ9MUJw1mRv0MWajrrCXuuWhzaTNW/ 7nEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=BH8ph4x6tbslCUU39Kg1nnfczx3x5anbI8SBaxkZVBo=; b=CpXDa3HbPAK2yQa2XKaLvp8kMao592mK0jwc0eXkxoyb49hU2iofNLAVhpb5DlJ3pt 4vbiXbogW6+94hcAIEcbCWA6u1R76U66gNecWgxIVwl4PAqJ0e+ahPko4pxSJxQAOVIW nw2nrFpNJSwxYI3ozSr3nUg7n6QVmnNDqpCXz3T1A7cH4CmD2BOJqfdFn142aWzFAG/k E7X8m9WdtBDSsr2ni/zDERJ2AHuDl3pRheXM8SBzbCCquNt9FmhMZp018J8CuTD7BMAo qHAkndFW1nybq9OKMFeS0seL1zUhgZ8ftLnejku6HxWfgM6J6yyXGu46o0I8y5FMaB6p RAQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bSWYUDiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw11si8053536ejb.414.2021.01.19.08.23.34; Tue, 19 Jan 2021 08:23:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bSWYUDiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbhASQWu (ORCPT + 99 others); Tue, 19 Jan 2021 11:22:50 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:26793 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729360AbhASQU6 (ORCPT ); Tue, 19 Jan 2021 11:20:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611073167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BH8ph4x6tbslCUU39Kg1nnfczx3x5anbI8SBaxkZVBo=; b=bSWYUDiKRR1BUZxZftFiKJl0EVEMSGZNJLBE2MMXq9brPdoY4fOC8l+Lpy8M3BYKbwTNiO vMuV7N/UuSvFqjFKYlLP4staiUm1IJ+xeA859PlYEMWT4YP4N9Kkw6W3kHEH9In/L3qZAn Y+7z8l6sKrySsBYaiQ3fBQUP5FWIFzw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-338-l5EMvfv2MhK1e8-RZb0Ofw-1; Tue, 19 Jan 2021 11:19:22 -0500 X-MC-Unique: l5EMvfv2MhK1e8-RZb0Ofw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 047851800D41; Tue, 19 Jan 2021 16:19:21 +0000 (UTC) Received: from gondolin (ovpn-113-246.ams2.redhat.com [10.36.113.246]) by smtp.corp.redhat.com (Postfix) with ESMTP id 05FD519CB0; Tue, 19 Jan 2021 16:19:15 +0000 (UTC) Date: Tue, 19 Jan 2021 17:19:13 +0100 From: Cornelia Huck To: Janosch Frank Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, thuth@redhat.com, david@redhat.com, borntraeger@de.ibm.com, imbrenda@linux.ibm.com, linux-s390@vger.kernel.org, gor@linux.ibm.com, mihajlov@linux.ibm.com Subject: Re: [PATCH 1/2] s390: uv: Fix sysfs max number of VCPUs reporting Message-ID: <20210119171913.29cc4a0d.cohuck@redhat.com> In-Reply-To: <20210119100402.84734-2-frankja@linux.ibm.com> References: <20210119100402.84734-1-frankja@linux.ibm.com> <20210119100402.84734-2-frankja@linux.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jan 2021 05:04:01 -0500 Janosch Frank wrote: > 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. > > The naming of the field is a bit misleading. Number in this context is > used like ID and starts at 0. The query field denotes the maximum > number that can be put into the VCPU number field in the "create > secure CPU" UV call. > > Signed-off-by: Janosch Frank > Fixes: a0f60f8431999 ("s390/protvirt: Add sysfs firmware interface for Ultravisor information") > Cc: stable@vger.kernel.org > --- > arch/s390/boot/uv.c | 2 +- > arch/s390/include/asm/uv.h | 4 ++-- > arch/s390/kernel/uv.c | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) Acked-by: Cornelia Huck