Received: by 10.213.65.68 with SMTP id h4csp410285imn; Tue, 27 Mar 2018 01:22:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELs1Br5tCXAns2ffVcUUPV2IJ7HTHl8ruRj+SUnR4KnQicx3CAG/x0x0s5q6OJQe14E3kvug X-Received: by 10.98.31.86 with SMTP id f83mr26041904pff.196.1522138935149; Tue, 27 Mar 2018 01:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522138935; cv=none; d=google.com; s=arc-20160816; b=cskPuzzn+zUekdvPo/+xqovaug4YHfnATKocLFsTx2CxwyP/I1V7M3hy8n3sgvwoEu xkFm3DkR3M+AimZcxb9aWRY6fRE/uXfkBju3nkeMkmj/mDYtOfQ+W2XFjwR0eyTPomHa roBBeX3eenMkWuorlXTVC+hbVH4u8i3dup2p4FsXumxJ07kPNR/VsYbBfO0IN4+k/fKO puvYcNsmEHjjdvV01p1vyZb/jKTXcaStz7GFeHqmcUmXaCRr26qs5gKVRCumgHeTjR2m QWd3MbC8DW7JOjAY24o/pR1bTbw5czBx3IS/WrB3wZ/krgO0SRZUWuZ2e3qBxHnvZw6D Nc4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Kfgy/XNHLBT6cC40tY9WdUE1+Kfi8SYLvOScsX+mOuI=; b=ePUdv8g55JK5AYiXt/JUoCmkz7hLoYO7d++BakjrTloV+yWziwDsnBmXtOUoA/FiaR VG6X1iSl+A0CZDuCEmRnLvIgomDRJDGSSsJs1/lviiURcv1CEGnnr3p6NJKr4KoyB09T gljgOMUz3G+FWI92FWiQcM8wQXHS09Kf73+OftlQlYJiNf+oV+8WGbe+ucN4kYwWPNoI 07Clw48EKd53uEHsPbgHd8RY7uPdw764KtI/TNfLWVpI7NCCSMwGxtkr6daWTPj+mlrQ H5O0HfToK2OLkaD9iXvQaEOccceshGmMhTdatXLVvLYvK2wusXYk9LRMwOOxM6UYTA6r 11Iw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si514658pgv.255.2018.03.27.01.21.59; Tue, 27 Mar 2018 01:22: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751173AbeC0ITr (ORCPT + 99 others); Tue, 27 Mar 2018 04:19:47 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37034 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750937AbeC0ITp (ORCPT ); Tue, 27 Mar 2018 04:19:45 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D2E18182D01; Tue, 27 Mar 2018 08:19:45 +0000 (UTC) Received: from [10.36.117.97] (ovpn-117-97.ams2.redhat.com [10.36.117.97]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EF68E11701C4; Tue, 27 Mar 2018 08:19:43 +0000 (UTC) Subject: Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction" To: Liran Alon , kernellwp@gmail.com Cc: rkrcmar@redhat.com, linux-kernel@vger.kernel.org, andrew.cooper3@citrix.com, kvm@vger.kernel.org References: <76d08635-59da-4399-bc35-f99a00236725@default> From: Paolo Bonzini Message-ID: <0500b892-03a8-4c39-3d92-2c909ae473cb@redhat.com> Date: Tue, 27 Mar 2018 10:19:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <76d08635-59da-4399-bc35-f99a00236725@default> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 27 Mar 2018 08:19:45 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 27 Mar 2018 08:19:45 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/03/2018 09:52, Liran Alon wrote: >> +static bool __read_mostly fep = 0; >> +module_param(fep, bool, S_IRUGO); > I think this module parameter should have a better name... > Why not "emulation_prefix" or "enable_emulation_prefix"? > This short names just confuse the average user. > It makes him think it is some kind of Intel VT-x technology > that he isn't aware of :P Agreed. > 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) 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. Otherwise you would have to EXPORT_SYMBOL_GPL the variable; in the end it's just a debugging tool, so it'd be simpler to just add it separately to kvm_intel and kvm_amd. Paolo