search for: sh_revoke_write_access_all

Displaying 1 result from an estimated 1 matches for "sh_revoke_write_access_all".

2012 Jul 26
3
About revoke write access of all the shadows
...odes about the shadow page table. I''m wondering whether the kernel has provided the function to revoke write access of all the shadows of one domain. If you know one with this function, please tell me about it. Thanks. BTW, I have my own idea to implement this. My idea is as follows: void sh_revoke_write_access_all(struct domain *d) { foreach_pinned_shadow(d, sp, t) { According to sp->u.sh.type, (like SH_type_l1_32_shadow ......), get each entry (shadow_l1e_get_flags) of the page table. Changes the flags to read only and then write the page table entry back (shadow_set_l1e). When goi...