Method and system to accelerate address translation
AssigneeInternational Business Machines Corporation
InventorsMegumi Ito, Takeshi Ogasawara
Life of this patent
Estimating the term…
Abstract
In a method to accelerate address translation into a physical address, a computer maps a virtual memory area with a large page, the virtual memory area including multiple virtual pages satisfying a predetermined condition and being handled in units of pages, the large page having a larger area than each of the virtual pages, and under a condition in which one of the virtual pages mapped with and included in the large page has a memory protection attribute different from a memory protection attribute of the other virtual page, sets physical memory protection information for protecting a physical page corresponding to the one virtual page having the different memory protection attribute.
Claims8
A method to accelerate address translation from a virtual address into a physical address by use of a computer having a processing device, the method comprising the steps of:
- mapping a virtual memory area with a large page, the virtual memory area including a plurality of virtual pages satisfying a predetermined condition and being handled in units of pages, the large page having a larger area than each of the virtual pages;
- and
- under a condition in which one of the virtual pages mapped with and included in the large page has a first memory protection attribute different from and more restrictive than a second memory protection attribute of another virtual page mapped with and included in the large page, setting physical memory protection information for a physical page corresponding to the one virtual page having the first and more restrictive memory protection attribute, wherein the physical memory protection information comprises at least one of an access control bit and a fetch protection bit in a storage key associated with the physical page, for protecting the physical page corresponding to the one virtual page having the first memory protection attribute.
A non-transitory computer readable storage medium storing computer executable code for causing a computer with a processing device to perform a method to accelerate address translation from a virtual address into a physical address, the code comprising:
- determination component for determining whether or not a predetermined condition is satisfied in response to the presence of a virtual page that needs to be newly mapped;
- large page mapping component for, when the previous determination component determines that the predetermined condition is satisfied, mapping a virtual memory area with a large page, the virtual memory area including a plurality of virtual pages being handled in units of pages, the large page having a larger area than each of the virtual pages;
- and
- protection setting component for, under a condition in which one of the virtual pages mapped with and included in the large page has a first memory protection attribute different from and more restrictive than a second memory protection attribute of another virtual page mapped with and included in the large page, setting physical memory protection information for a physical page corresponding to the one virtual page having the first and more restrictive memory protection attribute, wherein the physical memory protection information comprises at least one of an access control bit and a fetch protection bit in a storage key associated with the physical page, for protecting the physical page corresponding to the one virtual page having the first memory protection attribute.
Dependencies are inferred from the claim text.