Message ID | 20221213165405.2953539-10-scgl@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp239144wrn; Tue, 13 Dec 2022 08:57:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6oa7qBBErf/Yv34P7mfZL7MaX7wij2B21xcb2NxqvUCBhHxxzWbjTL74+SNs6o7TjCBvgJ X-Received: by 2002:a17:902:bd44:b0:18f:9b13:5fb9 with SMTP id b4-20020a170902bd4400b0018f9b135fb9mr9223646plx.60.1670950634477; Tue, 13 Dec 2022 08:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670950634; cv=none; d=google.com; s=arc-20160816; b=j/ujLM09a2fzaozJm1Xp9kIlMbCi3xKWc8wcYFWd73lGn+oAkcwBEhssfZCoI3qruW NKpjRNciHW+0jDCIex+yurHINNn39L3n45th63vcbm7cfMyZ+2eQzjxvDXPvx9inhrUC xVucg4yJ63ru+/q0kEXNXhF7YzUBvoCW+5brKpsflnz8cYdwFLkAqZWxvpxn77Nx8myX MRdHfwzdNLzHamYb9MpZnhhJkRhkeSCcWBJdspb3Go/Tm6nDosvojgIUCqf9eRV5POoV 3hy+364GHwOVALaVB65mRP66GEUKKavfLUprRaFTX0tDvuCXXD3lvyPXIyeyY5vyWB8p iKFw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6A/aP7BJ3nG0Wwazdr91e/9HJVSsBU6MWCypzwIyb4Q=; b=N7gDycKdORN013sCY14+3qLtWY4b6El23KS9hst5eqRWrydUvrfuqIciUUPc1NZDFz x7ao+Mk3+0BxvJnG6c/H3YYU/xX7aJ3ZA+S5DyAcEO9kOhmChnRJEUp5+jp2EEI/osou o/5t9c/t5nTnSgNBVTji/5Ovh/anjtbucCHZMD8tTp3LFHya66+DuD78uNU+CC3+d048 0sBSwu4wujQamMEZDN0E2HY3d7bPnXHhUHQsp5oYM5T8PNHjWl1p8AEOk6CCVNpv4tys LPMBGV50Isb8iqKkct/Vhlqx42EHlyEz1lwvmYlUZekHLb++CXSHpL0RqbVh/bS/Ncwl Zo9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Y1ne6+24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a63f04b000000b0043ca0a1f7dasi12467419pgj.674.2022.12.13.08.57.01; Tue, 13 Dec 2022 08:57:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Y1ne6+24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235785AbiLMQyo (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Tue, 13 Dec 2022 11:54:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235715AbiLMQyZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Dec 2022 11:54:25 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B76CB2250E; Tue, 13 Dec 2022 08:54:24 -0800 (PST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BDG8EM9001552; Tue, 13 Dec 2022 16:54:22 GMT 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 : mime-version : content-transfer-encoding; s=pp1; bh=6A/aP7BJ3nG0Wwazdr91e/9HJVSsBU6MWCypzwIyb4Q=; b=Y1ne6+24AJeBM/+VJjpygsz28u7rOHMyH/SqiF8O0a8hpPxbmuvRz3VchC6CMcoYOXSw oF5k8UUsmkjACEGZKq6udUIzDwyzL5UxV2BnXnopPX3Yq3Ps8FR5jzI8oxu0DaiKvFkZ sinIZ6O8TN2cX6PcMXGnCGyXZV8sKRjJbs3nBtC6d27mRNcLTLWFRsncs2V2DcEUcXgM IPQmKvDMy6zEQWBEVaSlAUcHFC4wjdsZxYdqzZtD+Myja938E0m++SHSQeIwK/sq0/3k A1W/IOECp+wcGC8ti5yZCNL9UuTCziFyxlQnC1+IkpywU+wEQT8BkNQOjuRyrw0Djy5p Ew== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mevn6hctp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 16:54:21 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2BDGpItT001903; Tue, 13 Dec 2022 16:54:21 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mevn6hcss-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 16:54:21 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 2BD606Wa030249; Tue, 13 Dec 2022 16:54:18 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3mchr5vfjp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 16:54:18 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2BDGsFMN44368296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2022 16:54:15 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67D8120040; Tue, 13 Dec 2022 16:54:15 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24CD320049; Tue, 13 Dec 2022 16:54:15 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 13 Dec 2022 16:54:15 +0000 (GMT) From: Janis Schoetterl-Glausch <scgl@linux.ibm.com> To: Christian Borntraeger <borntraeger@linux.ibm.com>, Janosch Frank <frankja@linux.ibm.com>, Claudio Imbrenda <imbrenda@linux.ibm.com>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com> Cc: Janis Schoetterl-Glausch <scgl@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Jonathan Corbet <corbet@lwn.net>, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-s390@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>, Shuah Khan <shuah@kernel.org>, Sven Schnelle <svens@linux.ibm.com>, Nico Boehr <nrb@linux.ibm.com> Subject: [PATCH v4 9/9] KVM: s390: selftest: memop: Fix wrong address being used in test Date: Tue, 13 Dec 2022 17:54:05 +0100 Message-Id: <20221213165405.2953539-10-scgl@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221213165405.2953539-1-scgl@linux.ibm.com> References: <20221213165405.2953539-1-scgl@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: gEDZcFEcFufNUgUGd-x5eyQgeLVkCLbn X-Proofpoint-ORIG-GUID: b0_OdHm8MWEsAqBnzVck93oaFsLzzz87 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-13_03,2022-12-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 mlxlogscore=965 lowpriorityscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 phishscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212130147 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752118732037656559?= X-GMAIL-MSGID: =?utf-8?q?1752118732037656559?= |
Series |
KVM: s390: Extend MEM_OP ioctl by storage key checked cmpxchg
|
|
Commit Message
Janis Schoetterl-Glausch
Dec. 13, 2022, 4:54 p.m. UTC
The guest code sets the key for mem1 only. In order to provoke a protection exception the test codes needs to address mem1. Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> --- tools/testing/selftests/kvm/s390x/memop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/kvm/s390x/memop.c b/tools/testing/selftests/kvm/s390x/memop.c index 13c8be28e0cb..bf89f6d6e58a 100644 --- a/tools/testing/selftests/kvm/s390x/memop.c +++ b/tools/testing/selftests/kvm/s390x/memop.c @@ -756,9 +756,9 @@ static void test_errors_key(void) /* vm/vcpu, mismatching keys, fetch protection in effect */ CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, WRITE, mem1, t.size, GADDR_V(mem1), KEY(2)); - CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, READ, mem2, t.size, GADDR_V(mem2), KEY(2)); + CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, READ, mem2, t.size, GADDR_V(mem1), KEY(2)); CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, WRITE, mem1, t.size, GADDR_V(mem1), KEY(2)); - CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, READ, mem2, t.size, GADDR_V(mem2), KEY(2)); + CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, READ, mem2, t.size, GADDR_V(mem1), KEY(2)); kvm_vm_free(t.kvm_vm); }