From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14D15C433EF for ; Mon, 4 Jul 2022 09:14:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbiGDJOq (ORCPT ); Mon, 4 Jul 2022 05:14:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233497AbiGDJOp (ORCPT ); Mon, 4 Jul 2022 05:14:45 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F24B55599; Mon, 4 Jul 2022 02:14:44 -0700 (PDT) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2648pG5Q026502; Mon, 4 Jul 2022 09:14:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=GYzYqnvthc4s5S3D0h8gYmjUMdJw6fZd+68wP/8HpnY=; b=Q5sS3Ylv9oqsTQImxEyY/RnC8g0CY8PWvOSGtVioUHV1TZagAkFzatLDEa0wF3Q6hGaZ r0JCzKZr8oI0wXoUS48t5yjq8nmeEPzEz4FJp+fS9R5UuC+Rs/HCrbetTPuvED8THYuI mW5x2Ap7s9xXbH9PflMF5msHAytF6OFh0tzwZ5FasRv0k12h4o1DQlMhqqHoDjwcvkiA kkTSOiUcuNeEgXic081MpxND/JCraMvhDa/BzRU5kmBwsbSY26Di6DyueotvF7fmbZDs xDMpIsbkC84WduQJ7ZmKvZKa92m2nOR8LA7CgXhgOGdykV9kdIHTI3UvUi7gre2Oivjk Lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h3w2f0g6b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Jul 2022 09:14:44 +0000 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2648rLb4030611; Mon, 4 Jul 2022 09:14:43 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h3w2f0g5r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Jul 2022 09:14:43 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 26496OjF008570; Mon, 4 Jul 2022 09:14:41 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma03fra.de.ibm.com with ESMTP id 3h2dn8su5k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Jul 2022 09:14:41 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2649EkMK20644126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Jul 2022 09:14:46 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5279342042; Mon, 4 Jul 2022 09:14:38 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AD08C42049; Mon, 4 Jul 2022 09:14:37 +0000 (GMT) Received: from [9.171.76.58] (unknown [9.171.76.58]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 4 Jul 2022 09:14:37 +0000 (GMT) Message-ID: <144ab6c1-3f5f-45f4-5267-c0fd4b5e9696@linux.ibm.com> Date: Mon, 4 Jul 2022 11:14:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v11 2/3] KVM: s390: guest support for topology function Content-Language: en-US From: Janis Schoetterl-Glausch To: Pierre Morel , kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, cohuck@redhat.com, david@redhat.com, thuth@redhat.com, imbrenda@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, wintera@linux.ibm.com, seiden@linux.ibm.com, nrb@linux.ibm.com References: <20220701162559.158313-1-pmorel@linux.ibm.com> <20220701162559.158313-3-pmorel@linux.ibm.com> <579337ac-d040-197f-3553-7c8ff202623a@linux.ibm.com> In-Reply-To: <579337ac-d040-197f-3553-7c8ff202623a@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: oZ-3s6tgjbFUq1J04OIIpKJ6_pKvAOqL X-Proofpoint-ORIG-GUID: Iolh9Yg_7vXTZyFY_nG1DNY9brkOUYtu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-04_07,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 suspectscore=0 phishscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2207040038 Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On 7/4/22 11:08, Janis Schoetterl-Glausch wrote: > On 7/1/22 18:25, Pierre Morel wrote: >> We report a topology change to the guest for any CPU hotplug. >> >> The reporting to the guest is done using the Multiprocessor >> Topology-Change-Report (MTCR) bit of the utility entry in the guest's >> SCA which will be cleared during the interpretation of PTF. >> >> On every vCPU creation we set the MCTR bit to let the guest know the >> next time he uses the PTF with command 2 instruction that the> topology changed and that he should use the STSI(15.1.x) instruction > s/he/it (twice) >> to get the topology details. >> >> STSI(15.1.x) gives information on the CPU configuration topology. >> Let's accept the interception of STSI with the function code 15 and >> let the userland part of the hypervisor handle it when userland >> support the CPU Topology facility. Oops, quoted my own comment, should have been: And the user STSI capability. Also: supportS.