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 4A00DC433FE for ; Tue, 15 Feb 2022 08:48:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234785AbiBOIsX (ORCPT ); Tue, 15 Feb 2022 03:48:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbiBOIsW (ORCPT ); Tue, 15 Feb 2022 03:48:22 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65E541133ED; Tue, 15 Feb 2022 00:48:13 -0800 (PST) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21F8KOPF014556; Tue, 15 Feb 2022 08:48:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=7icf5qekzQOC/6fq3IRbMa9wpegyw5IO/3M29FyNHJA=; b=HhHYr+cdpYY7T4IS53QSBPmByGpLBGZIrcN0MZKj5q1ovcXEHzv9wwXJNfuPUJDLDIuQ 7i1dwgRMK+h11DlM9l929pYTEORfcjs2bZSkl5nDz4nTVsFihoDRnTtLMMOWfNMtT1vr 6zPEXfLXYHdxpVGMylen6luVux5/hSsmNUTvoh2NV0BXdRNRUycHcCgJO/Ycz2qjll6i UPbhXs2B5eKCv1+32s3mTVDQmul9UP8koeLtD5XQZxOvLIXE2RxDfQzAmaAPWnMAuHjF JOd4M10p8DTvJd2XU3qwkcMqK3HtjoY6AUN3khu2gQhqunlufuMazENK9q4hEOFQn1CP IA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e8621by82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 08:48:13 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 21F8jV3X008118; Tue, 15 Feb 2022 08:48:12 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e8621by7a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 08:48:12 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21F8m0Xm008751; Tue, 15 Feb 2022 08:48:10 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma02fra.de.ibm.com with ESMTP id 3e64h9kfjc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 08:48:09 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21F8bj0s43188554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 08:37:45 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E39DA4062; Tue, 15 Feb 2022 08:48:05 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 09231A405B; Tue, 15 Feb 2022 08:48:05 +0000 (GMT) Received: from [9.171.31.140] (unknown [9.171.31.140]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 15 Feb 2022 08:48:04 +0000 (GMT) Message-ID: Date: Tue, 15 Feb 2022 09:50:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [kvm-unit-tests PATCH v4 3/4] s390x: topology: Check the Perform Topology Function Content-Language: en-US To: Nico Boehr , linux-s390@vger.kernel.org Cc: frankja@linux.ibm.com, thuth@redhat.com, kvm@vger.kernel.org, cohuck@redhat.com, imbrenda@linux.ibm.com, david@redhat.com References: <20220208132709.48291-1-pmorel@linux.ibm.com> <20220208132709.48291-4-pmorel@linux.ibm.com> <8dd704d23f8a14907ed2a7f28ec3ac52685ab96c.camel@linux.ibm.com> From: Pierre Morel In-Reply-To: <8dd704d23f8a14907ed2a7f28ec3ac52685ab96c.camel@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: loO3vzq5FJ_9T2aSDtv8MdkKkxAqkRLG X-Proofpoint-GUID: R--7QuiyHB5CQlqseQB4hwlbvrH6LHpL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-15_03,2022-02-14_04,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 bulkscore=0 spamscore=0 mlxscore=0 phishscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202150048 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2/9/22 12:37, Nico Boehr wrote: > On Tue, 2022-02-08 at 14:27 +0100, Pierre Morel wrote: >> We check the PTF instruction. > > You could test some very basic things as well: > > - you get a privileged pgm int in problem state, > - reserved bits in first operand cause specification pgm int, > - reserved FC values result in a specification pgm int, > - second operand is ignored. Which second operand? > >> >> - We do not expect to support vertical polarization. >> >> - We do not expect the Modified Topology Change Report to be > [...] > > Forgive me if I'm missing something, but why _Modified_ Topology Change > Report? > >> diff --git a/s390x/topology.c b/s390x/topology.c >> new file mode 100644 >> index 00000000..a1f9ce51 >> --- /dev/null >> +++ b/s390x/topology.c > > [...] > >> +static int ptf(unsigned long fc, unsigned long *rc) >> +{ >> +       int cc; >> + >> +       asm volatile( >> +               "       .insn   rre,0xb9a20000,%1,0\n" >> +               "       ipm     %0\n" >> +               "       srl     %0,28\n" >> +               : "=d" (cc), "+d" (fc) >> +               : "d" (fc) > > Why list fc here again? > > -- Pierre Morel IBM Lab Boeblingen