Message ID | 20221111170632.77622-4-imbrenda@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863652wru; Fri, 11 Nov 2022 09:10:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UsbH/t8nYRSRgHbWT1RMkPYfKbrL/2bhaFmnQSl8EERSkNqKxR8rNVfn32Pc/SgEa4LWA X-Received: by 2002:a65:6107:0:b0:43c:758:5190 with SMTP id z7-20020a656107000000b0043c07585190mr2473591pgu.339.1668186603826; Fri, 11 Nov 2022 09:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668186603; cv=none; d=google.com; s=arc-20160816; b=yucxygxkEXTs2pIY0tkC4mFVOXoabQ2B3jOM4f2WR6rPmVXlITV8Y4LVA+5axOjcUT jGFvnRKrW3I0weyvVEGrNbt1k5YuVryIpgmQW36KhX0ERoCKl2ofYdtKEmRQi0Pxdjb3 HTdAg2GYbvZZ4xRrV23EmebizPdvh8KlCQRKQe5/hAe17vOaoPUWHZRDqpJkfD+UfYAx myZlExHWGDvB8L9adZheIsTU7cQkbXrLszZx/J0bXAZ1Hu7YqpyRgScAB3M/d1DwYKzO tgEhhSeSCFvQx+MW4y5+lRknmH0NxEBN3KDlcNhflbuUibhj+EP0UoQcahdZ/dyBt14k V/pw== 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=gSqAR6JZt49ZNVZmihd8oAQmZj9HopS4NXqx3uuvPPo=; b=UkUKTnDn+oOdqhdpFjMNWIVvsX+OOj4YqqToY1qAReToUT0iwSJOeBEBo2u+ycVI2e yzt6oNpWdAk8ftcxMxxjuH3ECuw5cG1Cp7NDOm829ExvJ9YyTyjuN+ZpduQfRFlVw6KB n1HmTehG+KADBaG+HaTcW3pxdJHWtwLh8gc3OaLMM3GY5HrpdGdcEeUPMM36aRnyiJDI vBqhM6IdVUOqMy9jGNO0Ywk5EQ+jjI1JJjWDJrkrRoTg8MW0lgfBh4j656+xpc8XX/zJ P0klf6dzyNXGjvFJ9kCJw3HV4vfRF03qLHu9IB+WeRiSXETu4WBrpUtHbzVN+IY1VfBo zGyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=EWpPgKYE; 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=NONE 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 j3-20020a63cf03000000b00455bdca34dcsi2982798pgg.88.2022.11.11.09.09.49; Fri, 11 Nov 2022 09:10:03 -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=EWpPgKYE; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234182AbiKKRHM (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 12:07:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233438AbiKKRGs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 12:06:48 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F002D7341C; Fri, 11 Nov 2022 09:06:46 -0800 (PST) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2ABGpFUO002277; Fri, 11 Nov 2022 17:06:46 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=gSqAR6JZt49ZNVZmihd8oAQmZj9HopS4NXqx3uuvPPo=; b=EWpPgKYEjxhGZ0Npv4sEVTOhZG/r7+2G3pO08jMuk42BGTijWK58lotxDZGKy8pmT71D F7LRCkI4MuWt0Jd3YuTPaDCuVDsqhXJzoGYyY+BqHa/j9reAKs4TF78hivYEPMx8+ovF xHscxu15JWD2itj0r9SsRY+8Ju3VOs+PDZ9kyqf/yQKsUM+8mKxrXFUMkgLe/65HmvKV 3iUw0o20Sh0xPmJHBXdPuX/S+xFzf0JKkhPXakepVkkq5SOatXHxbQFRcWmFCXKPbCxi r6iV9+6OOc6Kif/txEU9hr9uYEMV+umcXI2DQslv2u17n8V+1ANsBCt2xSUfM5xUSoOP Lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kst99gday-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:46 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2ABGuGDN016479; Fri, 11 Nov 2022 17:06:46 GMT Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kst99gd9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:45 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2ABH6h6X019270; Fri, 11 Nov 2022 17:06:43 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04fra.de.ibm.com with ESMTP id 3kngmqphy5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:43 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2ABH6eo17209534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Nov 2022 17:06:40 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 05F4C4C04A; Fri, 11 Nov 2022 17:06:40 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 75CF64C040; Fri, 11 Nov 2022 17:06:39 +0000 (GMT) Received: from localhost.localdomain (unknown [9.171.65.74]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 11 Nov 2022 17:06:39 +0000 (GMT) From: Claudio Imbrenda <imbrenda@linux.ibm.com> To: kvm@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, thuth@redhat.com, david@redhat.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, scgl@linux.ibm.com, seiden@linux.ibm.com, nrb@linux.ibm.com Subject: [PATCH v16 3/6] KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE Date: Fri, 11 Nov 2022 18:06:29 +0100 Message-Id: <20221111170632.77622-4-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111170632.77622-1-imbrenda@linux.ibm.com> References: <20221111170632.77622-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: S5tBgMTR5AbvXKX8Vt7jQpC7ZXmWAvEa X-Proofpoint-GUID: ElHj57TYTM96_xUcSJD4VDPW21Cv1W2u 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-11_08,2022-11-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 phishscore=0 mlxlogscore=698 lowpriorityscore=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxscore=0 suspectscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211110115 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?1749220436048196952?= X-GMAIL-MSGID: =?utf-8?q?1749220436048196952?= |
Series |
KVM: s390: pv: implement lazy destroy for reboot
|
|
Commit Message
Claudio Imbrenda
Nov. 11, 2022, 5:06 p.m. UTC
Add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE to signal that the KVM_PV_ASYNC_DISABLE and KVM_PV_ASYNC_DISABLE_PREPARE commands for the KVM_S390_PV_COMMAND ioctl are available. Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> --- arch/s390/kvm/kvm-s390.c | 3 +++ include/uapi/linux/kvm.h | 1 + 2 files changed, 4 insertions(+)
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index f0abaaf7eea4..b6cc7d2935c0 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -618,6 +618,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_S390_BPB: r = test_facility(82); break; + case KVM_CAP_S390_PROTECTED_ASYNC_DISABLE: + r = async_destroy && is_prot_virt_host(); + break; case KVM_CAP_S390_PROTECTED: r = is_prot_virt_host(); break; diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index b3701b23ca18..d3f86a280858 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1178,6 +1178,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_S390_ZPCI_OP 221 #define KVM_CAP_S390_CPU_TOPOLOGY 222 #define KVM_CAP_DIRTY_LOG_RING_ACQ_REL 223 +#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 224 #ifdef KVM_CAP_IRQ_ROUTING