Patent ID: 11907115
Assignee: RED HAT, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A method comprising:
generating, by a guest operating system (OS), a sequentially ordered list including a plurality of hints for a plurality of memory pages allocated to the guest OS, wherein an order in which each hint of the plurality of hints appears in the sequentially ordered list indicates an order in which the guest OS is permitted to free memory pages of the corresponding plurality of memory pages, wherein the order in which the guest OS is permitted to free memory pages of the corresponding plurality of memory pages indicates a first memory page and a last memory page, wherein the guest OS is not permitted to free the last memory page before freeing the first memory page according to the order in which each hint of the plurality of hints appears in the sequentially ordered list, wherein a first hint associated with the first memory page appears in the sequentially ordered list before a last hint associated with the last memory page, wherein each hint of the plurality of hints includes address values associated with memory pages of the plurality of memory pages, wherein the last memory page is associated with an earlier address in the memory than the first memory page;
storing, by the guest OS, the sequentially ordered list in the last memory page;
passing, by the guest OS, a range of memory to a hypervisor, wherein the range of memory includes the last memory page; and
freeing the first memory page according to the order in which each hint of the plurality of hints appears in the sequentially ordered list; and
freeing the last memory page according to the order in which each hint of the plurality of hints appears in the sequentially ordered list.