From: "Jan Beulich" Subject: Re: [PATCH RFC V9 5/5] xen: Handle resumed instruction based on previous mem_event reply Date: Thu, 28 Aug 2014 13:09:25 +0100 Message-ID: <53FF3815020000780002EB15@mail.emea.novell.com> References: <1409226482-12657-1-git-send-email-rcojocaru@bitdefender.com> <1409226482-12657-5-git-send-email-rcojocaru@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XMyW7-0007xg-Tq for xen-devel@lists.xenproject.org; Thu, 28 Aug 2014 12:09:28 +0000 In-Reply-To: <1409226482-12657-5-git-send-email-rcojocaru@bitdefender.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Razvan Cojocaru Cc: kevin.tian@intel.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, eddie.dong@intel.com, tim@xen.org, jun.nakajima@intel.com, xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 28.08.14 at 13:48, wrote: > +static bool_t vmx_exited_by_nested_pagefault(void) > +{ > + unsigned long exit_qualification, exit_reason; > + > + __vmread(VM_EXIT_REASON, &exit_reason); > + > + if ( exit_reason != EXIT_REASON_EPT_VIOLATION ) > + return 0; Actually, looking at this again I think an assertion would have been the better choice here, as the only code path leading here should be guaranteeing this to be the case. But anyway, with this needing re-basing on top of Tamas'es patches, this may go away entirely. Jan