WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: Re: Re: Re: [Xen-devel] exception handler caused by context switchin

To: lijiandm <lijiandm@xxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Re: Re: Re: [Xen-devel] exception handler caused by context switching and setting trap flag
From: "Paul Samon" <paul.samon@xxxxxxxxx>
Date: Wed, 29 Oct 2008 11:27:02 +0800
Cc:
Delivery-date: Tue, 28 Oct 2008 20:27:24 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=hO2THF5L/Q3i/D2v6C36/WCKNV/zRN2j1C/gJugA52s=; b=S9YrQslofsO6sC4+sNHEq50JD5+U5TEsUX1QZySO1OWtNVP/LTOmIsnDY1RF8i5b7U pEzltMzpb8RCeK1lupQnS7Q5bTxNoUjDIQjeybZAwt8VFdouJtavl20sdlo4X7YWwJu1 ciF+nKZX9BNuzX79B2Ks3E+6dR/A2OAFlp7w0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=fc42Y9mMft84DaiUtBJfkfcWWiLGUuKkdfVAYwU0k5jTi0Z6ry/nOGlkHi7dG+v/fc kGxKUgyM/u0W9M3PbmQOCgRkmioPM34r2AKNkbRUG3umoineT19yuRkHFc+nYrjijNrI WRnoRoIOhMJhnHwbB4aMrU4zxY9ykzXeo7oCQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20959353.177881225249228812.JavaMail.coremail@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <30835906.84501225243958907.JavaMail.coremail@xxxxxxxxxxxxxxxxxx> <34cec8c90810281849r98558eal245154ef441c411@xxxxxxxxxxxxxx> <31019416.118941225245943856.JavaMail.coremail@xxxxxxxxxxxxxxxxxx> <34cec8c90810281917h5b0f7348td772b5cad5d96ba3@xxxxxxxxxxxxxx> <23245167.141121225247255058.JavaMail.coremail@xxxxxxxxxxxxxxxxxx> <34cec8c90810281957u33b81455ye40684ba099e8dc@xxxxxxxxxxxxxx> <20959353.177881225249228812.JavaMail.coremail@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
You're welcome. BTW, in the case of EPT/NPT, HVM guest's writng to CR3 would not incur VMexit or something.
-- Paul S.
2008/10/29 lijiandm <lijiandm@xxxxxxx>
 Thank you very very very much!!!
 
 
 

在2008-10-29,"Paul Samon" <paul.samon@xxxxxxxxx> 写道:
(Here we don't consider EPT)
When HVM guest (for Intel, namely VMX guest) tried to write_to_cr3, a VMexit will occur (search for EXIT_REASON_CR_ACCESS in Xen code)

2008/10/29 lijiandm <lijiandm@xxxxxxx>
 Yes,I mean change the context in CR3,process switched in and out by OS.
 In another word,I want to capture the behavior caused by the MOV to CR3.

 Thanks,wait for your reply.


在2008-10-29,"Paul Samon" <paul.samon@xxxxxxxxx> 写道:

> the exception handler used to handle the context switch in HVM guest
What context switch? process context switch?
On Xen, the process context switch inside HVM guest functions in exactly the same way as it does on bare metal.

2008/10/29 lijiandm <lijiandm@xxxxxxx>
 Yes, I use an Intel VT-capable host.
 But my problem is I want to find out the exception handler used to handle the context switch in HVM guest.Is there such a exception handler? And if I want to replace it ,what should I do?
 Thanks.
 JianLi.
 
 

在2008-10-29,"Paul Samon" <paul.samon@xxxxxxxxx> 写道:

HVM guest's VMexit is handled by Xen itself (see xen/arch/x86/hvm/vmx/entry.S: vmx_asm_vmexit_handler if you're using an Intel VT-capable host) , not Dom0 (a PV guest) at all.
 
vcpu context switch itself doesn't cause VMexit.
 
 
-- Paul S.

On Wed, Oct 29, 2008 at 9:32 AM, lijiandm <lijiandm@xxxxxxx> wrote:
 
 hello:
      I have two trivial question.
      In dom0,which exception handler is used to handle VMexit caused by context switching in domU?
      If I want to replace the handler ,what should I do?
 Thanks.
 JianLi

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>