Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp825530ybm; Fri, 29 May 2020 13:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwriJ2Om/dJ7+rml2+4GdDoXMrJBac0EeWWPSVP/iEmQKcEen1h5VwZqsiS8/boR6VXKZF2 X-Received: by 2002:a50:ec8d:: with SMTP id e13mr10529744edr.8.1590782931557; Fri, 29 May 2020 13:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590782931; cv=none; d=google.com; s=arc-20160816; b=nZbDibHRISjwwuSrkeMSj2mFwSOyFLS6wZFUkO9ccnNivNa5tsiPeqNLNhbIIRq8gw rpAKsFt0rPtQhLrP9vbDLvZwOixlIvmomD0DRuYHvON9LomEGxAWktTjw4JRiLBS7V7p qbbldZ3ssoBn14mo8N68bQMQ1/41qUW3Pz6kB62Il38Q7IewEg4V1AbpuqEMV6Gc27CM jo5mCaIDAx8Ce4yGY4KVzF3XmuaLRL/M3p+GOARea7kFeI4uFWiZkGpqERlTjdFE27gT hkjsnmGzcuAkBAAU60Yuc5Uvn3soK5b3ceZs5Y/mIxT4/FqGSrasJXOTseaCol50dEXk L0IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=wqMUoa2my+P+DgdiVWDGMOTY3MwbtbIygrsoEGreKig=; b=O3zQ7063pLf7l/S41msek3IPdjunuZuk6rmtCfE+87ytWh7lTaknEnwWDep/7PsXzI yZGFVQF0aL6MaVqe0akT3M0T/bzLpPDSja4sbD8MadQLsicrXO4V++ptfZ4g/2K26PxG H4T30jR5Jk+JhKXR/42iDNmD9hZeSIj4WKCviHBQV38yaa1g/wa1ks0fz+sgc2oo611G toWZca9/MB7HcuhAawffQnr5sRUZ8jtuzZGAba3qPaagURrj1G7xiRuUY4ON2yY6r+lB r7dACkhgoP7tadB2JB1oCgG9FjB/NyqkVoHvg3GUapmlIUm1PKl3FqsSYtubK35QIGFD cxuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=GrI6JnTa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si4442017ejp.357.2020.05.29.13.08.28; Fri, 29 May 2020 13:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=GrI6JnTa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728304AbgE2UEL (ORCPT + 99 others); Fri, 29 May 2020 16:04:11 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:44810 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728294AbgE2UEJ (ORCPT ); Fri, 29 May 2020 16:04:09 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04TJhDHE003837; Fri, 29 May 2020 20:04:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=wqMUoa2my+P+DgdiVWDGMOTY3MwbtbIygrsoEGreKig=; b=GrI6JnTacbV9JhhSHRCI4oC1lT5tyaAbAFrCAxH4CMYiZFe0f+YD/JiLiuVPvkcbN/Cn dyqcZCdVRCxO205tKOFsO4YDgBAPlepftgRu/B+O6N0BL+7FixvdiF0qoiSjkzpbp2dq FeqrOfrRDDrLWTrMKgD/ddyZkpBZE7wCi5PeeCUdGamWCFo/uGqCNHuHBj02TXUvHwxH z3tBKjKFSn+oD9ZravrHXacUgYDnlUfrhUqUliQWfueze8+l8f5gTOw/shpiYzZKE7gL TIlfaVpLtQ7Z3iilJRufN0CrX75hj299cG9Df5fhOL0BRqswHERezhzP3iNkjDMN9C85 Ww== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 316u8rc8fx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 29 May 2020 20:04:05 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04TJdP9o168607; Fri, 29 May 2020 20:02:04 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 317dduvnf2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 May 2020 20:02:04 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 04TK23qi012263; Fri, 29 May 2020 20:02:03 GMT Received: from localhost.localdomain (/10.159.246.35) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 29 May 2020 13:02:03 -0700 Subject: Re: [PATCH 08/30] KVM: nSVM: move map argument out of enter_svm_guest_mode To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20200529153934.11694-1-pbonzini@redhat.com> <20200529153934.11694-9-pbonzini@redhat.com> <5fa0a52e-3b67-b545-d74a-7e4050e64559@redhat.com> From: Krish Sadhukhan Message-ID: <992d5d56-adda-5dcc-098c-da84038fc978@oracle.com> Date: Fri, 29 May 2020 13:02:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <5fa0a52e-3b67-b545-d74a-7e4050e64559@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9636 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005290147 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9636 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 priorityscore=1501 spamscore=0 cotscore=-2147483648 suspectscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005290147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/29/20 12:04 PM, Paolo Bonzini wrote: > On 29/05/20 20:10, Krish Sadhukhan wrote: >>> Unmapping the nested VMCB in enter_svm_guest_mode is a bit of a wart, >>> since the map is not used elsewhere in the function.  There are >>> just two calls, so move it there. >> The last sentence sounds bit incomplete. > Good point---more precisely, "calls" should be "callers". "It" refers > to "unmapping". > >> Also, does it make sense to mention the reason why unmapping is not >> required before we enter guest mode ? > Unmapping is a host operation and is not visible by the guest; is this > what you mean? Yes, I was thinking if we could mention it in the commit message... -Krish > > Paolo >