Method and apparatus for sub-page write protection

US10255196B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10255196-B2
Application numberUS-201514979038-A
CountryUS
Kind codeB2
Filing dateDec 22, 2015
Priority dateDec 22, 2015
Publication dateApr 9, 2019
Grant dateApr 9, 2019

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An apparatus and method for sub-page extended page table protection. For example, one embodiment of an apparatus comprises: a page miss handler to perform a page walk using a guest physical address (GPA) and to detect whether a page identified with the GPA is mapped with sub-page permissions; a sub-page control storage to store at least one GPA and other data related to a sub-page; the page miss handler to determine whether the GPA is programmed in the sub-page control storage; and the page miss handler to send a translation to a translation lookaside buffer (TLB) with a sub-page protection indication set to cause a matching of the sub-page control storage when an access matches a TLB entry with sub-page protection indication.

First claim

Opening claim text (preview).

What is claimed is: 1. A processor comprising: a memory management unit implemented in a circuit, including a page miss handler to perform a page walk using a guest physical address (GPA) and to detect, by checking one or more sub-page permission bits within a memory page table, whether a page identified with the GPA is mapped with the one or more sub-page permission bits that indicate walking a sub-page protection table being enabled for the page, and wherein the sub-page protection table indicates read and write permissions of sub-pages; a sub-page control storage to store at least one GPA and other sub-page-related data including an offset and operand size for the GPA; and a write-allowed scratchpad register, wherein the page miss handler is to determine whether the GPA is identified in the sub-page control storage, and the page miss handler is to send a translation to a translation lookaside buffer (TLB) with a sub-page protection indication set to cause a matching of the sub-page related data when there is a TLB hit, the sub-page protection indication indicating the translation is for a sub-page TLB entry, wherein the TLB is further configured to match the offset and operand size for the GPA in the sub-page control storage, if a TLB entry with the sub-page protection indication was hit for an access, and wherein the TLB is to invoke one or more microcode assist operations to perform fault checking if there is no match of the offset and/or operand size when an access matches a TLB entry with sub-page protection indication, and wherein when the one or more microcode assist operations are invoked by the page miss handler, the one or more microcode assist operations cache write-permission bits for the GPA into the write-allowed scratchpad register. 2. The processor as in claim 1 wherein if the GPA is not programmed in the sub-page control storage, then the page miss handler to invoke one or more microcode assist operations to perform fault checking. 3. The processor as in claim 1 wherein when the one or more microcode assist operations are invoked, the one or more microcode assist operations walk the sub-page protection table and program the sub-page control storage with an offset and operand size if the sub-page protection table indicates that the offset accessed by an assisting store is writeable. 4. The processor as in claim 3 wherein if the assisting store is not writeable, then an extended page table violation fault is triggered to notify a virtual machine monitor. 5. The processor as in claim 1 wherein the sub-page control storage comprises a valid indication to indicate whether the data contained therein is valid, a GPA indication, an address operand size indication, and an address offset indication. 6. The processor as in claim 2 further comprising: a front-end unit comprising a non-inclusive instruction cache to store an instruction which triggered the one or more microcode assist operations, the one or more microcode assist operations to cause the instruction to be re-executed. 7. A method comprising: performing a page walk using a guest physical address (GPA) and detecting, by checking one or more sub-page permission bits within a memory page table, whether a page identified with the GPA is mapped with the one or more sub-page permission bits that indicate walking a sub-page protection table being enabled for the page, and wherein the sub-page protection table indicates read and write permissions of sub-pages; storing at least one GPA and other sub-page-related data including an offset and operand size for the GPA in a sub-page control storage; determining whether the GPA is identified in the sub-page control storage; sending a translation to a translation lookaside buffer (TLB) with a sub-page protection indication set to cause a match against data programmed in the sub-page control storage when there is a TLB hit, the sub-page protection indication indicating the translation is for a sub-page TLB entry; matching the offset and operand size for the GPA in the sub-page control storage, if TLB entry has a sub-page protection indication; invoking one or more microcode assist operations to perform fault checking if there is no match of the offset and/or operand size; and caching write-permission bits for the GPA into a write-allowed scratchpad register when the one or more microcode assist operations are invoked. 8. The method as in claim 7 wherein if the GPA is not programmed in the sub-page control storage, then invoking one or more microcode assist operations to perform fault checking. 9. The method as in claim 7 wherein when the one or more microcode assist operations are invoked, the one or more microcode assist operations walk the sub-page protection table and programs the sub-page control storage with an offset and operand size if the sub-page protection table indicates that the offset accessed by an assisting store is writeable. 10. The method as in claim 9 wherein if the assisting store is not writeable, then an extended page table violation fault is triggered to notify a virtual machine monitor. 11. The method as in claim 7 wherein the sub-page control storage comprises a valid indication to indicate whether the data contained therein is valid, a GPA indication, an address operand size indication, and an address offset indication. 12. A system comprising: a memory to store program code and data; a processor to process the program code and data to implement a virtual machine monitor (VMM) and one or more guest operating systems (OSs) executed within one or more virtual machines (VMs) supported by the VMM, the guest OSs to utilize guest physical addresses (GPAs) to perform memory operations, the GPAs to be translated by the VMMs; the processor further comprising: a memory management unit implemented in a circuit, including a page miss handler to perform a page walk using a GPA and to detect, by checking one or more sub-page permission bits within a memory page table, whether a page identified with the GPA is mapped with the one or more sub-page permission bits that indicate walking a sub-page protection table being enabled for the page, and wherein the sub-page protection table indicates read and write permissions of sub-pages, a sub-page control storage to store at least one GPA and other sub-page related data including an offset and operand size for the GPA; and a write-allowed scratchpad register, wherein the page miss handler is to determine whether the GPA is identified in the sub-page control storage, and the page miss handler is to send a translation to a translation lookaside buffer (TLB) with a sub-page protection indication set to cause a matching of the sub-page related data when there is a TLB hit, the sub-page protection indication indicating the translation is for a sub-page TLB entry, wherein the TLB is further configured to match the offset and operand size for the GPA in the sub-page control storage, if a TLB entry with the sub-page protection indication was hit for an access, and wherein the TLB is to invoke one or more microcode assist operations to perform fault checking if there is no match of the offset and/or operand size when an access matches a TLB entry with sub-page protection indication, and wherein when the one or more microcode assist operations are invoked by the page miss handler, the one or more microcode assist operations cache write-permission bits for the GPA into the write-allowed scratchpad register. 13. The system as in claim 12 wherein if the GPA is not programmed in the sub-page control storage, then the page miss handler to invoke one or more microcode assist operations t

Assignees

Inventors

Classifications

  • associated with a data cache · CPC title

  • using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB] · CPC title

  • with dedicated cache, e.g. instruction or stack · CPC title

  • Instruction code · CPC title

  • Latency reduction · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10255196B2 cover?
An apparatus and method for sub-page extended page table protection. For example, one embodiment of an apparatus comprises: a page miss handler to perform a page walk using a guest physical address (GPA) and to detect whether a page identified with the GPA is mapped with sub-page permissions; a sub-page control storage to store at least one GPA and other data related to a sub-page; the page mis…
Who is the assignee on this patent?
Intel Corp
What technology area does this patent fall under?
Primary CPC classification G06F12/1045. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 09 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).