From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v2 2/2] x86/hvm: Don't intercept #UD exceptions in general Date: Wed, 27 Jan 2016 14:52:23 -0500 Message-ID: <20160127195223.GI3134@char.us.oracle.com> References: <56A91122.50502@oracle.com> <1453921984-29197-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1453921984-29197-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Kevin Tian , Jan Beulich , Xen-devel , Aravind Gopalakrishnan , Jun Nakajima , Boris Ostrovsky , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > index 674feea..7a15d49 100644 > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -93,12 +93,10 @@ unsigned long __section(".bss.page_aligned") > static bool_t __initdata opt_hap_enabled = 1; > boolean_param("hap", opt_hap_enabled); > > -#ifndef NDEBUG > +#ifndef opt_hvm_fep > /* Permit use of the Forced Emulation Prefix in HVM guests */ > -static bool_t opt_hvm_fep; > +bool_t opt_hvm_fep; > boolean_param("hvm_fep", opt_hvm_fep); Since you remove the debug option you should probably also update the documentation which says: ">Recognized in debug builds of the hypervisor only."