From patchwork Tue Apr 6 07:40:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Morel X-Patchwork-Id: 12184415 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC836C433ED for ; Tue, 6 Apr 2021 07:41:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 761D5613C0 for ; Tue, 6 Apr 2021 07:41:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244342AbhDFHlX (ORCPT ); Tue, 6 Apr 2021 03:41:23 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:65144 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235491AbhDFHlM (ORCPT ); Tue, 6 Apr 2021 03:41:12 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1367YAH5068691 for ; Tue, 6 Apr 2021 03:41:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp1; bh=Z9ypbj+UeivAzjmDgCPVYWQufBUsOBXwfTgtlzp+LRM=; b=AaAlLQ13CLbzvyR7ror06xkcLj3M8zAn5GCqSeXsmJbedrz/3/shibR9Lvf9ON19fhso EUKBh+0ZsKLAklrriUk9d4AJJg3Abs0sBTnVin0eV+agBY5hJCfo/zKMCpfcGdXlTkv6 yTeoKHxLlZb5+wNgW0Ta9+iUtMbjAV+MDYC5JX3JEUpsdxZHZUyW84AZPOjpBHFH7ndW 5bfrlc44McShbXzwz2smCtDuOnxvgSK2S8kx4FXwRTIjjYzgMBhdF7EWJ4nNzYVvPvvI Tt1kgyAQTNDpo9TbNhQ4TOI3wjKMCGq3qvwl6u4XpFE3CbGk9DufP1Y0xneCMwSnOTkv jw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 37q5eatcqj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 06 Apr 2021 03:41:04 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1367Y8Ww068551 for ; Tue, 6 Apr 2021 03:41:04 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 37q5eatcpb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Apr 2021 03:41:04 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 1367WdQI026032; Tue, 6 Apr 2021 07:41:02 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06ams.nl.ibm.com with ESMTP id 37q2q5hwxu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Apr 2021 07:41:02 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1367exrf25166106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 Apr 2021 07:41:00 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BEB964C06D; Tue, 6 Apr 2021 07:40:58 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85F3B4C04E; Tue, 6 Apr 2021 07:40:58 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.42.152]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 6 Apr 2021 07:40:58 +0000 (GMT) From: Pierre Morel To: kvm@vger.kernel.org Cc: frankja@linux.ibm.com, david@redhat.com, thuth@redhat.com, cohuck@redhat.com, imbrenda@linux.ibm.com Subject: [kvm-unit-tests PATCH v3 11/16] s390x: css: No support for MIDAW Date: Tue, 6 Apr 2021 09:40:48 +0200 Message-Id: <1617694853-6881-12-git-send-email-pmorel@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1617694853-6881-1-git-send-email-pmorel@linux.ibm.com> References: <1617694853-6881-1-git-send-email-pmorel@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: QJ-2BnH2I_PqK4bgYasuv-X4Pq4NDnhV X-Proofpoint-ORIG-GUID: ZR3T2dfx6ZQvmmlgXOO4LFnTa_rc-t77 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-04-06_01:2021-04-01,2021-04-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 mlxscore=0 suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxlogscore=923 clxscore=1015 spamscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104030000 definitions=main-2104060050 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Verify that using MIDAW triggers a operand exception. Signed-off-by: Pierre Morel --- s390x/css.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/s390x/css.c b/s390x/css.c index f8f91cf..56adc16 100644 --- a/s390x/css.c +++ b/s390x/css.c @@ -197,6 +197,18 @@ static void ssch_ccw_dma31(void) free_pages(ccw_high); } +static void ssch_orb_midaw(void) +{ + uint32_t tmp = orb->ctrl; + + orb->ctrl |= ORB_CTRL_MIDAW; + expect_pgm_int(); + ssch(test_device_sid, orb); + check_pgm_int_code(PGM_INT_CODE_OPERAND); + + orb->ctrl = tmp; +} + static struct tests ssh_tests[] = { { "privilege", ssch_privilege }, { "orb cpa zero", ssch_orb_cpa_zero }, @@ -204,6 +216,7 @@ static struct tests ssh_tests[] = { { "data access", ssch_data_access }, { "CCW access", ssch_ccw_access }, { "CCW in DMA31", ssch_ccw_dma31 }, + { "ORB MIDAW unsupported", ssch_orb_midaw }, { NULL, NULL } };