From: Mark Ryden Subject: Page fault in VT-x and shadow fault/inject exception (xen 3.0) Date: Mon, 16 Jan 2006 17:04:09 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Mailing List List-Id: xen-devel@lists.xenproject.org Hello, I am trying to understand the code of Vt-x (starting with vmx.c) I would be grateful if someone can calrify some issue which puzzles me regarding vmx_do_page_fault() method in xen/arch/x86/vmx.c. (xen 3.0). This method is called when there is a page fault (and when certain conditions regarding bit 14 of the exception bitamp are met) and it is called upon a VMEXIT in a handler.(vmx_vmexit_handler()). The vmx_do_page_fault() calls shadow_fault() ; if shadow_fault() fails (retruning 0) than we call vmx_inject_exception(). My question is : why do we need to call shadow_fault() at the first place ? is it some kind of cache ? It seems to me that in non-vmx environment we don't call shadow_fault() but I am not sure about it. And what, in short, does vmx_inject_exception() do ? Regards, MR