From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: Re: [PATCH RFC V8 5/5] xen: Handle resumed instruction based on previous mem_event reply Date: Thu, 28 Aug 2014 10:30:07 +0300 Message-ID: <53FEDA7F.9020701@bitdefender.com> References: <1409148101-11703-1-git-send-email-rcojocaru@bitdefender.com> <1409148101-11703-5-git-send-email-rcojocaru@bitdefender.com> <53FE1AD8020000780002E32C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XMu9X-0001xt-RA for xen-devel@lists.xenproject.org; Thu, 28 Aug 2014 07:29:51 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Tian, Kevin" , Jan Beulich Cc: "Dong, Eddie" , "stefano.stabellini@eu.citrix.com" , "andrew.cooper3@citrix.com" , "tim@xen.org" , "Nakajima, Jun" , "xen-devel@lists.xenproject.org" , "ian.jackson@eu.citrix.com" , "ian.campbell@citrix.com" List-Id: xen-devel@lists.xenproject.org On 08/28/2014 12:06 AM, Tian, Kevin wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Sent: Wednesday, August 27, 2014 8:52 AM >> >>>>> On 27.08.14 at 16:01, wrote: >>> +static bool_t vmx_exited_by_nested_pagefault(void) >>> +{ >>> + unsigned long exit_qualification; >>> + >>> + __vmread(EXIT_QUALIFICATION, &exit_qualification); >>> + >>> + if ( (exit_qualification & EPT_GLA_FAULT) == 0 ) >> >> It just occurred to me - Is this a valid check for any but >> EXIT_REASON_EPT_VIOLATION? I didn't think the bits here carry >> the same meaning regardless of exit kind... >> > > You're right. GLA bit definition is only for EPT violation. I'll check the exit reason as well. Thanks, Razvan Cojocaru