From patchwork Wed Dec 21 09:09:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nico Boehr X-Patchwork-Id: 13078559 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 31CC2C4332F for ; Wed, 21 Dec 2022 09:25:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234544AbiLUJZG (ORCPT ); Wed, 21 Dec 2022 04:25:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234516AbiLUJZD (ORCPT ); Wed, 21 Dec 2022 04:25:03 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 112A613CE5 for ; Wed, 21 Dec 2022 01:25:02 -0800 (PST) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BL9C22R011806 for ; Wed, 21 Dec 2022 09:25:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=EwbFRWNNdUtCAMbpQbOEjNg5NcmQbn8Z1OkUI6n2K+c=; b=hgyA9KV221aR+43baBkSs/FXhlvW6YWTiVWnaPz5YfhiTUISbldAiJFr+s1236eKbWqd 53Uvett19FMKlBkMcbFrGYi0/PHqCsW7zEb3ij5t4peH1dLYaXPcV6gxRFaulrkLjHlc QiwBn2TCiHWVgvyrDuqllchJCYFNmfP1LBUxTnI+JSfPTvyKt9vsE05OwZCD5SONjG9i OeANsuO8nOrWORegOYbVcig1brnzERIzvOir7+lINI0BqJLx4W+HkNAMmDmdV1AkIn5v HF6LCsVn5FZwCnAKBM24rMvuetfCDVknSV09af7enbelu4NKViA3u7Pcwiz0kHd5zgy6 hA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mkya3gdbj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 21 Dec 2022 09:25:01 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2BL9CSKb015913 for ; Wed, 21 Dec 2022 09:25:01 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 3mkya3gd5j-14 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Dec 2022 09:25:01 +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 2BL10jSm000918; Wed, 21 Dec 2022 09:09:57 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3mh6ywn995-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Dec 2022 09:09:57 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2BL99s5r41091580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Dec 2022 09:09:54 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 09CCA20043; Wed, 21 Dec 2022 09:09:54 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D408020040; Wed, 21 Dec 2022 09:09:53 +0000 (GMT) Received: from a46lp57.lnxne.boe (unknown [9.152.108.100]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 21 Dec 2022 09:09:53 +0000 (GMT) From: Nico Boehr To: kvm@vger.kernel.org Cc: frankja@linux.ibm.com, imbrenda@linux.ibm.com, thuth@redhat.com Subject: [kvm-unit-tests PATCH v6 0/1] s390x: test CMM during migration Date: Wed, 21 Dec 2022 10:09:52 +0100 Message-Id: <20221221090953.341247-1-nrb@linux.ibm.com> X-Mailer: git-send-email 2.36.1 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: eB5hBOxtTflshsrcb26Al68F5Q1UCZnw X-Proofpoint-ORIG-GUID: ZnDB3IBRPY4KMuYznAUSFQ1TCf2zt0XD X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 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-21_04,2022-12-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 mlxscore=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212210072 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org v5->v6: --- * actually commit changes which were missing in v5, sorry :-( v4->v5: --- * merge migration-during-cmm and migration-cmm into one file and remove the cmm library v3->v4: --- * rebase on top of Claudio's series [kvm-unit-tests PATCH v3 0/2] lib: s390x: add PSW and PSW_WITH_CUR_MASK macros https://lore.kernel.org/kvm/20221130154038.70492-1-imbrenda@linux.ibm.com/ * switch cmm.h to system includes * move const qualifier before struct keyword v2->v3: --- * make allowed_essa_state_masks static (thanks Thomas) * change several variables to unsigned (thanks Claudio) * remove unneeded assignment (thanks Claudio) * fix line length (thanks Claudio) * fix some spellings, line wraps (thanks Thomas) * remove unneeded goto (thanks Thomas) * add migrate_once (thanks Claudio) I introduce migrate_once() only in migration-during-cmm.c for now, but I plan to send a future patch to move it to the library. * add missing READ_ONCE (thanks Claudio) v1->v2: --- * cmm lib: return struct instead of passing in a pointer (thanks Claudio) * cmm lib: remove get_page_addr() (thanks Claudio) * cmm lib: print address of mismatch (thanks Claudio) * cmm lib: misc comments reworked, added and variables renamed * make sure page states change on every iteration (thanks Claudio) * add WRITE_ONCE even when not strictly needed (thanks Claudio) Add a test which changes CMM page states while VM is being migrated. Nico Boehr (1): s390x: add CMM test during migration s390x/migration-cmm.c | 258 +++++++++++++++++++++++++++++++++++++----- s390x/unittests.cfg | 15 ++- 2 files changed, 240 insertions(+), 33 deletions(-)