Wu Bingzheng
2009-May-22 06:59 UTC
[Xen-devel] Can Xen catch the process switch in HVM guest?
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@lists.xensource.com http://lists.xensource.com/xen-devel
Dulloor
2009-May-22 07:17 UTC
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@163.com>> 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 > > ------------------------------ > 穿越地震带 纪念汶川地震一周年<http://512.mail.163.com/mailstamp/stamp/dz/activity.do?from=footer> > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2009-May-22 18:23 UTC
RE: [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@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] 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@163.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel