[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Page fault in VT-x and shadow fault/inject exception (xen 3.0)


  • To: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Mark Ryden <markryde@xxxxxxxxx>
  • Date: Mon, 16 Jan 2006 17:04:09 +0200
  • Delivery-date: Mon, 16 Jan 2006 15:11:25 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YmOxXOnncHTEqWS+9KIOlGnGX3OqZ0+8/PgPRGa599MtirfNC2Bej/P1+jF3A5Rxv6aKztZAJgATyTyLee54bhDFew8vmioPK+BdMCSBYyW8dHnR/oha/qkajjpRqB/sxZ65zzICGShOUX7DhWiypu3xq5uOUrt3QGOnqeL3xNM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.