|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] How to correctly copy from guest?
Hi,
I'm trying to read guest's cr3 value.
The version of xen is 4.0.1.
What should I do? I tried adding hvm_copy_from_guest_virt in mov_to_cr but it caused VM booting failure, Then I tried hvm_copy_from_guest_virt_nofault.
Here is my code.
void mov_to_cr_do_01(void) { unsigned long e_kcl = 0; //hvm_copy_from_guest_virt(&e_kcl, GUEST_FS_BASE, 4, PFEC_page_shared | PFEC_user_mode); hvm_copy_from_guest_virt_nofault(&e_kcl, GUEST_FS_BASE, 4, PFEC_page_shared | PFEC_user_mode);
}
Thank you.
Sincerely,
K.C.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] How to correctly copy from guest?,
K.C. Lee <=
|
|
|
|
|