Invention Grant
- Patent Title: Modification of write-protected memory using code patching
-
Application No.: US15154661Application Date: 2016-05-13
-
Publication No.: US10255088B2Publication Date: 2019-04-09
- Inventor: Michael Tsirkin
- Applicant: Red Hat Israel, Ltd.
- Applicant Address: IL Ra'anana
- Assignee: Red Hat Israel, Ltd.
- Current Assignee: Red Hat Israel, Ltd.
- Current Assignee Address: IL Ra'anana
- Agency: Haynes and Boone, LLP
- Main IPC: G06F9/455
- IPC: G06F9/455 ; G06F12/1009 ; G06F12/109 ; G06F8/65 ; G06F12/14

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
- US20170329618A1 MODIFICATION OF WRITE-PROTECTED MEMORY USING CODE PATCHING Public/Granted day:2017-11-16
Information query