[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Clarification regarding MEM_ACCESS_* flags usage
On Thu, Oct 6, 2016 at 3:59 AM, Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx> wrote:
The issue I see here is that if the CPU itself traps as an instruction fetch violation because the pagetable was unreadable, then sending out a vm_event with a MEM_ACCESS_* type other then what the hardware reported will complicate things significantly. It would require the mem_access system in Xen to further check when there is no violating mem_access X setting found to check if all pages used for translating the PC were readable or not. This would require us to walk through the currently active pagetable and check if any of those have a restricted mem_access setting, and if one is found send out a notification with MEM_ACCESS_R flag set. This is pretty complicated considering all the different page types the OS could use. I rather not move this logic into Xen but have the user implement it if it is needed. For example, if the user wants to make the pages where pagetables reside unreadable with mem_access then would also have to mark all pages contained in that pagetable non-executable with mem_access. So since the current setup can be worked with, I rather not complicated the Xen side and just have it accurately report the trap as it received it from the CPU itself. Tamas _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |