Claims
- 1. A method of managing memory to prevent an operating system from writing into user memory space, the method comprising:
providing a translation look-aside buffer (TLB) for storing TLB entries, each said TLB entry comprising:
a virtual address of a page in system memory space; a real address of said page; a flag entry for storing a value F indicating whether said page is a user page in said user memory space; providing a space recovery mode register comprising a mode entry for storing a value E indicating whether the system is in a normal mode or in a space recovery mode, said value of E set to said space recovery mode when available free user space fall below a predetermined threshold value; and for each said TLB entry, designating said page in system memory space as read-only when F=0 and E=0.
- 2. The method of claim 1 wherein said value of E is set to space recovery mode upon an interrupt signal, said interrupt signal generated when said available free user space falls below said threshold value.
- 3. The method of claim 1 wherein said f flag entry is provided in a page directory entry.
- 4. The method of claim 3 wherein said method is executed in the Intel IA32 architecture.
- 5. The method of claim 4 wherein said value of E is set to space recovery mode upon an interrupt signal, said interrupt signal generated when said available free user space falls below said threshold value.
- 6. A method of managing memory to prevent an operating system from writing into user memory space, the method comprising:
providing a status data structure for storing a value indicating whether the system is in a normal mode or in a space recovery mode, said value set to indicate a space recovery mode upon receipt of a signal indicating available free user space has fallen below a threshold value; if said status data structure indicates a space recovery mode, then accessing a shadow page directory for a current process, said shadow page directory comprising a copy of a page directory for said current process and further comprising one or more invalid page directory entries effective in preventing the addressibility of user space.
- 7. The method of claim 6 wherein said signal indicating available user space has fallen below a threshold value is an interrupt.
- 8. The method of claim 6 wherein said shadow page directory is created upon said status data structure value indicating a space recovery mode.
- 9. A program storage device readable by machine, tangible embodying a program if instructions executable by the machine to perform method steps for managing memory to prevent an operating system from writing into user memory space, said method steps comprising:
providing a translation look-aside buffer (TLB) for storing TLB entries, each said TLB entry comprising: a virtual address of a page in system memory space; a real address of said page; a flag entry for storing a value F indicating whether said page is a user page in said user memory space; providing a space recovery mode register comprising a mode entry for storing a value E indicating whether the system is in a normal mode or in a space recovery mode, said value of E set to said space recovery mode when available free user space fall below a predetermined threshold value; and for each said TLB entry, designating said page in system memory space as read-only when F=0 and E=0.
- 10. The method of claim 9 wherein said value of E is set to space recovery mode upon an interrupt signal, said interrupt signal generated when said available free user space falls below said threshold value.
- 11. The method of claim 9 wherein said f flag entry is provided in a page directory entry.
- 12. The method of claim 11 wherein said method is executed in the Intel IA32 architecture.
- 13. The method of claim 12 wherein said value of E is set to space recovery mode upon an interrupt signal, said interrupt signal generated when said available free user space falls below said threshold value.
- 14. A program storage device readable by machine, tangibly embodying a program if instructions executable by the machine to perform method steps for managing memory to prevent an operating system from writing into user memory space, said method steps comprising:
providing a status data structure for storing a value indicating whether the system is in a normal mode or in a space recovery mode, said value set to indicate a space recovery mode upon receipt of a signal indicating available free user space has fallen below a threshold value; if said status data structure indicates a space recovery mode, then accessing a shadow page directory for a current process, said shadow page directory comprising a copy of a page directory for said current process and further comprising one or more invalid page directory entries effective in preventing the addressibility of user space.
- 15. The method of claim 14 wherein said signal indicating available user space has fallen below a threshold value is an interrupt.
- 16. The method of claim 14 wherein said shadow page directory is created upon said status data structure value indicating a space recovery mode.
- 17. A method of managing memory to enable a change of read/write status of a selected set of pages in a computer system, the method comprising:
providing a register to store flags indicating whether the system is in normal mode, or alternatively in a special mode, said mode which may be set by an interrupt; providing a modified translation look-aside buffer for storing TLB entries, each entry comprising at least: a virtual address of a page in memory; the real address of said page; the read/write status of the page in the normal mode; flag entries designating whether this page is in the selected set; and the read/write status of the page in the special mode.
- 18. A method of managing memory, the method comprising using a shadow set of page descriptor entries to modify the read/write status of a preselected set of pages.
- 19. A method of managing compressed memory, the method comprising changing a subset of pages to read-only status when the amount of available physical memory space declines below a specified level.
- 20. A method of managing compressed memory, the method comprising using shadow page descriptor entries to modify the read/write status of a preselected set of pages, said status modified upon an interrupt signal that signals the decrease of the amount of available physical memory below a threshold value.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is based upon, and claims the benefit of, U.S. Provisional Patent Application No. 60/270030, filed on Feb. 20, 2001, the disclosures of which are incorporated by reference herein in their entirety.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60270030 |
Feb 2001 |
US |