Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp862193pxb; Fri, 22 Apr 2022 12:54:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGmF0tmzt2EKLawdIKAGSSCb0C3YjBitxp7LmSy63RaPhv+IotuWvtUrkCP5EgKyVgZbN/ X-Received: by 2002:a63:4722:0:b0:3a9:fd43:fce9 with SMTP id u34-20020a634722000000b003a9fd43fce9mr5278468pga.620.1650657242044; Fri, 22 Apr 2022 12:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650657242; cv=none; d=google.com; s=arc-20160816; b=AwLAeCNHUGn6sEMUV2uO3C8glSwbDahBlWK0kfc2yt6Pjz+2YnbnZzyRNXhwtk+eai zH23KiCHBr5k7fl2YCewZl5SswxZO2mC+OwGS8rkv8tKZTe/xesVWaEkbjHe0FnJEMGU uVbbj2jChf2pF6nhoykw5cmd6I2K4zLHT0fil0GK+oUy9Cw1X6hBtAONjMmBvW7ytrdV +09y6+UOZzWh+o453Az5jpegC7TOsU9LKVBy4pWTkGes6O/7lohR/Giw7FsmQdLzmXqC srZBBqsHIUrQ+Qx0+VIkiYZZwW7f+crX2lXqV1Yzw5tiNZUYjuI/FY1wPLCd78QBq2Ow 4UdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ArLI73Wo1SazBtj36Saojj2rlHPwZfm3Tsuw4CYSFB0=; b=uNjmcxhptdECtMg9Dxi4mZ9lSQcjUHvlChacYWhUyY4PJ4+gmm6hQDxPvdWTG9RxzC awlBWwF668r5xahsaiUJeCopyjyQEOKZGwdLMycx5M9fXe3WsFGl8Qf8/lJqGkpzXUwT MkYuYOGiVLE3gr+VXvcRYV9Q4xtPXzpXnhqNNFnftb6/w0uOkv9wJlckb/K/+tfqoHmC 1+nSB2TiIT6dCF4f9obSyPJZbhJnIIC9N2i+WU33rvyE3+IGyM9vg7diwffkswRKPdnD fraOuZfnAZ1wj3A1P48sW3LjHVWbNEkna4Agt5Ev6eJnaB6DBoUH7p3Uz7civq1p4bph Bh6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=U0a780jV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w8-20020a170902d70800b0015866d0026bsi8566196ply.575.2022.04.22.12.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=U0a780jV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 380F72316A9; Fri, 22 Apr 2022 11:59:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378413AbiDTMJv (ORCPT + 99 others); Wed, 20 Apr 2022 08:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378395AbiDTMJt (ORCPT ); Wed, 20 Apr 2022 08:09:49 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0BB627FCE; Wed, 20 Apr 2022 05:07:03 -0700 (PDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23K9cP9c009788; Wed, 20 Apr 2022 12:06:56 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=ArLI73Wo1SazBtj36Saojj2rlHPwZfm3Tsuw4CYSFB0=; b=U0a780jVjCalXHtyq1vEF0v6w8KyNzudF/W1ixGEO9dhPEww9p3IMbuSELpb4eHAVBpP iPoqZBGPQfpOu53qSvKdR1tTQ5sq2dF70iwQ8fYGb2gSjODtsr+NSRtrlpkI5tuKAuJK 29H6rtnRji4UAkBg/ah/QSagc0u+yD6Cm+c7+J6psvKytUKzMuB1rGZcWVXQBB4DnqyG cCSbPyHUFlsvHi9iAPVo6NlKRsUHOEtFEaHiRaNmC4BfnqTjq8BweWjeQArcCZseonx9 jl6BeMO1z18R/BE29DRBTZ5rtKM//JWgWIK4908A87ViVbHwJpYGCZ//LdS4vXI2PKsU rQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3fhxh892sy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Apr 2022 12:06:56 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 23KBul0d026896; Wed, 20 Apr 2022 12:06:55 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3fhxh892s8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Apr 2022 12:06:54 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23KC5FGo003092; Wed, 20 Apr 2022 12:06:52 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 3ffne8p8m4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Apr 2022 12:06:52 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23KC6n7P55574874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Apr 2022 12:06:49 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 77BBFA404D; Wed, 20 Apr 2022 12:06:49 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C1944A4040; Wed, 20 Apr 2022 12:06:48 +0000 (GMT) Received: from [9.171.21.171] (unknown [9.171.21.171]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 20 Apr 2022 12:06:48 +0000 (GMT) Message-ID: <1a2eb5a1-dbdb-5767-ff84-aaf1d43b0540@linux.ibm.com> Date: Wed, 20 Apr 2022 14:06:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 3/4] KVM: s390: selftests: Use TAP interface in the tprot test Content-Language: en-US To: Thomas Huth , kvm@vger.kernel.org, Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, David Hildenbrand , Paolo Bonzini , Shuah Khan , linux-s390@vger.kernel.org References: <20220419185857.128351-1-thuth@redhat.com> <20220419185857.128351-4-thuth@redhat.com> <267dc999-edc6-c8fc-b177-e06fb2d259b4@linux.ibm.com> From: Janis Schoetterl-Glausch In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: PyZiokVk0qOVR0j3OzLlA8MSNrvxnF8R X-Proofpoint-GUID: GZ7CVhLQijYEHA1j92pogLWe1X03aQfu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-20_03,2022-04-20_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 mlxscore=0 impostorscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204200073 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/22 13:46, Thomas Huth wrote: > On 20/04/2022 13.38, Janis Schoetterl-Glausch wrote: >> On 4/19/22 20:58, Thomas Huth wrote: >>> The tprot test currently does not have any output (unless one of >>> the TEST_ASSERT statement fails), so it's hard to say for a user >>> whether a certain new sub-test has been included in the binary or >>> not. Let's make this a little bit more user-friendly and include >>> some TAP output via the kselftests.h interface. >>> >>> Signed-off-by: Thomas Huth >>> --- >>>   tools/testing/selftests/kvm/s390x/tprot.c | 28 +++++++++++++++++++---- >>>   1 file changed, 23 insertions(+), 5 deletions(-) >>> >>> diff --git a/tools/testing/selftests/kvm/s390x/tprot.c b/tools/testing/selftests/kvm/s390x/tprot.c >>> index c097b9db495e..baba883d7a6d 100644 >>> --- a/tools/testing/selftests/kvm/s390x/tprot.c >>> +++ b/tools/testing/selftests/kvm/s390x/tprot.c >> >> We're not committing ourselves to any particular test output, are we? >> Your patch considers the stages used for test setup tests themselves, >> which I'm fine with, but would not want to commit to keeping that way forever. > > No commitment - just somewhat more verbose output. If you don't like it, we can also drop this patch, or do it in another way, I don't mind too much. I'm fine with it then. With the braces changed: Reviewed-by: Janis Schoetterl-Glausch > >>> +#define HOST_SYNC(vmp, stage)            \ >>> +{                        \ >>> +    HOST_SYNC_NO_TAP(vmp, stage);        \ >>> +    ksft_test_result_pass("" #stage "\n");    \ >>> +} >>> + >> >> It should not be a problem, but is there any reason you're not using >> do { ... } while(0) or ({ ... }) instead of just braces? > > Yes, that would be better, indeed. > >  Thomas >