Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1060477imu; Wed, 23 Jan 2019 10:05:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7fnqQkbKeCDUivNcHv9GCpWWGe4ccHfeVJhIi0m1ZYLTDmFKgNBVA8GQMvUQiARQw0Ff0Q X-Received: by 2002:a63:7c6:: with SMTP id 189mr2916358pgh.129.1548266730451; Wed, 23 Jan 2019 10:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548266730; cv=none; d=google.com; s=arc-20160816; b=gWbae7LUnDYa2AfaqV50cPT/oMN9Ut5cyqkI5lztu49sajvxKz+rk0bp6MHWtdPDpG uxiLFiQ7YRegx7Qfwnj+dibIYMUM08bVgL6P5finyEJpl6J8q7rO6oPpooO5T9NHr90x Yn+1eGagVIPGZr4HrKdgh2OWbkLzRTvO3MNom144yBGoGrB9nnZZHvgcTUpWLsg5OxX1 O0uj2zFs5KVUG5TqnXQxkoSQmqSg58tG0gyzXcGOPzjQpmXXZR6PLTIj/eNqRbUK3t5j 2Me/CVcj9rMzKO33gRWGPkevfpi3P+mLVN4RHwSOft2Jj7CtClX2pR/yLU5JUbFABTmf ECpQ== 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=opG7Pp0hxRt3TgH5ZQNu1sxJDgocpQviGagpobD8I9U=; b=RbayNpDaU4U0cIFa10SwYDl5kQkopbusM5r/o6iS2e81TvO0z99I2M5lCXQ7hml76n AUDq3LnoS8e2f9ZCIf7CdbkqFvoTzF+NwBIWedeEsuEY/vW7FF5soIDT5kee6t7Y0j30 a3up5EPjHfFch6mO16dl4CVr1RXmEGxDUZLH3b5Q5/XJ5uN6ZU+K/h+9HuYmWufqRc4Z D7rMUmQ9lT5SvuTxZ0NtRwsVQCiE4Hh0heg3Ww0AYH+tGlttWuMHjx4uiQ6/iyxLZQRQ SgJgqsnVrGMYgIhpmWl/ZA37xcfr5YdPDH6CnP02LIGxZ0PxQJ60FlYxy3sZ+mXRH+dU G/+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=a7kPFXVn; 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 f82si19762225pfa.221.2019.01.23.10.05.14; Wed, 23 Jan 2019 10:05:30 -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=a7kPFXVn; 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 S1726517AbfAWSEt (ORCPT + 99 others); Wed, 23 Jan 2019 13:04:49 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:38294 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbfAWSEt (ORCPT ); Wed, 23 Jan 2019 13:04:49 -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 x0NI47WR085331; Wed, 23 Jan 2019 18:04:45 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=opG7Pp0hxRt3TgH5ZQNu1sxJDgocpQviGagpobD8I9U=; b=a7kPFXVnItA2wMjukNydaeJv3gLjpCDqr1x0rbsQQLpVs8EEhjjXTYs7v31KjMj7gsj9 PWoDxee8QPwQ58De0+Z5WOVuq5rn0Y30usIPv1LIQsdF/20uSZBVKppR2kL/Q9M+VW5R lHx8ZGF/Yw2AqetIdzJ+/Wo5TCB3Gy+rF3MHQZtFEXqG5yXranWu77VeKjspmmqMJdoG wZevK2hZY8Rwg3SeObPez0MsSg0nZfA2YzpUoaFlhX+djkRCW7mdhVfgm0djHybbA3Zo ZjblNHlsnaoNKwueotv2DdwxsE/XD5JulAgUXvQPIf+Isw0NP4oDiTodja0KraA1AgT1 Vw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2q3vhrudaj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jan 2019 18:04:45 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0NI4c5O030798 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jan 2019 18:04:39 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 x0NI4cqf012346; Wed, 23 Jan 2019 18:04:38 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:04:37 -0800 Date: Wed, 23 Jan 2019 13:04:19 -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 09/13] KVM/X86: Use kvm_vcpu_map in emulator_cmpxchg_emulated Message-ID: <20190123180417.GN19289@Konrads-MacBook-Pro.local> References: <1547026933-31226-1-git-send-email-karahmed@amazon.de> <1547026933-31226-10-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-10-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=798 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901230134 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:09AM +0100, KarimAllah Ahmed wrote: > Use kvm_vcpu_map in emulator_cmpxchg_emulated since using > kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has > a "struct page". > > Signed-off-by: KarimAllah Ahmed Reviewed-by: Konrad Rzeszutek Wilk