Received: by 10.213.65.68 with SMTP id h4csp287261imn; Mon, 26 Mar 2018 21:57:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MIHsI5gP5GJb+FlObaaSLWn4YQgzY5gkRnmhx5aIzCXVYoAJK5gZ3SNj1+koenmApSVSy X-Received: by 10.98.149.78 with SMTP id p75mr2536166pfd.188.1522126631775; Mon, 26 Mar 2018 21:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522126631; cv=none; d=google.com; s=arc-20160816; b=dw1eOZhGEzEj6SgNe+M7B7/r/e8KGP9akSQ1sxErI9fDzqKggaGVa7v6B6Elkxv/0I PFaUrzsT0IBkeVeVBlDKtEe6QPduWBDUQsTYEnc1bP8r5LOPPo0FESPts366pfmdRVsJ tqa8mW0xwSqvGFiC9Eh9GNZGcb+nFYJBNiMuxi7WzwXnreQ556fPtEJHWBstUgBUvydU 0IHwOxYazSX0DmdKqONzmJDoDuZcWLFUQbF1XqWeEoWVbMDznohDum6aWCnLH4yYcDMV 3R/3GtbCeDXqSRVTm+XCK7Fr79s3d1CDnuDSXoJ/hCDfoYPWCje3T2UUWKne0Vxt+Nr2 Nv0g== 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:arc-authentication-results; bh=uBM0/fHv1JXGUP5loXpVCgBwAozhTuBQSWUCUZBm6Rs=; b=w7Vs9uF66PFbeX9WamN0YC1zSEEVjS7GWACHGWnJlZQuDvi+6w0JkZ6WnKkTncdVWh E1ypNyB0v67CJ/BPT8ViRhSQf8AzYqEysORY83Q9s+QyzsJvUKp/S5Xt9ty89OlPDGUh AZyacBd0gAKK7X26WhvdSLQ8Po/3KH/uAFdQr9cSo0qGrlmOuiO/mVyM75aZA+4RuCOW t7FuXOQrZ51b1II7NBA5nOkrHQy+P3L5xE1crOxFU9gYbmNHXIDkBltVB8HO1xudQNNh p+AwvLlEBRtYymBMwtcMEqeMOHW0iMfUau30IOkRihbcPPY18wm+UlPiPvhkc+kHcW/I JMBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=o39U/KHI; 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 1-v6si431802ply.119.2018.03.26.21.56.57; Mon, 26 Mar 2018 21:57:11 -0700 (PDT) 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-2017-10-26 header.b=o39U/KHI; 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 S1750965AbeC0E4H (ORCPT + 99 others); Tue, 27 Mar 2018 00:56:07 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:47146 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbeC0E4F (ORCPT ); Tue, 27 Mar 2018 00:56:05 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2R4fH75035254; Tue, 27 Mar 2018 04:56:00 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-2017-10-26; bh=uBM0/fHv1JXGUP5loXpVCgBwAozhTuBQSWUCUZBm6Rs=; b=o39U/KHIykcARGBLvw90Z6HT05j9tZDMUQz1NLqU+uGaM7w6c9vb2IvuoWGZhfjqe2Ep K6tHAD8qADVx06ynupVoOXYSKqZubjXBK9jT8uANkbEeS7adjUVKBoMKfnJT6BCXSoUy OE5/9HXgnqpYr8492BgtNMNu8QPf6gw/aingozFQwTnVM5ZmQ086k7emqRW5WFMYDVaz 6ZFu6bwd88tBaRegyH5v0a8szqC17ks3Xk9rsYnQDOsL8nQsSkqpih0ZVTDz/077ikru 2Hz4aoghtMNajhFKv+z8OYmVthONyIdzOIzSGoKrMNJaTXnnYydkWjGhxDKYVZ4TwFtM YQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2gyf4ur0xd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Mar 2018 04:56:00 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2R4u053007673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Mar 2018 04:56:00 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2R4txUL010652; Tue, 27 Mar 2018 04:55:59 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Mar 2018 21:55:59 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id A75846A0095; Tue, 27 Mar 2018 00:55:58 -0400 (EDT) Date: Tue, 27 Mar 2018 00:55:58 -0400 From: Konrad Rzeszutek Wilk To: Wanpeng Li Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Andrew Cooper Subject: Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction" Message-ID: <20180327045558.GC16974@char.us.oracle.com> References: <1522116735-4861-1-git-send-email-wanpengli@tencent.com> <1522116735-4861-3-git-send-email-wanpengli@tencent.com> <20180327044020.GB16974@char.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180327044020.GB16974@char.us.oracle.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8844 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=702 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803270044 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 12:40:20AM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Mar 26, 2018 at 07:12:15PM -0700, Wanpeng Li wrote: > > From: Wanpeng Li > > > > This patch introduces a Force Emulation Prefix (ud2a; .ascii "kvm") for > > "emulate the next instruction", the codes will be executed by emulator > > instead of processor, for testing purposes. > > Can you expand a bit ? Why do you want this in KVM in the first place? > Should this be controlled by a boolean parameter? .. per guest. That is instead of a global one, have a per guest one?