Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1058954imu; Wed, 23 Jan 2019 10:04:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN4mxqRmVrxYLtUWsSorSON4XCiGwkdAuVt2c8TS/X53QVRHPOnYJN2mME6F7riHRfdN07M1 X-Received: by 2002:a62:31c1:: with SMTP id x184mr3040168pfx.204.1548266659253; Wed, 23 Jan 2019 10:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548266659; cv=none; d=google.com; s=arc-20160816; b=npQNQn5QbL6WUutG6gBtmHJRKmLvvdfoMn+njoU/e9k3irR8OC9Yn5GFOvVQXHl/gy Bg9srPgdih/k2ugoIk+eanxZI9CzbYm0RGVM53AS+V8Dm6nzQi8Xu1kEZwxHC3uhslMT L5eUdhbfEffi2yeIFrSH4yy0phKzj3KmtPcOknLIYt1Z8oqgjDML8F2wNpWAxpbfKF2m W282hNQPfR8fEUEfpE8iHqNwZKjLozRGnJMQoqUbOU87xsvUjIHh6kejdewwsxF8+Z0K tLkngL8SeNXrjjLrFtg3IweSjuTktsPmQjgBOnpnYGlgC4i7TqR+5vt4KoM5WIPWJt7p 4yAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L7KNFaLuoeWXZt5Kqc8T1Znp4vIQhaEABJbxHmrMl9E=; b=nNASc9JcBOBrWAvVqofvjfJt1fKPyLiZ/WJXny6N+wBpasEqF0zB5wME4CrWZuta/G 40MFCs3wmTf/DEJyQhDOs+Bs5YdNtViDNrq57PDzIy7G6NMRC5AzpqWYUZ6thfiHOmg8 8AbEYEFyqPAr07i/faHR7uu8fKjweumSu9jj25ufO7Zg3al7+X/YfDtX0ZvvhzJ5Vamm oh0TbMZbqeJsdoZ0puB6k/z/0C9s19/9JYqOuRzhFBdWk5tD+oTqA6pYvUx/FqOOc3Ov hoHLqsNdWVq2cyyVza/RgCrwaVRxLtcSN2TQK/T5R+sov7F7277yaHoRzoUgO3WGmjWD To7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=5PMC30nF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d39si19210469pla.278.2019.01.23.10.04.02; Wed, 23 Jan 2019 10:04:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=5PMC30nF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726356AbfAWSDi (ORCPT + 99 others); Wed, 23 Jan 2019 13:03:38 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:36672 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbfAWSDi (ORCPT ); Wed, 23 Jan 2019 13:03:38 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0NHx8pb080932; Wed, 23 Jan 2019 18:03:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=L7KNFaLuoeWXZt5Kqc8T1Znp4vIQhaEABJbxHmrMl9E=; b=5PMC30nFSC5R8FSaQxRT2DauyDLSuw1QGYMVhG25F3EhnFQKjDdVBcoML7a1RLJzHHBD WFvSmEQyppOh4qovuovG33IhWFnLc2yATGkXyz/P4iBZYsVvtW2rQNtNGn8YRbCWKVgA dsg6fdQML4bQReZtaJwT2ikPEYntVHNkmZVc2cZeH0UzPSVa/R0G5zGgvIJ+UTcOSERA 69H/KdmieUy+Y+Bwccq/SeBU+rLl2is3zTyI01S7GnXs4P9v/ygvU1hcOqrQqfWP88jm GhHwH4b6Y7QQtbQoDk0mzlJf4jwqUK63EctONYr1KHg9yeIcdf4MxJTCpDDty4VHIJmN pw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2q3vhrud4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jan 2019 18:03:34 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0NI3X9r004197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jan 2019 18:03:33 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0NI3XoL011836; Wed, 23 Jan 2019 18:03:33 GMT Received: from Konrads-MacBook-Pro.local (/75.104.64.133) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2019 10:03:32 -0800 Date: Wed, 23 Jan 2019 13:03:17 -0500 From: Konrad Rzeszutek Wilk To: KarimAllah Ahmed Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com, rkrcmar@redhat.com Subject: Re: [PATCH v5 08/13] KVM/nVMX: Use kvm_vcpu_map when mapping the posted interrupt descriptor table Message-ID: <20190123180314.GM19289@Konrads-MacBook-Pro.local> References: <1547026933-31226-1-git-send-email-karahmed@amazon.de> <1547026933-31226-9-git-send-email-karahmed@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547026933-31226-9-git-send-email-karahmed@amazon.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9145 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=736 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901230133 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 09, 2019 at 10:42:08AM +0100, KarimAllah Ahmed wrote: > Use kvm_vcpu_map when mapping the posted interrupt descriptor table since > using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory > that has a "struct page". > > One additional semantic change is that the virtual host mapping lifecycle > has changed a bit. It now has the same lifetime of the pinning of the > interrupt descriptor table page on the host side. Is the description stale? I am not seeing how you are changing the semantics here. You follow the same path - map/unmap. Could you expand please? > > Signed-off-by: KarimAllah Ahmed > --- > v4 -> v5: > - unmap with dirty flag > > v1 -> v2: > - Do not change the lifecycle of the mapping (pbonzini)