Modification of write-protected memory using code patching
AssigneeRed Hat Israel, Ltd.
InventorMichael Tsirkin
Life of this patent
Estimating the term…
Loading patent…
AssigneeRed Hat Israel, Ltd.
InventorMichael Tsirkin
Estimating the term…
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.
A method of modifying a set of memory pages, comprising:
A system for modifying a set of memory pages, comprising:
A machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors is adapted to cause the one or more processors to perform a method comprising:
Dependencies are inferred from the claim text.