Received: by 10.213.65.68 with SMTP id h4csp413704imn; Tue, 27 Mar 2018 01:28:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELsMAtsRcPYpahxPJqKBt5RAQLyUaNXPsoB4GBwRRt61GyOZ9rqsebamxBfOaS3vCq+JQ1W0 X-Received: by 2002:a17:902:3341:: with SMTP id a59-v6mr27707880plc.68.1522139295908; Tue, 27 Mar 2018 01:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522139295; cv=none; d=google.com; s=arc-20160816; b=lJ46qTf/xUjgxSLrYlZpC1WTYNveiDSxwYK3BAoBYU/yQ+NmHIEZBLGJrGTvYIxk0V 7HUd/FQqRSbBfRXug7VAkp18/dhes00O5a9127H6ly1T+bAN28Fl/9gEHVWmSj0Ccx+7 vWy39DPSDdM2oN4kkgA9BMhF+cisTxqXzPPNIh/mUu61Z54NPJCEKxTy0f7I5CaRR30P 1gOd3k77C3odccG1WvGhLdRY8ai4Rfllt3UF/o34JT9aR88Lf1J8GWnq7YTQRqGTHplw tH9OWP8VMtSI/UU7tPTCi0XefsFSfRXLq2hTZ6mrbOCXvQJQoIipnX77uG5vN/A3EBRr 4plw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:subject:cc:to:from:date:message-id :mime-version:dkim-signature:arc-authentication-results; bh=Lr61LdUzEjFZa92mNoVavMTG/yJRrPqR6DwIXTaG32A=; b=HLIyTsO3P0vI8diT+hXv66UykZiFfoTt+GJkbDvRfuEyNdQR7m11hN8kXPcI02EMvw JF2i4RONmQaHlrvY/7Ji5kfNxtOVagcIgYfYMGgXAQNOwPgCxlZtzExct4DgDqL96ERk pw+mmzefTKIk90vUOqtPFkT/T+Su1N8kr98FhikGIiuE03d480w25a+UW5PtUtpQihfK rgO+OsY6Vaip2508/Klj+liGrHAYK+ELuAzgX1Vuucqr2SBgbm7b+YtbOhk+LtQstNls jS2W6sYb1+9VMoBZJkvxa6ld3IUqHENbI1QS6GLk/lBEBC0k0BrPfbQBctAdZ3za5ggJ 2Dog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=FiQyvavm; 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 h126si500517pgc.817.2018.03.27.01.28.01; Tue, 27 Mar 2018 01:28:15 -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=FiQyvavm; 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 S1751246AbeC0I07 (ORCPT + 99 others); Tue, 27 Mar 2018 04:26:59 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:50638 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbeC0I05 (ORCPT ); Tue, 27 Mar 2018 04:26:57 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2R8IJho088862; Tue, 27 Mar 2018 08:26:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : to : cc : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=Lr61LdUzEjFZa92mNoVavMTG/yJRrPqR6DwIXTaG32A=; b=FiQyvavmZm9zmtQOSr2YXwvVsysIA0N+ufSdtdpVooDiZSMmplCnFoO8J47LsAkW+UOD HfVRbeGpu1VuKJbbg0VLQFZs3ZB9mbqkpclBy1EZj8vM+8V3EKaKs3Xqe/q0x+iQZNzG 0w7VeZTqnpnGPfqoDrP2X4w4pmLuJL3SmWi/QUnNjFet/P+VLhUAwV96oN9UFLuY/7FZ YR64MGEf+gbcb6fJbEiiblz6qJixl87N5SE2SZaAvz6fMH9bb7+8lX2EZa9JYHcqgQPk X/5RRJCOcOdkYJhHpsJNwqq9b+7XX3znHkAoCV0bVFXxkbfBFSLpbf+GBhpygQi2H2dX MA== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2gyjavg101-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Mar 2018 08:26:53 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2R8Qqh3028458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Mar 2018 08:26:52 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2R8Qq8T003105; Tue, 27 Mar 2018 08:26:52 GMT MIME-Version: 1.0 Message-ID: Date: Tue, 27 Mar 2018 01:26:51 -0700 (PDT) From: Liran Alon To: Cc: , , , , Subject: Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction" X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8844 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803270083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- pbonzini@redhat.com wrote: > On 27/03/2018 09:52, Liran Alon wrote: > > In addition, I think this module parameter should be in kvm module > > (not kvm_intel) and you should add similar logic to kvm_amd module > (SVM) >=20 > If you can move handle_ud to x86.c, then it makes sense to have the > module parameter in the kvm module. I haven't checked. I don't see a reason why you couldn't do that. >=20 > Otherwise you would have to EXPORT_SYMBOL_GPL the variable; in the This is what I did for enable_vmware_backdoor module parameter. I think this is what should be done in this case as-well. > end > it's just a debugging tool, so it'd be simpler to just add it > separately > to kvm_intel and kvm_amd. I agree it's just a debugging tool. But no reason for it to be used differe= ntly when running tests on Intel CPU vs. AMD CPU. I think the effort to fix this is low. >=20 > Paolo