From patchwork Tue Nov 22 16:12:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nico Boehr X-Patchwork-Id: 13052538 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 CF6D6C4332F for ; Tue, 22 Nov 2022 16:15:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234287AbiKVQPX (ORCPT ); Tue, 22 Nov 2022 11:15:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234247AbiKVQOq (ORCPT ); Tue, 22 Nov 2022 11:14:46 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BEB5803C for ; Tue, 22 Nov 2022 08:12:51 -0800 (PST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AMG04Kt005812 for ; Tue, 22 Nov 2022 16:12:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=tdys4BjeTRkU3YwswFFH5WxjVF8kxEAtvj0EgpsVh8s=; b=ksi7c3VslpnjojHq3smyKFKrW1OGV2hnq4zMrtFfiHDlTOUTJYJgi8DKZ5v3q2CBP14Y W6WUtnRzZ4pVmhN0NFXRiM2vJe9tNcgMfWwKlR0+KQz6DfZO/iZgbeQHBa+CLIVd5FVY 1I6OCz43stPIrALGKRG+RlocU7wo9N0poMoDsqQwWekNQ3FdhgeNoYhWz5T3s/pRY+4R hxObGIdd7mmWzSp3yN+vB14YQEK/0ng9Trl/ZfnzWRIinO5SbW7y98nnMldXDrKolNzZ YbjM8oXtfEpjr7hdKiHpP0+98iRdI+cG65szwJRBh3uLUygtwVK5xROM6NyVMky5as3n QA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3m0ytabphe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 Nov 2022 16:12:50 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2AMFfk4g010120 for ; Tue, 22 Nov 2022 16:12:49 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3m0ytabpgx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 16:12:49 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2AMG6O92007461; Tue, 22 Nov 2022 16:12:47 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma01fra.de.ibm.com with ESMTP id 3kxps939wk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 16:12:47 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2AMGCi2d6292054 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Nov 2022 16:12:44 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6D2954C046; Tue, 22 Nov 2022 16:12:44 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2E7A14C040; Tue, 22 Nov 2022 16:12:44 +0000 (GMT) Received: from a46lp57.lnxne.boe (unknown [9.152.108.100]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 22 Nov 2022 16:12:44 +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 v1 0/2] s390x: test CMM during migration Date: Tue, 22 Nov 2022 17:12:41 +0100 Message-Id: <20221122161243.214814-1-nrb@linux.ibm.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: VjuxAkvfE7dVg4Nn8Ao2bj9H5gjbWG9H X-Proofpoint-GUID: XVRC76EurwtO4Ef-DesLVKY5KRMSD6vk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-22_09,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=658 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220117 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Add a test which changes CMM page states while VM is being migrated. Nico Boehr (2): s390x: add a library for CMM-related functions s390x: add CMM test during migration lib/s390x/cmm.c | 83 ++++++++++++++++++++++++++ lib/s390x/cmm.h | 29 +++++++++ s390x/Makefile | 2 + s390x/migration-cmm.c | 36 ++++-------- s390x/migration-during-cmm.c | 111 +++++++++++++++++++++++++++++++++++ s390x/unittests.cfg | 5 ++ 6 files changed, 240 insertions(+), 26 deletions(-) create mode 100644 lib/s390x/cmm.c create mode 100644 lib/s390x/cmm.h create mode 100644 s390x/migration-during-cmm.c