Modification of write-protected memory using code patching
Abstract:
Systems and methods are provided for modifying a set of memory pages. An example method includes loading kernel code and patching code of a kernel into a guest memory. The patching code is stored at a first range of memory addresses, which is in an executable mode in a first set of hypervisor page tables. The method also includes detecting a demand to modify a set of memory pages and sending a request to the hypervisor to transfer control to the patching code in response to detecting the demand. The hypervisor may switch from the first set of hypervisor page tables to a second set of hypervisor page tables in response to detecting a request to transfer control to the patching code. The set of memory pages is write-protected in the second set of hypervisor page tables, and is writable in the first set of hypervisor page tables.
Public/Granted literature
Information query
Patent Agency Ranking
0/0