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

Claim 10:
11. A method comprising:
generating, by a guest operating system (OS), a list including a plurality of hints for a corresponding plurality of memory pages allocated to the guest OS, wherein an order in which each hint of the plurality of hints appears in the 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 of the hints of the plurality of hints is independent of an order of the memory pages of the corresponding plurality of memory pages in the memory, 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 and which indicates that the first memory page is to be freed before the last memory page is freed, wherein each hint of the plurality of hints includes an address value associated with one memory page of the corresponding plurality of memory pages;
storing, by the guest OS, the list in the last memory page;
passing, by the guest OS, the list to a hypervisor;
freeing, by the hypervisor, the first memory page according to the order in which each hint of the plurality of hints appears in the list; and
freeing, by the hypervisor, the last memory page according to the order in which each hint of the plurality of hints appears in the list.