Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4442886ioo; Tue, 31 May 2022 04:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjMKXmVjrQcTb6+hxyscjfQ6zX0CuR60vJqX3WyeNOiV04EfRpQ0h0Bl5Jezl09HijmHfn X-Received: by 2002:a17:90b:1b41:b0:1e0:17f:d17 with SMTP id nv1-20020a17090b1b4100b001e0017f0d17mr27883915pjb.85.1653997587341; Tue, 31 May 2022 04:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653997587; cv=none; d=google.com; s=arc-20160816; b=dERPPj3TZsKSNT+tllyu3caoqiFjgrTkZhFzpg98E44/5lGBIENbXqK4kIG1DEBPnu +zXNxyRYL6klI8th15OVgzWNo2nCZIgN5+TF5KVeN1/yxLGAdN8WbBhZBXhTBL8or2mU EfIwXmJw23+Gl3SbR4pto8+DOSy4TO8seajs1qJNpmBFs/SJ5EU39IE2obGJeOB/SNeD MnPn84qCOdsex2cjDQba8bbYptb+AC7H7BYojiBUOitvMJHdelvUfUyMb/kcwJtipgD3 cIhE7MkWMC/sHIebLkZCAskit1SLGfUcrE7aYMUeH2KnYNfwTe5eZeq38ObewXDf9xVT 1I3Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=djv0+l8cdCMs2AXk4dJ8GHFW/CWC71QuRmanB9cAsqg=; b=XsGGLuub13ApF9i8i8RUfxWGaH9pzRzAFcoE514ka5Y9iOvxV8BZlpLo7QR58nwTTt APMbh9z7qDS0CkClBY+fyXaxWkpUfwPCpjw7RFDElzXJqRWwWYYbMm+fXg9/eO2C2x9b wg0YMcwoU8+ou6H6C6AKsQ54xGcBVjNFOF9vkmlQTnOkvqcq7YUlRQJa2fCfMbXQDjrI bMcllOKm6/lg4tJlL6iBwz1tRqTPAFJfZBvzkV+KpmXaJQjYNdQzOFKDU52DhdelsOWl jzdGYZyinntIyfpgVyx6q6tFy+dbApkhiMx3qtRICQbKTKxFkUDoUdBI2UX/StsK7nIm QIJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=CAWbxK5V; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l63-20020a639142000000b003fc5209dbdesi2549813pge.646.2022.05.31.04.46.08; Tue, 31 May 2022 04:46:27 -0700 (PDT) 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=CAWbxK5V; 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 S235295AbiE3Knc (ORCPT + 99 others); Mon, 30 May 2022 06:43:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235266AbiE3Kn1 (ORCPT ); Mon, 30 May 2022 06:43:27 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 195967092E; Mon, 30 May 2022 03:43:25 -0700 (PDT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24U9Xubs013204; Mon, 30 May 2022 10:43:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=djv0+l8cdCMs2AXk4dJ8GHFW/CWC71QuRmanB9cAsqg=; b=CAWbxK5VNQlr4OUhaD5+wMj6uZCjRTNXtw8tF/JJE+c2epFaxKbY4HzLGiz3tWUx9iX3 mq639SB+Cvpzbd9uUhjltXVadIENU0r7wIJI1vPcwk4BCLb5MVGWsv7g/uH3r1JyPR6H WS11YT5YS2PyqdZAmfq0TvkYupfVzTsyXjAeR7TwDULZILOCI2MuuhRphQzTtb0/nx74 SSzzXUjlXc8auRZr1Zc9sKiL5T39IYBCBrlJkvK3eJ650WGMrVy/b2QroQsoxckMP3jb HuBQnnz+5JpcinBODUrmbG+5wNx8SlwTO9pUT2JP+Jmc0wR3ppKT8hK/JoounInG7Kpp ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gcudgh74y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 May 2022 10:43:24 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24UAhNJ1008729; Mon, 30 May 2022 10:43:23 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gcudgh74k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 May 2022 10:43:23 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24UAWuLN030403; Mon, 30 May 2022 10:43:22 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 3gbbynjkc8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 May 2022 10:43:21 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24UAhInr44433788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 May 2022 10:43:18 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E552A405B; Mon, 30 May 2022 10:43:18 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 04788A405C; Mon, 30 May 2022 10:43:18 +0000 (GMT) Received: from p-imbrenda (unknown [9.145.12.149]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 30 May 2022 10:43:17 +0000 (GMT) Date: Mon, 30 May 2022 12:43:15 +0200 From: Claudio Imbrenda To: Nico Boehr Cc: kvm@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, thuth@redhat.com, pasic@linux.ibm.com, david@redhat.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, scgl@linux.ibm.com, mimu@linux.ibm.com Subject: Re: [PATCH v10 14/19] KVM: s390: pv: cleanup leftover protected VMs if needed Message-ID: <20220530124315.31dc3742@p-imbrenda> In-Reply-To: References: <20220414080311.1084834-1-imbrenda@linux.ibm.com> <20220414080311.1084834-15-imbrenda@linux.ibm.com> Organization: IBM X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: oHh5hNQ89EDiVKZ149snJANkX2vEhK2N X-Proofpoint-ORIG-GUID: aL4QO2Clu9DBGL2q9Rswrbb_9gR3oo80 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-30_03,2022-05-30_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 phishscore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205300055 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, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 May 2022 10:11:37 +0200 Nico Boehr wrote: > On Thu, 2022-04-14 at 10:03 +0200, Claudio Imbrenda wrote: > [...] > > diff --git a/arch/s390/kvm/pv.c b/arch/s390/kvm/pv.c > > index bd850be08c86..b20f2cbd43d9 100644 > > --- a/arch/s390/kvm/pv.c > > +++ b/arch/s390/kvm/pv.c > > @@ -17,6 +17,19 @@ > [...] > > +/** > > + * @struct deferred_priv > > + * Represents a "leftover" protected VM that is still registered > > with the > > + * Ultravisor, but which does not correspond any longer to an active > > KVM VM. > > + */ > > +struct deferred_priv { > > Why not just name this leftover_vm? because I did not think of it :) will fix