From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: Re: Vmx_vmenter_helper() and hvm_inject_page_fault() Date: Thu, 07 Nov 2013 13:43:47 +0200 Message-ID: <527B7CF3.70209@gmail.com> References: <527A1EB40200007800100036@nat28.tlf.novell.com> <527A356302000078001000F0@nat28.tlf.novell.com> <20131106165325.GB25895@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [193.109.254.103] (helo=mail6.bemta14.messagelabs.com) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeO0S-0004nE-E5 for xen-devel@lists.xenproject.org; Thu, 07 Nov 2013 11:44:12 +0000 Received: by mail-ee0-f42.google.com with SMTP id c1so235964eek.29 for ; Thu, 07 Nov 2013 03:43:50 -0800 (PST) In-Reply-To: <20131106165325.GB25895@deinos.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: xen-devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org Hello Tim, thank you for your answer! > Or, even easier, just leave the EPT state that caused the mem_event in > the first place -- if the guest retries the instruction it will exit > again with the same fault and you can have some state in the EPT fault > handler to say 'next time, inject a pagefault'. Good suggestion, I'm exploring it as we speak. But, I would also like to know what the dangers of doing this in the VMENTRY helper function are. Is it that the VMCS information is not yet fully there? Is guest_cpu_user_regs() not reliable at that point? What exactly could go wrong there? Thanks.