# US 9,354,906 B1 · Managing the eviction process

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,906 B1
- Document ID: US9354906B1
- Status: Granted
- Kind: B1
- Application number: 13/468,805
- Filed: 2012-05-10
- Granted: 2016-05-31
- Earliest claimed: 2010-05-28
- Assignees: Bromium, Inc.
- Applicants: Krzysztof Uchronski; Martin O'Brien; Jacob Gorm Hansen; Kiran Bondalapati; Ian Pratt; Gaurav Banga; Vikram Kapoor
- Inventors: Krzysztof Uchronski; Martin O'Brien; Jacob Gorm Hansen; Kiran Bondalapati; Ian Pratt; Gaurav Banga; Vikram Kapoor
- Web page: https://patentgrep.com/patent/US9354906B1

## CPC

- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2209/5018: Thread allocation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Managing the guest operating system's eviction of memory pages from a virtual machine. A guest operating system or a hypervisor may cause one or more memory pages within a guest physical frame to become unlikely or ineligible for selection as a candidate for eviction by the guest operating system. Each of the one or more memory pages may also reside, or be intended to reside, in the memory of one or more other virtual machines. In this way, memory pages that are shared across multiple virtual machines may become less likely to be evicted, thereby using memory more efficiently.

## Claims

### Claim 1

One or more non-transitory computer-readable storage mediums storing one or more sequences of instructions, which when executed by one or more processors, cause:
upon instantiating a particular virtual machine in which executes a guest operating system, causing one or more memory pages within a guest physical frame of the particular virtual machine to become unlikely or ineligible for selection as a candidate for eviction by the guest operating system by updating data structures maintained within the guest operating system to indicate that the one or more memory pages are a permanent part of a working set, wherein said working set is a static set of memory pages associated with a template used to instantiate said particular virtual machine, and
wherein said one or more memory pages are currently shared or are intended to be shared with a different guest physical frame only accessible by a different operating system instance than said guest operating system.

### Claim 2 (depends on 1)

The one or more non-transitory computer-readable storage mediums of claim 1, wherein said different operating system is comprised within a template virtual machine separate from said template.

### Claim 3 (depends on 1)

The one or more non-transitory computer-readable storage mediums of claim 1, wherein the guest operating system causes the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within the guest operating system so that the one or more memory pages have a high priority.

### Claim 4 (depends on 1)

The one or more non-transitory computer-readable storage mediums of claim 1, wherein execution of the one or more sequences of instructions further cause:
the guest operating system causing the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within the guest operating system to indicate that the one or more memory pages are locked or otherwise in use.

### Claim 5 (depends on 1)

The one or more non-transitory computer-readable storage mediums of claim 1, wherein execution of the one or more sequences of instructions further causes:
in response to determining a page of memory is no longer shared with said different guest physical frame and has become a private page of memory, a hypervisor informing the guest operating system that the guest operating system may choose to make the page of memory eligible for eviction.

### Claim 6 (depends on 1)

The one or more non-transitory computer-readable storage mediums of claim 1, wherein execution of the one or more sequences of instructions further causes:
in response to the guest operating system detecting a page of memory has been written to and the page of memory is deemed unlikely or ineligible to be selected as a candidate for eviction by virtue of the page of memory being likely previously shared with said different guest physical frame, the guest operating system causes the page of memory to become eligible for eviction.

### Claim 7

One or more non-transitory computer-readable storage mediums storing one or more sequences of instructions, which when executed by one or more processors, cause:
upon instantiating a particular virtual machine in which executes a guest operating system, a hypervisor causing one or more memory pages within a guest physical frame of the particular virtual machine to become unlikely or ineligible for selection as a candidate for eviction by the guest operating system by updating data structures maintained within the guest operating system to indicate that the one or more memory pages are a permanent part of a working set, wherein said working set is a static set of memory pages associated with a template used to instantiate said particular virtual machine, and
wherein no other operating system than said guest operating system can access memory pages stored in said guest physical frame, and
wherein said one or more memory pages are currently shared or are intended to be shared with a with a different guest physical frame only accessible by a different virtual machine than said particular virtual machine.

### Claim 8 (depends on 7)

The one or more non-transitory computer-readable storage mediums of claim 7, wherein said particular virtual machine is a template virtual machine separate from said template.

### Claim 9 (depends on 7)

The one or more non-transitory computer-readable storage mediums of claim 7, wherein the hypervisor causes the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within a guest operating system so that the one or more memory pages have a high priority.

### Claim 10 (depends on 7)

The one or more non-transitory computer-readable storage mediums of claim 7, wherein execution of the one or more sequences of instructions further cause:
the hypervisor causing the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within a guest operating system to indicate that the one or more memory pages are locked or otherwise in use.

### Claim 11 (depends on 7)

The one or more non-transitory computer-readable storage mediums of claim 7, wherein execution of the one or more sequences of instructions further causes:
in response to determining a page of memory is no longer shared with said different virtual machine and has become a private page of memory, the hypervisor updating data structures in a guest operating system to cease making the page of memory unlikely or ineligible for eviction.

### Claim 12

An apparatus, comprising:
one or more processors; and
one or more computer readable mediums storing one or more sequences of instructions, which when executed by the one or more processors, cause:
upon instantiating a particular virtual machine in which executes a guest operating system, the guest operating system causing one or more memory pages within a guest physical frame of the particular virtual machine to become unlikely or ineligible for selection as a candidate for eviction by the guest operating system by updating data structures maintained within the guest operating system to indicate that the one or more memory pages are a permanent part of a working set, wherein said working set is a static set of memory pages associated with a template used to instantiate said particular virtual machine, and
wherein said one or more memory pages are currently shared or are intended to be shared with a different guest physical frame only accessible by a different operating system instance than said guest operating system.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein said different operating system is comprised within a template virtual machine separate from said template.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the guest operating system causes the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within the guest operating system so that the one or more memory pages have a high priority.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein execution of the one or more sequences of instructions further cause:
the guest operating system causing the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within the guest operating system to indicate that the one or more memory pages are locked or otherwise in use.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein execution of the one or more sequences of instructions further causes:
in response to determining a page of memory is no longer shared with said different guest physical frame and has become a private page of memory, a hypervisor informing the guest operating system that the guest operating system may choose to make the page of memory eligible for eviction.

### Claim 17 (depends on 12)

The apparatus of claim 12, wherein execution of the one or more sequences of instructions further causes:
in response to the guest operating system detecting a page of memory has been written to and the page of memory is deemed unlikely or ineligible to be selected as a candidate for eviction by virtue of the page of memory being likely previously shared with said different guest physical frame, the guest operating system causes the page of memory to become eligible for eviction.

### Claim 18

An apparatus, comprising:
one or more processors; and
one or more computer readable mediums storing one or more sequences of instructions, which when executed by the one or more processors, cause:
upon instantiating a particular virtual machine in which executes a guest operating system, a hypervisor causing one or more memory pages within a guest physical frame of the particular virtual machine to become unlikely or ineligible for selection as a candidate for eviction by the guest operating system by updating data structures maintained within the guest operating system to indicate that the one or more memory pages are a permanent part of a working set, wherein said working set is a static set of memory pages associated with a template used to instantiate said particular virtual machine, and
wherein said one or more memory pages are currently shared or are intended to be shared with a different guest physical frame only accessible by a different virtual machine than said particular virtual machine.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein said particular virtual machine is a template virtual machine separate from said template.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the hypervisor causes the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within a guest operating system so that the one or more memory pages have a high priority.

### Claim 21 (depends on 18)

The apparatus of claim 18, wherein execution of the one or more sequences of instructions further cause:
the hypervisor causes the one or more memory pages to become unlikely or ineligible for selection as a candidate for eviction by updating data structures maintained within a guest operating system to indicate that the one or more memory pages are locked or otherwise in use.

### Claim 22 (depends on 18)

The apparatus of claim 18, wherein execution of the one or more sequences of instructions further causes:
in response to determining a page of memory is no longer shared with said different virtual machine and has become a private page of memory, the hypervisor updating data structures in a guest operating system to cease making the page of memory unlikely or ineligible for eviction.
