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

RE: [Xen-devel] Can Xen catch the process switch in HVM guest?


  • To: Dulloor <dulloor@xxxxxxxxx>, Wu Bingzheng <wubingzheng@xxxxxxx>
  • From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
  • Date: Sat, 23 May 2009 02:23:02 +0800
  • Accept-language: zh-CN, en-US
  • Acceptlanguage: zh-CN, en-US
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 22 May 2009 11:25:01 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcnarX6OtXPmXlkARrCRTdSvRbzYYQAW+9dA
  • Thread-topic: [Xen-devel] Can Xen catch the process switch in HVM guest?

Why do you want to "catch the process switch in HVM guest"? What's your exact 
need?
mov_to_cr3 of hvm guest can be intercepted by Xen if we don't consider the case 
of HAP (e.g. EPT), but mov_to_cr3 doesn't mean necessarily process switch and 
even an hvm guest may have no process at all (e.g., the DOS... :-)

BTW, if you could add a hypercall in your guest's process switch code, things 
would be straightforward. :-)

Thanks,
-- Dexuan 

________________________________

From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Dulloor
Sent: 2009年5月22日 15:18
To: Wu Bingzheng
Cc: xen-devel
Subject: Re: [Xen-devel] Can Xen catch the process switch in HVM guest?


Please take a look at sh_update_cr3.

-dulloor


2009/5/22 Wu Bingzheng <wubingzheng@xxxxxxx>


        Hi men,
        
        Can Xen catch the process switch in HVM guest?
        
        Does this depend on how the guest OS implements the process switch?
        
        Can I catch the switch by the instrucion: `MOV to CR3`, or something 
else?
        
        Thanks,
        Wu
        


_______________________________________________
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®.