# US 2019/0171486 A1 · Virtual machine memory overcommit by reverse ballooning

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

- Number: US 2019/0171486 A1
- Document ID: US20190171486A1
- Status: Published application
- Kind: A1
- Application number: 15/828,996
- Filed: 2017-12-01
- Published: 2019-06-06
- Earliest claimed: 2017-12-01
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: David Hildenbrand; Michael Tsirkin
- Web page: https://patentgrep.com/patent/US20190171486A1

## CPC

- G06F 9/5016: {the resource being the memory}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- 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 12/00: Accessing, addressing or allocating within memory systems or architectures (digital input from, or digital output to record carriers, e.g. to disk storage units, G06F3/06)
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A virtual machine memory overcommit system includes an initialization memory, a device memory, at least one processor in communication with the initialization memory and the device memory, a guest operating system (OS) including a device driver, and a hypervisor executing on the at least one processor. The hypervisor is configured to expose the initialization memory to the guest OS of a virtual machine, initialize the guest OS, and expose the device memory to the guest OS. The device driver is configured to query an amount of memory available from the device memory and report the amount of memory available to the guest OS.

## Claims

### Claim 1

A system comprising:
an initialization memory;
a device memory;
at least one processor in communication with the initialization memory and the device memory;
a guest operating system (OS) including a device driver; and
a hypervisor executing on the at least one processor, wherein the hypervisor is configured to:
expose the initialization memory to the guest OS of a virtual machine,
initialize the guest OS, and
expose the device memory to the guest OS,
wherein the device driver is configured to:
query an amount of memory available from the device memory, and
report the amount of memory available to the guest OS.

### Claim 2 (depends on 1)

The system of claim 1, wherein the hypervisor is further configured to instruct the device driver to expose additional memory to the guest OS.

### Claim 3 (depends on 2)

The system of claim 2, wherein the additional memory is the device memory.

### Claim 4 (depends on 2)

The system of claim 2, wherein the device driver is further configured to expose the additional memory to the guest OS, and wherein the device driver exposes the additional memory to the guest OS by sending a deflation request to a balloon device.

### Claim 5 (depends on 1)

The system of claim 1, further comprising an unused memory, wherein the device driver is further configured to request the unused memory from the guest OS, and wherein the device driver requests the unused memory from the guest OS by sending an inflation request to a balloon device.

### Claim 6 (depends on 5)

The system of claim 5, wherein the hypervisor is further configured to:
remove the unused memory from the guest OS, and
return the unused memory to a host memory.

### Claim 7 (depends on 1)

The system of claim 1, wherein the device memory is a memory region, and querying the amount of memory available from the device memory includes querying a start address and an end address in the memory region.

### Claim 8 (depends on 1)

The system of claim 1, wherein the device memory includes a plurality of memory regions.

### Claim 9 (depends on 1)

The system of claim 1, further comprising a second device memory and a second guest balloon driver in the guest OS, the second device driver configured to query a second amount of memory available from the second device memory exposed by the hypervisor.

### Claim 10 (depends on 9)

The system of claim 9, wherein the device memory is a first memory region and the second device memory is a second memory region, the first memory region associated with a first balloon device, and the second memory region associated with a second balloon device.

### Claim 11 (depends on 10)

The system of claim 10, wherein the first balloon device is associated with a first non-uniform memory access (NUMA) node and the second balloon device is associated with a second NUMA node.

### Claim 12

A method comprising:
exposing, by a hypervisor, an initialization memory to a guest operating system of a virtual machine;
initializing, by the hypervisor, the guest OS;
exposing, by the hypervisor, a device memory to the guest OS;
querying, by a device driver, an amount of memory available from the device memory; and
reporting, by the device driver, the amount of memory available to the guest OS.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
instructing, by the hypervisor, the device driver to expose additional memory to the guest OS.

### Claim 14 (depends on 13)

The method of claim 13, wherein the additional memory is the device memory.

### Claim 15 (depends on 14)

The method of claim 14, further comprising, exposing, by the device driver, the additional memory to the guest OS.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
requesting, by the device driver, an unused memory from the guest OS;
removing, by the hypervisor, the unused memory from the guest OS; and
returning, by the hypervisor, the unused memory to a host memory.

### Claim 17 (depends on 12)

The method of claim 12, wherein the device memory is a memory region, and querying the amount of memory available from the device memory includes querying a start address and an end address in the memory region.

### Claim 18 (depends on 12)

The method of claim 12, further comprising:
exposing, by the hypervisor, a second device memory to the guest OS;
querying, by a second device driver, a second amount of memory available from the second device memory; and
reporting, by the second device driver, the second amount of memory available to the guest OS.

### Claim 19 (depends on 18)

The method of claim 18, wherein the device memory is a first memory region and the second device memory is a second memory region, the first memory region associated with a first balloon device, and the second memory region associated with a second balloon device.

### Claim 20

A non-transitory machine readable medium storing code, which when executed by a processor, is configured to:
expose an initialization memory to a guest operating system of a virtual machine;
initialize the guest OS;
expose a device memory to the guest OS;
query an amount of memory available from the device memory; and
report the amount of memory available to the guest OS.
