Skip to contentSkip to conversation

Can Xen catch the process switch in HVM guest?

DISCUSSION Wu Bingzheng 3 participants 3 messages May 22, 2009

lore
Share & tools
lore
#0 lore raw

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
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Please take a look at sh_update_cr3.

-dulloor

2009/5/22 Wu Bingzheng <[email protected]>

Quoted 11 lines

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

Quoted 8 lines

------------------------------
穿越地震带 纪念汶川地震一周年<http://512.mail.163.com/mailstamp/stamp/dz/activity.do?from=footer>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

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: [email protected] [mailto:[email protected]] 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 <[email protected]>

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
[email protected]
http://lists.xensource.com/xen-devel